I have this formula in a sheet:
=IF($A8<>"",SUMPRODUCT(COUNTIF(INDIRECT("'"&$K$10:$K$33&"'!"&CELL("address",$B9)),B$3)),"")
where K10 thru Knn contains a list of the sheet names in the workbook. The number of sheets is variable, so I have calculated the last row with a valid sheet name in cell L58.
I want to replace the 33 in the reference $K$33 with the value in L58. I think I can do this with another INDIRECT, or possibly an OFFSET, but in either case I can't figure out the exact syntax. Help would be much appreciated, as I'm now so frustrated I'm about to throw something at my monitor.
Bookmarks