Lookup on a Value in different columns

ASingh95

New Member
Joined
Apr 23, 2018
Messages
3
Hi,

I have a table on the left which shows a Van and which fruit goes in each van. What I want to do is replicate the right in terms of result, therefore having a list of fruit which I already have but using the table on the left show which van is carrying a particular fruit. (See Link for image)

https://ibb.co/h8Vqwx

Note this is with not much data my actual sheet is far larger with 100s rows and columns.

Thanks in Advance

Aaron
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Re: How to do a Lookup on a Value in different columns

try this


Excel 2013/2016
ABCDEFGHIJKLM
1VanGood1Good2Good3Good4Good5VanVanVanVanVan
2AOrangeBannanaPearAppleBCDE
3BGrapesApplePearOrangeACDE
4COrangeAppleGrapesPearPearABCD
5DAppleOrangePearGrapesBC
6EOrangeBannanaAppleBannanaAE
Sheet1
Cell Formulas
RangeFormula
I2{=IFERROR(INDEX($A$2:$A$6, SMALL(IF(ISNUMBER(MATCH($B$2:$F$6, $H2, 0)), MATCH(ROW($B$2:$B$6), ROW($B$2:$B$6)), ""), COLUMNS($A$1:A1))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Re: How to do a Lookup on a Value in different columns

Worked like a charm, thank you for your assistance.
 
Upvote 0
Re: How to do a Lookup on a Value in different columns

you're welcome
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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