INDEX & MATCH: Reference a Table with name corresponding to value in cell

FunsizedNerd

New Member
Joined
Mar 20, 2019
Messages
17
This is the formula I currently have to reference a table and match the value in a specific cell to a column in the table (used in data validation)

=INDEX(M11OD, ,MATCH(B2,Direction_list2,0))

I want to know if it's possible to change the table name based on the value in another cell (say B1)
e.g.
=INDEX(B1&"OD", ,MATCH(Direction_Cell2019,Direction_list2,0))

and if B1 = M9 this would return
=INDEX(M9OD, ,MATCH(Direction_Cell2019,Direction_list2,0))
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hello,

You could test following :

Code:
[COLOR=#333333]=INDEX(Indirect(B1&"OD"), ,MATCH(Direction_Cell2019,Direction_list2,0))[/COLOR]

Hope this will help
 
Upvote 0
Just results in an error when I put it into data validation, and gives a different result compared to the original formula even with the same values in each cell
 
Upvote 0
What about creating a dynamic named range ... and use this name in your data validation formula ...
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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