ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Question on which function to use (https://www.excelbanter.com/excel-worksheet-functions/219520-question-function-use.html)

[email protected]

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?

T. Valko

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?




Ashish Mathur[_2_]

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?




All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com