ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I populate a cell with data from a cell in another workshe. (https://www.excelbanter.com/excel-discussion-misc-queries/179664-how-do-i-populate-cell-data-cell-another-workshe.html)

holtzy24

How do I populate a cell with data from a cell in another workshe.
 
I have one worksheet with a column containing employee names. The names are
listed multiple times in this worksheet:
File # Name Salary
1234 Joe Smith
1234 Joe Smith
1456 Anna Lee
1456 Anna Lee
1456 Anna Lee
I have another worksheet with the employee's name and salary amount:
File # Name Salary
1234 Joe Smith 45000.00
1456 Anna Lee 32000.00
I want to populate the cells in the salary column in the 1st worksheet with
the salary amounts from the second worksheet. How do I do this?

Dave Peterson

How do I populate a cell with data from a cell in another workshe.
 
Put this in C2:
=vlookup(b2,'anothersheet'!b:c,2,false)
and drag down as far as you need.



holtzy24 wrote:

I have one worksheet with a column containing employee names. The names are
listed multiple times in this worksheet:
File # Name Salary
1234 Joe Smith
1234 Joe Smith
1456 Anna Lee
1456 Anna Lee
1456 Anna Lee
I have another worksheet with the employee's name and salary amount:
File # Name Salary
1234 Joe Smith 45000.00
1456 Anna Lee 32000.00
I want to populate the cells in the salary column in the 1st worksheet with
the salary amounts from the second worksheet. How do I do this?


--

Dave Peterson


All times are GMT +1. The time now is 12:28 AM.

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