I’ve started having problems running out of Resources when I have two specific workbooks open which after searching this forum I suspect may be related to Index/Match functions where I referenced the ranges using columns rather than defining the actual ranges (I didn’t know how to make dynamic range names when I created the formulas).
So I revised the Index/Match formulas using dynamic range names rather than simply column references (originally done because the rows within the range vary).
Now I’m getting a #REF! error with the Index/Match formulas using the dynamic range names. The same Index/Match formula with static range names works perfectly.
The range names are worksheet specific. The following is the problem formula and the respective range names:
=IF(AA10="","?",INDEX(INDIRECT($AA10&"!DataTable"&$AA10),MATCH(B10,INDIRECT($AA10&"!DataList"&$AA10),0),3))
DataTableNDX =OFFSET(NDX!$A$1,1,0,COUNTA(NDX!$B:$B)-2,27)
DataListNDX =OFFSET(NDX!$A$1,1,1,COUNTA(NDX!$B:$B)-2,1)
This is the same formula / range names with a “2” suffix using static range names which works fine.
=IF(AA10="","?",INDEX(INDIRECT($AA10&"!DataTable"&$AA10&"2"),MATCH(B10,INDIRECT($AA10&"!DataList"&$AA10&"2"),0),3))
DataTableNDX2 =NDX!$A$2:$AA$99
DataListNDX2 =NDX!$B$2:$B$99
Appreciate any help resolving this issue. Thanks for reading.
Bookmarks