Index function problems when multiple tables/area numbers are on different sheets

DavidSCowan

Board Regular
Joined
Jun 7, 2009
Messages
78
I want to use the reference form of the Index function where there are different lookup tables/area numbers but where one of the tables is on a different sheet. I have a simplified example where this works no problem when the areas are on the same sheet but doesn't work if one of the areas is on a different sheet. So in the first case we have:

INDEX((C24:CF28,C33:F37,C42:F46),2,2,2) which is looking up the contents of the 2nd row/2nd column of the second table. This works fine.

But if the second table is on another sheet this doesn't work

INDEX((C24:CF28,Sheet1!C33:F37,C42:F46),2,2,2) produces a #Value! error.

Can someone help please

David
 
Hi,

If not too late. Possible workaround:

=INDEX(CHOOSE(2,C24:CF28,Sheet1!C33:F37,C42:F46),2,2) where 2 "is the equivalent" of the Area number in your INDEX((C24:CF28,Sheet1!C33:F37,C42:F46),2,2,2).

CHOOSE function can return a Reference :stickouttounge:

Regards
XLearner
 
Upvote 0

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