Lookup Question

C

CB

I have a workbook that has 2 sheets of data. I would like to have sheet 1
column a go to sheet 2 Column A and look for a match (not case sensitive).
When a match is found I need the data in sheet 2 columns C:H copied to the
corrosponding row of column V:AA in sheet 1.
I am new to functions and lookups in Excel. A detailed example would be
most appreciated.
Thanks in advance.
CB
 
M

Max

One way via index/match

In Sheet1,
Assuming data starts in row 2 down
Put in V2:
=IF(ISNA(MATCH($A2,Sheet2!$A:$A,0)),"",INDEX(Sheet2!C:C,MATCH($A2,Sheet2!$A:$A,0)))
Copy across to AA2, fill down as far as required. Unmatched cases will
return blanks: "".
 
M

Mike H

You need 2 lookups

This in V1 of sheet 1
=VLOOKUP(A1,Sheet2!$A$1:$C$30,3,FALSE)

This in Colmn AA fo sheet 1
=VLOOKUP(A1,Sheet2!$A$1:$H$30,8,FALSE)

Mike
 
C

CB

Max,
This works perfectly. Thanks so much.
CB

Max said:
One way via index/match

In Sheet1,
Assuming data starts in row 2 down
Put in V2:
=IF(ISNA(MATCH($A2,Sheet2!$A:$A,0)),"",INDEX(Sheet2!C:C,MATCH($A2,Sheet2!$A:$A,0)))
Copy across to AA2, fill down as far as required. Unmatched cases will
return blanks: "".
 

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