Multi lookup

Dunks411

New Member
Joined
Oct 7, 2014
Messages
2
[h=1]Excel Magic Trick 986 One Lookup Value, Extract Multiple Items, Display Horizontally (A Closer Look)[/h]
Hey guys

Please see my sheet in this workbook https://drive.google.com/file/d/0BxMRcPUPivBMMG9ZOERjSFgyZkE/view?usp=sharing
Prod_var_masterpricelist and forumula in col d
I am working off this tutorial https://www.youtube.com/watch?v=i_It8xViQsY

I want to lookup the value in col a (yes there are duplicates) and return horizontally all the corresponding values (that match the value in col a) so I have...

FNW001FNW001-1260x850FNW0011260x850
FNW001FNW001-2500x2430FNW0012500x2430
FNW001FNW001-3200x2430FNW0013200x2430
FNW001FNW001-3600x2430FNW0013600x2430
FNW001FNW001-3600x2700FNW0013600x2700



<colgroup><col><col span="3"></colgroup><tbody>
</tbody>

And I want

FNW001 1260x850 2500x243 3200x2430 3200x2430 3600x2430 3600x2700

Please help!!

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
HEAD1HEAD2HEAD3SIZE
FNW001FNW001-1260x850FNW0011260x850
FNW001FNW001-2500x2430FNW0012500x2430
FNW001FNW001-3200x2430FNW0013200x2430
FNW001FNW001-3600x2430FNW0013600x2430
FNW001FNW001-3600x2700FNW0013600x2700
FNW002FNW002-5500X2750FN0025500X2750
Count of SIZEHEAD1
SIZEFNW001FNW002Grand Total
1260x8501 1
2500x243011
3200x243011
3600x243011
3600x270011
5500X2750 11
Grand Total516
formula for FNW001 is=IF(LEFT(OFFSET($B$15,0,1),3)="FNW",OFFSET($B$15,0,1),"")
use an intermediate pivot table to get the unique sizesit will only find FNW numbers and return blanks for everything else
for each FNW number
formula1formula2
FNW0011260x8502500x2430formula1=IF(OFFSET($B$15,MATCH($B35,$C$15:$H$15,0),1)=1,OFFSET($B$15,1,MATCH($B35,$C$15:$H$15,0)-1),"")
FNW002
formula2=IF(OFFSET($B$15,MATCH($B35,$C$15:$H$15,0),1)=1,OFFSET($B$15,2,MATCH($B35,$C$15:$H$15,0)-1),"")
you should be able to complete the table

<colgroup><col><col><col span="2"><col><col span="15"></colgroup><tbody>
</tbody>
 
Upvote 0
Hey Thanks for the reply!

I am struggling to get my head around this will put it in a sheet and give it a go :)
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,653
Members
449,245
Latest member
PatrickL

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