vLookup to return ALL instances of the same value - please help

L

Legacy 319254

Guest
Greetings,
I've viewed your board posts for years in college, as I dabbled in VBA and found it most useful, but have not used advanced Excel in years. I know vLookup has severe limitations when it concerns duplicates (or anything with multiple instances of the same 'matched/returned' value). My issue is I'm needing to have a column list returned (which shall contain duplicates) AND with any appended data on its right [column] returned along side each result. The problem i'm faced with is a simple vLookup only lists a single instance. And as the instance-number varies it cannot be hard-coded.

Please see below. Note: all formatting is for emphasis and not required.

Left two Weld Data columns are raw data.
Middle green column is a manually entered list of each unique record ID's that need to be queried/returned (only typed in once- as i don't know if any will have multiple instances).
Red table VLookup is the current output sample.
Blue table is what I'm needing as output. (Note the red records are the 2nd or more instance of the same value.)

ABCDEFG
1WeldSuffixDaily Query (input)Vlookup result (output)
21156115611560
31157115811580
41158116111610
51158C111621162T4
61158C211691169T1
7116011701170T2R1
81161
91162T4Desired Result (output)
1011631156
1111641158
1211651158C1
1311661158C2
1411671161
1511681162T4
161169T11169T1
171170T2R11170T2R1
181170T21170T2

<tbody>
</tbody>

<tbody>
</tbody>

Many thanks and I greatly appreciate your assistance!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
If you don't have the correct version/SKU to get Power Query, you could use the native Advanced filter with your column D range as the criteria - you just need to make sure the header matches the header in the main data table. You can either filter in place or copy to a new location.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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