Can Index Match be put inside Vlookup

Muzztang

New Member
Joined
Jun 10, 2018
Messages
1
I'm having troubles figuring out how to put Index Match inside of Vlookup. If I type out my formula as:

=IF(A24="","",VLOOKUP((VLOOKUP(A24,Items!$A:$C,3,FALSE)),'[MasterOrders.xlsx]06102018-145622-Ninja'!$A:$C,3,FALSE))

it works correctly. The problem I am at is the table_array. [MasterOrders.xlsx] always stays the same, but the 06102018-14622-Ninja changes based on the lookup_value.

If I put:

=INDEX($P$2:$P$7,MATCH((VLOOKUP(A24,Items!$A:$K,11,FALSE)),$S$2:$S$7,0)) into a cell it finds the correct value (06102018-14622-Ninja etc...) But I don't understand how to put the Index Match into the Vlookup. This is what I have and it comes up with #VALUE

=IF(A24="","",VLOOKUP((VLOOKUP(A24,Items!$A:$C,3,FALSE)),"[MasterOrders]""&(INDEX($P$2:$P$7,MATCH((VLOOKUP(A24,Items!$A:$K,11,FALSE)),$S$2:$S$7,0)))&!$A:$C",3,FALSE))

Greatly appreciate any help. Thank you in advance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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