vlookup hitting duplicate values?

LucidCheetah

New Member
Joined
Dec 11, 2017
Messages
15
I built a spreadsheet for tracking containers at work a while back. it would search column b of sheet2 for the value input into sheet 1 and return the associated value found in column a on sheets 2. Initially we did not have any duplicate container IDs. Having added new containers to our inventory we now have some containers with overlapping ID#s. Problem now is that the vlookup seems to stop at the first instance of the number it finds and returns the associated value from column a. If the Container in questions is further down the list, we get the wrong informationr eturned associated with the first value. is there a way using vlookup that it can identify the duplicate value?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(Sheet2!$A$2:$A$200,SMALL(IF(Sheet2!$B2:$B$200=$A2,ROW(Sheet2!$A$2:$A$200)-ROW(Sheet2!$A$2)+1),ROWS($1:1))),"")

where A2 houses an ID of interest you are looking for.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
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