Vlokoup - non unique values in lookup columns

BobbM424

New Member
Joined
Aug 2, 2007
Messages
14
I am trying to use a vlookup function to extract data from a large spreadsheet into a more concise version. However not all of my lookup values are unique. With a basic vlookup function it always gives me the values in the row associated with the first instance of my lookup ID. Is there a function that will allow the formula to pull the values in the row of a duplicate ID?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You need unique values to get an accurate answer. One way you can accomplish this is to add a column which gives a further identifier - i.e. if your lookup column is "Category" then you can add a column that has "Month". Then you add a third column that combines the two using "a1&b1" This combined column will provide a unique identifier for your search.
 
Upvote 0
Why not use advanced filter to copy Unique records only to a different range

It is quite simple to do

Go to Data>>Filter>>Advanced Filter

adjust ranges to suit and find a nice free range to paste your new unique list to

HTH

Dave
 
Upvote 0
Does the "a1&b1" work when cells are on a different tab and contain alpha-numeric ID's? I tried using "=a1+b1" and got a unique value when my ID was only numbers but it didn't work when the ID contained letters as well.
 
Upvote 0
I am trying to use a vlookup function to extract data from a large spreadsheet into a more concise version. However not all of my lookup values are unique. With a basic vlookup function it always gives me the values in the row associated with the first instance of my lookup ID. Is there a function that will allow the formula to pull the values in the row of a duplicate ID?

Care to post a small sample?
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,996
Members
448,935
Latest member
ijat

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