ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need help searching another sheet and retrieving a value (https://www.excelbanter.com/excel-worksheet-functions/101832-need-help-searching-another-sheet-retrieving-value.html)

JeffH

Need help searching another sheet and retrieving a value
 

Hello,

I have multple sheets.

Sheet A with
Name, Dept#,Phone,Manager
John Doe, 1105, 123-123-1234, blank

Sheet B with
Dept#,Manager
1105, Mgr John Doe
1123, Mgr Jane Doe

I am to
for each row in sheet a
match a row in sheet b based on the dept#
insert into the manager cell of sheet a with the value from manager
cell sheet b

Any direction would be great. Thanks.


--
JeffH
------------------------------------------------------------------------
JeffH's Profile: http://www.excelforum.com/member.php...o&userid=36866
View this thread: http://www.excelforum.com/showthread...hreadid=565861


Biff

Need help searching another sheet and retrieving a value
 
Hi!

Try this:

=VLOOKUP(B2,'Sheet B'!A:B,2,0)

Copy down as needed.

Biff

"JeffH" wrote in
message ...

Hello,

I have multple sheets.

Sheet A with
Name, Dept#,Phone,Manager
John Doe, 1105, 123-123-1234, blank

Sheet B with
Dept#,Manager
1105, Mgr John Doe
1123, Mgr Jane Doe

I am to
for each row in sheet a
match a row in sheet b based on the dept#
insert into the manager cell of sheet a with the value from manager
cell sheet b

Any direction would be great. Thanks.


--
JeffH
------------------------------------------------------------------------
JeffH's Profile:
http://www.excelforum.com/member.php...o&userid=36866
View this thread: http://www.excelforum.com/showthread...hreadid=565861





All times are GMT +1. The time now is 08:31 PM.

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