Search help!

demonfootball21

New Member
Joined
Sep 7, 2011
Messages
14
I am trying to use a search feature that will match by one column(Last Name) and if it comes up with multiple matches it uses the next column(First name) to retrive info.
Example
=VLOOKUP($A2,Students!$A$2:M1599, COLUMNS(Students!$N4:N4)+12,0) is the formula I have. It is searching by last name(A2), so when it goes over to the STUDENTS! sheet it finds the first entry of that name. So if I have one Smith, I'm golden. It populates Smith's info. But if I have two Smiths, it will only give me the info of the very first person.

Thanks!!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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