ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   lookup with match (https://www.excelbanter.com/excel-worksheet-functions/212869-lookup-match.html)

[email protected]

lookup with match
 
In Sheet 1, I have a list of employees in one column and their SS# in
another column. In Sheet 2, their is a list of employees names that
will not include all the employees in Sheet 1. I would like to match
the employee names on the two sheets and have the correct SS# input
into a column beside the employee name in Sheet 2. I hope that I have
explained myself fully. Thanks for any help!

Roger Govier[_3_]

lookup with match
 
Hi Stacy

assuming there are no duplicate names, enter in B1 of Sheet2
=INDEX(Sheet1!$A:$B,MATCH(A1,Sheet1!$A:$A,0),2)
and copy down as required.
--
Regards
Roger Govier

wrote in message
...
In Sheet 1, I have a list of employees in one column and their SS# in
another column. In Sheet 2, their is a list of employees names that
will not include all the employees in Sheet 1. I would like to match
the employee names on the two sheets and have the correct SS# input
into a column beside the employee name in Sheet 2. I hope that I have
explained myself fully. Thanks for any help!



xlmate[_2_]

lookup with match
 
try this formula

Let say in Sheet1 Col A contain Employee Name and Col B contain #SS no.
And that, Sheet2 col A listed the employee names

Place this formula in cell B2 of Sheet2 and copy down

=VLOOKUP(A2,Sheet1!$A$2:$B$8,2,0)

or this to replace #N/A to "not found"
=IF(ISNA(VLOOKUP(A2,Sheet1!$A$2:$B$8,2,0)),"not
found",(VLOOKUP(A2,Sheet1!$A$2:$B$8,2,0)))

Pls note that this is one single line.

Does this do what you want?

HTH

--
======================
Pls click Yes if this has help you
======================

Thank You

cheers,





" wrote:

In Sheet 1, I have a list of employees in one column and their SS# in
another column. In Sheet 2, their is a list of employees names that
will not include all the employees in Sheet 1. I would like to match
the employee names on the two sheets and have the correct SS# input
into a column beside the employee name in Sheet 2. I hope that I have
explained myself fully. Thanks for any help!


[email protected]

lookup with match
 
Thanks for the information - it is working great!

xlm

lookup with match
 
Thanks for the feedback, and is glad to have assisted



cheers,

========================
please click the Yes button if this help
========================





" wrote:

Thanks for the information - it is working great!



All times are GMT +1. The time now is 09:14 PM.

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