Matching name from one worksheet to another

M

Max

One way, using index/match
Assuming data starts in row2 down in Sheet1
In Sheet1,
Put in C2:
=IF(ISNA(MATCH(B2,Sheet2!A:A,0)),"",INDEX(Sheet2!B:B,MATCH(B2,Sheet2!A:A,0)))
Copy down
 
P

Phrank

On Sheet1 I have a long list of names in column A along with the
associated supervisor in column B. Column C is for the group number.
On Sheet2, I have another, shorter list of names (supervisors) in
column A with their group numbers in column B. In column C of
Sheet1, I want to return the group number from matching supervisor in
column B on Sheet 2. I've looked at Match and VLookup, but nothing
seems to work. Thanks.

Frank
 
T

Tyro

In C1 on sheet1 I put: =VLOOKUP(B1,Sheet2!$A$1:$B$4,2,FALSE) and dragged it
down Column C. I have only 4 supervisors names and groups. You can expand
the reference $A$1:$B$4 to include as many supervisors as you need
 
P

Phrank

Thanks Max and Tyro. I'm heading into work now and I'll try these
out. I appreciate the help.

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top