What is wrong here?
I thought I got it right when combining MATCH and INDIRECT (Big Thanks; Croweater!), and on the Summary sheet attached, the code applied to A2:H4 is correct.
But when similar code is applied to Summary sheet AQ4:AZ6, it does not work?
The code that works in CELL D2:
=MID("abc",MATCH("x",INDIRECT("'"&$A2&"'!G"& MATCH(D$1,INDIRECT("'"&$A2&"'!E3:E7"),0)+2&":I"&MATCH(D$1,INDIRECT("'"&$A2&"'!E3:E7"),0)+2),0),1)
The code that doesn't work in CELL AQ4:
=MID("abc",MATCH("x",INDIRECT("'"&$L4&"'!I"& MATCH(AQ$2,INDIRECT("'"&$L4&"'!G47:G82"),0)+2&":K"&MATCH(AQ$2,INDIRECT("'"&$L4&"'!G47:G82"),0)+2),0),1)
Summary sheet A10:J13 shows how AQ4:AZ6 should look like.
Please note the order of G47:G56 (1,2,3,4,7,6,5,8,10,9).
Bookmarks