Lookup next match for multiple criteria

Caly

Board Regular
Joined
Jul 19, 2015
Messages
159
Office Version
  1. 365
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hi I have a list of items that have different ways of referring to the item and I want to have each of those listings running across in columns instead of rows. I tried a pivot but that will only display the results in rows. So as a workaround I did a count of and then grouped the numbers rod listings. But what formula can I use to bring in multiple listings?



item. References
Apple. Pie
Apple. Shape
Banana. Pancake
Blueberry. Pie
Blueberry. Yogurt

I want it to look like this
Item. Reference 1. Reference 2
Apple. Pie. Shape
Banana. Pancake
Blueberry. Pie. Yogurt
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
With Excel 365 you could try TRANSPOSE and FILTER functions.

Book1
ABCD
1itemReferences
2ApplePie
3AppleShape
4BananaPancake
5BlueberryPie
6BlueberryYogurt
7
8
9ApplePieShape
10BananaPancake
11BlueberryPieYogurt
Sheet1
Cell Formulas
RangeFormula
B9:C9,B11:C11,B10B9=TRANSPOSE(FILTER($B$2:$B$6,A9=$A$2:$A$6,""))
Dynamic array formulas.
 
Upvote 0
Further, you can use the UNIQUE function to get the list of fruit.

21 08 13.xlsm
ABCDEF
1itemReferences
2ApplePieApplePieShape
3AppleShapeBananaPancake
4BananaPancakeBlueberryPieYogurt
5BlueberryPie
6BlueberryYogurt
To rows
Cell Formulas
RangeFormula
D2:D4D2=UNIQUE(A2:A6)
E2:F2,E4:F4,E3E2=TRANSPOSE(FILTER(B$2:B$6,A$2:A$6=D2,""))
Dynamic array formulas.
 
Upvote 0
Thank you - this worked perfectly.
 
Upvote 0
Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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