Look for a value in two cells and match it with another

  • Thread starter sam81 via OfficeKB.com
  • Start date
S

sam81 via OfficeKB.com

I have many first names in column A and last names in column B and their
corresponding #s farther down in four columns (F:I). I have another list of
first and last names at the bottom of the page which I would like excel look
for thier match in the same sheet and copy the #s from all 4 columns in the
top sheet and paste it to their corresponding columns (F:I) at the bottom
sheet.

I belive it can be done with Vlookup but I can't get it right.

Help please.
Thank you.

EX.

Top of the sheet:

ColumnA ColumnB | ColumnF ColumnG ColumnH ColumnI
Bob newman 6 45 86 52


Bottom of the sheet:

ColumnA ColumnB | ColumnF ColumnG ColumnH ColumnI
Bob newman ? ? ? ?
 
G

Guest

In cell F (F200 in the example) at the bottom of your sheet:

=INDEX(F$1:F$100,MATCH(1,($A200=$A$1:$A$100)*($B200=$B$1:$B$100),0))

Enter with Ctrl+Shift+Enter

OR

=SUMPRODUCT(--($A$1:$A$100=$A200),--($B$1:$B$100=$B200),F$1:F$100)

Just Enter

Copy across to Column H and down as required

Change your "upper" & "lower" ranges as required

HTH
 

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