Is it possible to Nest Index Match Statements?

Dave_P_C

New Member
Joined
Nov 9, 2006
Messages
37
Hi all,

I am working through a spreadsheet converting multiple VLOOKUP statements to IndexMatch equivalients but have found one I can not work out.

This VLOOKUP statement has a nested VLOOKUP statement that returns the value which needs to be looked up.

Code:
=VLOOKUP(VLOOKUP(G$124,$D$78:$E$94,2,FALSE),$C$41:$J$59,2,FALSE)

Below I've changed the cell ranges to named ranges for easier reference

I can split this into 2 separate index match statements in different cells with the first one returning the lookup value required for the second

1. Entered in cell B82
Code:
[TABLE="width: 515"]
<tbody>[TR]
[TD="width: 515"]=INDEX(Table1[Column1],MATCH($G$124,Table1[Column2],0))[/TD]
[/TR]
</tbody>[/TABLE]

2.
Code:
=INDEX(Table2[Column2],MATCH($B$82,Table2[Column1],0))

Can this be converted to a single IndexMatch statement?

Thanks for looking,
Dave.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Have you tried to combine it yet?

Code:
=INDEX(Table2[Column2],MATCH(INDEX(Table1[Column1],MATCH($G$124,Table1[Column2],0)),Table2[Column1],0))
 
Last edited:
Upvote 0
@dreid1011 - Thank You :)

I had tried combining the statements but must have messed up the syntax and after hours of trying had not manged to get them to work.

Due to your post this now works so I appreciate your reply.
 
Upvote 0

Forum statistics

Threads
1,215,328
Messages
6,124,299
Members
449,149
Latest member
mwdbActuary

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