Multiple Vlookup

mira2020

New Member
Joined
Sep 25, 2020
Messages
28
Office Version
  1. 2016
hi all,

how can i wrote a multiple Vlookup to fill in the value on the table in the right from data from the table in the left.
With the value in Item and From column can be changed



From USAFrom France
QtyPriceQtyPriceItemQtyPriceFrom
Apple
100​
2​
200​
4​
AppleUSA
Orange
100​
4​
300​
5​
Orange

thank you
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
i assume France is supposed to be the last two columns of the first part.
 
Upvote 0
Does this work for you:
It is hard coding the USA FRANCE lookup values.

Book2
ABCDEFGHIJKL
1From USAFrom France
2QtyPriceQtyPriceItemQtyPriceFrom
3Apple10022004Apple2004France
4Orange10043005Orange1005USA
5
Mira2020
Cell Formulas
RangeFormula
J3:K4J3=INDEX(($B$3:$C$4,$D$3:$E$4),MATCH($I3,$A$3:$A$4,0),MATCH(J$2,$B$2:$C$2,0),IF(L3="USA",1,2))
 
Upvote 0
Does this work for you:
Shouldn't the Price for Orange from USA be 4?

how can i wrote a multiple Vlookup
Possibly this?

23 07 16.xlsm
ABCDEFGHIJKL
1From USAFrom France
2QtyPriceQtyPriceItemQtyPriceFrom
3Apple10022004Apple2004France
4Orange10043005Orange1004USA
5Apple1002USA
6Orange3005France
Lookup
Cell Formulas
RangeFormula
J3:K6J3=VLOOKUP($I3,$A$3:$E$4,1+COLUMNS($J:J)+2*($L3="France"),0)
 
Upvote 0
Or without hardcoding the country.

Book1
ABCDEFGHIJKL
1From USAFrom France
2QtyPriceQtyPriceItemQtyPriceFrom
3Apple10022004Apple2004France
4Orange10043005Orange1004USA
5Apple1002USA
6Orange3005France
Sheet1
Cell Formulas
RangeFormula
J3:J6J3=VLOOKUP($I3, $A$3:$E$4, MATCH("From " & L3, $A$1:$E$1, 0), FALSE)
K3:K6K3=VLOOKUP($I3, $A$3:$E$4, MATCH("From " & L3, $A$1:$E$1, 0)+1, FALSE)
 
Upvote 0
Shouldn't the Price for Orange from USA be 4?


Possibly this?

23 07 16.xlsm
ABCDEFGHIJKL
1From USAFrom France
2QtyPriceQtyPriceItemQtyPriceFrom
3Apple10022004Apple2004France
4Orange10043005Orange1004USA
5Apple1002USA
6Orange3005France
Lookup
Cell Formulas
RangeFormula
J3:K6J3=VLOOKUP($I3,$A$3:$E$4,1+COLUMNS($J:J)+2*($L3="France"),0)


I don't know what i did there. Obviously I didnt check my results. My bad.
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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