A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Matching data and returning header



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2004, 05:24 PM
matman17
external usenet poster
 
Posts: n/a
Default Matching data and returning header

I have a list of Employees and I want to lookup and copy each employee's
department into the next field. Right now I have it setup on two spread
sheets. One spread sheet has the list of employees as part of an
inventory.

*Employee Deparment*
Employee
Employee
Employee
Employee
Employee
Employee
Employee

The other spreadsheet has all the departments and the respective
employees in columns.


DEPARTMENT 1 DEPARTMENT 2 DEPARTMENT 3
Employee 1 Employee 1 Employee 1
Employee 2 Employee 2 Employee 2
Employee 3 Employee 3 Employee 3
Employee 4 Employee 4 Employee 4
Employee 5 Employee 5 Employee 5
Employee 6 Employee 6 Employee 6
Employee 7 Employee 7 Employee 7

How can I make the first spreadsheet reference the second one to fill
in the department column with the headers from the respective columns?

Thanks for any help!


---
Message posted from http://www.ExcelForum.com/

  #2  
Old July 2nd, 2004, 05:57 PM
matman17
external usenet poster
 
Posts: n/a
Default Matching data and returning header

This is a BUSY forum. I can't believe I already need a *bump*

This seems like a simple problem. Does anyone even have a guess?


---
Message posted from http://www.ExcelForum.com/

  #3  
Old July 2nd, 2004, 07:57 PM
Domenic
external usenet poster
 
Posts: n/a
Default Matching data and returning header

matman17 wrote:
*I have a list of Employees and I want to lookup and copy each
employee's department into the next field. Right now I have it setup
on two spread sheets. One spread sheet has the list of employees as
part of an inventory.

Employee Deparment*
Employee
Employee
Employee
Employee
Employee
Employee
Employee

The other spreadsheet has all the departments and the respective
employees in columns.


DEPARTMENT 1 DEPARTMENT 2 DEPARTMENT 3
Employee 1 Employee 1 Employee 1
Employee 2 Employee 2 Employee 2
Employee 3 Employee 3 Employee 3
Employee 4 Employee 4 Employee 4
Employee 5 Employee 5 Employee 5
Employee 6 Employee 6 Employee 6
Employee 7 Employee 7 Employee 7

How can I make the first spreadsheet reference the second one to fill
in the department column with the headers from the respective
columns?

Thanks for any help!


Hi,

1) Assuming your list of employees and their respective departments are
in Sheet 2, and start in Row 2, and

2) Assuming that your list of employees are in Column A of Sheet 1, and
starts in Row 2,

put the following formula in B2 of Sheet 1 and copy down:

=INDEX(Sheet2!$A$1:$C$1,MAX(IF(Sheet2!$A$2:$C$8=A2 ,COLUMN(Sheet2!$A$2:$C$8))))

entered using CTRL+SHIFT+ENTER

Hope this helps!


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning data in a list Clueless Worksheet Functions 2 June 4th, 2004 03:08 PM
VLOOKUP confusion Bill Dedman Worksheet Functions 1 April 15th, 2004 07:10 PM
comparing data column in other worksheets and returning certain data fields Mary Worksheet Functions 5 February 2nd, 2004 08:02 PM
comparing data and returning a subtotal arnold Worksheet Functions 2 January 16th, 2004 04:09 PM
HELP! Return data if cell in row contains data dee Worksheet Functions 13 November 10th, 2003 06:48 PM


All times are GMT +1. The time now is 11:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.