I have the following data in 2 separate sheets:
Sheet1:
A B C D
a ff dd ff ee
b 12 10 10 12
Sheet2:
A B C D
a ge ff ff ee
b 11 13 14 10
Now I want to write a formula to sum all the values in row 2 which contain ff directly above (i.e. in row 1)
In my example above I want to add (Cell Sheet1[A, b], Sheet1[C, b], Sheet2[B, b], Sheet2[C, b]) which is equal to 49.
For 2 sheets I’d go with brettdj’s suggestion, but, generically, you can perform SUMIF across multiple sheets like this:
=SUMPRODUCT(SUMIF(INDIRECT("'"&sheetlist&"'!A1:D1"),"ff",INDIRECT("'"&sheetlist&"'!A2:D2")))where sheetlist is a named range containing all the sheet names