VLookups to retrieve multiple member records (rows)

s604567

New Member
Joined
Jul 15, 2014
Messages
1
Hi, I have 2 spreadsheets that I have to merge in order to compare data. Spreadsheet 1 has member details for around 100 members. Each member has an NI number to identify them. Each member on this list appears only once.
On spreadsheet 2, there are around 100,000 records. I need to pull the same members details into spreadsheet 1. Problem is, each member in this spreadsheet can appear multiple times. How can I pull in entire rows based on NI number? Vlookups only pull in the first instance, I want to bring in ALL instances. Can anybody help?

Edit: To add more information;
Apparently, the way that it has been done before at my workplace was to use the NI number and concatenate with a date so you end up with unique identifiers that look like AB123452014 (where NI was AB12345 and date of that particular record was 2014). This was done on both spreadsheets; the one with 100 records as well as the one with 100,000.
I also created records that have just the NI. So AB12345. Lets say this NI refers to A Smith. On the large spreadsheet, there are three records relating to him. These are dating 1997, 2012 and 2014. So the ID looks like AB123451997, AB123452012, and AB123452014.
On the smaller spreadsheet, I want to draw in all records relating to AB12345. Can I use a vlookup to find and retrieve all records (rows) that begin with this?
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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