I have a list of Sheet names in A71:A99 and I need to Sum based on Account Codes. This formula is not working and returning REF errors.
=SUMPRODUCT(SUMIF(INDIRECT("'"&$A$71:$A$99&"'!C:C"),Consolidated!$B12,INDIRECT("'"&$A$71:$A$99&"'!A:A")))
Based on the picture where am I going wrong?
Well, this works for me:
This is the formula on the sheet where I want the list of sheets:
Note Scott Craner's suggestion for a better version:
This is the formula in cell A1 on each sheet, I have a sheet named Firstsheet and another Lastsheet so I have all the target sheets between those.
That way I can control the list as needed.