Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Question on which function to use

I have two files files that contain employee information. Each file
has an employee number.

I wish to compare the employee records in the two files using the
employee number and copy selected fields to one of the files.

For example,

File #1

A B C D E
1 32 Bob
2 65 Sam
3 77 Cal


File #2

A B C D E
1 32 Smith
2 65 Jones
3 77 Doe

I would like a function that would compare the two files using column
A. The outcome would be that the entries in column B of file #2 would
be placed in coulmn C of file 1 assuming the ID's found in coulmn 1
match.

Which function would I use? And how would the formula be written in
the example above?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Question on which function to use

See this:

http://contextures.com/xlFunctions02.html

--
Biff
Microsoft Excel MVP


wrote in message
...
I have two files files that contain employee information. Each file
has an employee number.

I wish to compare the employee records in the two files using the
employee number and copy selected fields to one of the files.

For example,

File #1

A B C D E
1 32 Bob
2 65 Sam
3 77 Cal


File #2

A B C D E
1 32 Smith
2 65 Jones
3 77 Doe

I would like a function that would compare the two files using column
A. The outcome would be that the entries in column B of file #2 would
be placed in coulmn C of file 1 assuming the ID's found in coulmn 1
match.

Which function would I use? And how would the formula be written in
the example above?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Question on which function to use

Hi,

Please use the VLOOKUP() function. Please formulate as follows in cell C1

=VLOOKUP(A1,[Book3]Sheet1!$A$1:$B$3,2,0)


--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

wrote in message
...
I have two files files that contain employee information. Each file
has an employee number.

I wish to compare the employee records in the two files using the
employee number and copy selected fields to one of the files.

For example,

File #1

A B C D E
1 32 Bob
2 65 Sam
3 77 Cal


File #2

A B C D E
1 32 Smith
2 65 Jones
3 77 Doe

I would like a function that would compare the two files using column
A. The outcome would be that the entries in column B of file #2 would
be placed in coulmn C of file 1 assuming the ID's found in coulmn 1
match.

Which function would I use? And how would the formula be written in
the example above?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF function question hispeaches Excel Worksheet Functions 1 July 11th 08 05:11 PM
question about ABS Function Terry Excel Worksheet Functions 2 September 29th 07 04:08 PM
IF Function question. Excel beginner Excel Worksheet Functions 6 August 9th 07 04:13 PM
Function question Jock W Excel Worksheet Functions 2 April 6th 05 01:39 PM
Function question cindi Excel Worksheet Functions 3 January 5th 05 02:45 PM


All times are GMT +1. The time now is 06:27 AM.

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

About Us

"It's about Microsoft Excel"