How to bring back a particular column

alethea2000

Board Regular
Joined
Nov 27, 2003
Messages
67
We are trying to price up our recipes.

so lets just use this as an example

We have one list that says the ingredients and then many columns with how much the ingredient costs from all the different places we buy it from

Ingredient. Tescos. Sainsburys. Aldis. Lidls
cheese. 0.60. 0.70. 0.45. 0.50

then in another sheet I will have a recipe

so

cheese. Sainsbury's.

how can I get.a formula to say lookup cheese and if it matches what is in b2 bring back the ssainsburys spice but if it says Aldi bring back the Aldi price. I hope this makes sense, I'm thinking maybe if and vlookups and someone mentioned an xlookup but I don't thing this would be it. Thank you all
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
do you mean this
Book2
ABCDEFGHI
1IngredientTescosSainsburysAldisLidlscheeseSainsburys0.7
2cheese0.60.70.450.5
Sheet3
Cell Formulas
RangeFormula
I1I1=VLOOKUP(G1,A:E,MATCH(H1,A1:E1,),)
 
Upvote 0
Another option
+Fluff New.xlsm
ABCDEFGHI
1IngredientTescosSainsburysAldisLidlsSainsburysLidls
2cheese0.60.70.450.5cheese0.70.5
3Tomato0.50.60.350.45tomato0.60.45
4
Lookup
Cell Formulas
RangeFormula
H2:I3H2=INDEX($B$2:$E$10,MATCH($G2,$A$2:$A$10,0),MATCH(H$1,$B$1:$E$1,0))
 
Upvote 0
=VLOOKUP(G1,A:E,MATCH(H1,A1:E1,),) - I can get my head around this but would like to understand the ,),) if possible, thank you
 
Upvote 0
ooo I just explored an xlookup too,
1590519842554.png
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,845
Members
449,051
Latest member
excelquestion515

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