I have the following formula:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&D1:D2&"'!A1"),E2))
Took it from here https://www.extendoffice.com/documents/excel/2541-excel-countif-across-multiple-worksheets.html
Now, i'm making a COUNTA to the D column:
=COUNTA(D:D)
Which will basically result in me having the number of sheets.
Now, i would like to make the first formula use the result of the second one:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&D1:***COUNTA RESULT***&"'!A1"),E2))
What is the correct syntax to perform that? Did not manage to succeed.