Search help

demonfootball21

New Member
Joined
Sep 7, 2011
Messages
14
I need to look up results by one column, but if that column has multiple matches I want it to move to another column.

example - I am using Last Names to find their personal info, but if more than one person has the same last name i need it to check their first name.

the formula I have used now is =VLOOKUP($A2,Students!$A$2:M1599, COLUMNS(Students!$N4:N4)+12,0)

so if I have
Smith, Jon and
Smith, Bob
it only brings up Jon's corresponding info, not Bobs.

Thanks!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
If you want to use Vlookup, your best bet is to add a helper column to your source sheet which concatenates the last and first names. Then use
Code:
=vlookup(concatenate(a2,", ",b2),Students!$A$2:M1599, COLUMNS(Students!$N4:N4)+12,0)

Else use Index/Match
 
Upvote 0
Last name in A, first name in B on both sheets?

What column contains the data you want to return and how many rows are in that sheet?
 
Upvote 0
I have my source sheet(Students!) that has Every Kids name and their info starting with A(last) B(First)

Then i have another sheet that is an exact copy of my Students! Sheet(called Final!). The Final! Sheet has all my formulas

In my third sheet(Failing_Kids!) I get a report of failing kids starting with column A-Last B-First. Once I copy the names into Failing_Kids! The names are pulled into the Final Sheet. In my final! sheet Columns C through AX match the first and last name to the Students! sheet that has their info.

So basically the Kids Names are pulled from the Failing List!, and their info is pulled from the Student! sheet. Everything works perfect till I get a kid with the same last name and it always pulls the first kid. I am not able to add any other columns as they match up with the other program

The number of rows vary each week but last week was about 390.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top