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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,214,516
Messages
6,119,981
Members
448,934
Latest member
audette89

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