hi jjin. i havent really studied the formula, so i'm just going add the INDIRECT formula to it & not change much. in B13:
=IFERROR(INDEX(INDIRECT("'"&$B$6&" INDEX'!$C$7:$C$16"),MATCH(0,COUNTIF(Sheet1!B12:$B$12,INDIRECT("'"&$B$6&" INDEX'!$C$7:$C$16"))+(INDIRECT("'"&$B$6&" INDEX'!$D$7:$D$16")="")+IF(INDIRECT("'"&$B$6&" INDEX'!$F$7:$F$16")>CAL,IF(INDIRECT("'"&$B$6&" INDEX'!$G$7:$G$16")>CAL,IF(INDIRECT("'"&$B$6&" INDEX'!$H$7:$H$16")>CAL,IF(INDIRECT("'"&$B$6&" INDEX'!$I$7:$I$16")>CAL,1,0)))),0)),"")
in C13:
=IFERROR(IF(VLOOKUP($B13,INDIRECT("'"&$B$6&" INDEX'!$C$7:$I$16"),3+(C$12/12-1),0)<=CAL,VLOOKUP($B13,INDIRECT("'"&$B$6&" INDEX'!$C$7:$I$16"),3+(Sheet1!C$12/12-1),0),""),"")
seems like you want to show the amount that is equals to CAL too, so you need "<=CAL"
and a happy new year to you too
=)
Bookmarks