Index Match data to provide multiple results in columns

lomond44

New Member
Joined
May 6, 2014
Messages
7
I need some help with a spreadsheet that contains 2 worksheets.

The first sheet contains part numbers and the assemblies that they are used in. Each part number can be used in many assemblies.

On the 2nd sheet is a list of just the part numbers without duplicates. The aim is to create columns to the right of each part number that identifies all the assemblies that the part is used in.

I have looked at this link How To Return Multiple Match Values in Excel Using INDEX-MATCH or VLOOKUP | eImagine Technology Group but I do not want the results to be down a column but to go across the row.

Any help appreciated :)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
This is how non-robust formula set ups propagate.

Care to post a small (5 row) sample from the source sheet?
 

lomond44

New Member
Joined
May 6, 2014
Messages
7
Using the example I linked to in my post, the data and results should look like this:

Part NoAssemblyLookupMatch 1Match 2
DuckDaffyDuckDaffy
MouseMickeyMouseMickeyMinnie
MouseMinnieBunnyBugs
BunnyBugsPigPorky
PigPorkyDogGoofyPluto
DogGoofy
DogPluto

<tbody>
</tbody>
 
Last edited:

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
E2, control+shift+enter, not just enter, copy acrossas far as needed, and down:
Rich (BB code):
=IFERROR(INDEX($B$2:$B$8,SMALL(IF($A$2:$A$8=$D2,ROW($B$2:$B$8)-ROW($D$2)+1),
  COLUMNS($E2:E2))),"")
 

lomond44

New Member
Joined
May 6, 2014
Messages
7

ADVERTISEMENT

Perfect! Thank you very much!
 

RebelRebel

New Member
Joined
Dec 4, 2014
Messages
4

ADVERTISEMENT

How do you enter multiple criteria, like mouse and disney?
 

RebelRebel

New Member
Joined
Dec 4, 2014
Messages
4
Try to provide a small sample and the expected result(s)...

OriginAnimalNameLookup:Mouse, Disney
WarnerDuckDaffy
DisneyMouseMickeyMatches:Mickey
DisneyMouseMinnieMinnie
WarnerBunnyBugs
WarnerPigPorky
DisneyDogGoofy
DisneyDogPluto
20th CentMouseMighty

<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,302
Messages
5,836,516
Members
430,437
Latest member
Emilycr

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
Top