Use a defined array to derive a column/row of data to use MATCH function in INDEX function

ShepDubVegas

New Member
Joined
Aug 1, 2017
Messages
4
I have the following 2 arrays from A2:F7 (defined as Array1) and H2:M7 (defined as Array2)
Array1Array2
67891060708090100
1ABCDE1012345
2FGHIJ20678910
3KLMNO301112131415
4PQRST401617181920
5UVWXY502122232425

<tbody>
</tbody>

I want to use an INDEX function to look up a value in one of the tables based on the contents of 3 cells, viz,

=INDEX(INDIRECT(A10),MATCH(A11,"column_to_look_up",1),MATCH(A12,"row_to_look_up",1)) where:

* Cell A10 contains the name of the Array I wish to look up (i.e. either Array1 or Array2)
* Cell A11 contains a value that will be looked up to find the correct row (e.g. if 3.1 and looking up Array 1, it would return 4 (4th row in Array1)
* Cell A12 contains a value that will be looked up to find the correct column (e.g. if 96 and looking up Array 2, it would return 5 (5th column in Array2)

I have a workbook with a large number of defined arrays, one of which will be looked up depending on the value in A10. Is their a workaround using OFFSET or similar to utilise the known array address?

Hope this rambling makes sense.

Cheers,

Shep
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Does this work?

=INDEX(INDIRECT(A10),MATCH(A11,INDEX(INDIRECT(A10),0,1),1),MATCH(A12,INDEX(INDIRECT(A10),1,0),1))
 
Upvote 0
Spot on Fishman! I'd been dancing around it but couldn't get the logic right in my head. Thanks so much - have a great day :)
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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