I took the liberty of adding helper columns to 'Data'. It overcomes problems the merged cells introduce. The formula in D2:E168 isFormula:![]()
=LOOKUP("zzzzz",A$2:A2)
Then in C1:C4Copy that range and paste into C6, C11 and C16.Formula:![]()
=SUMIFS(Data!C:C,Data!D:D,LOOKUP("zzzzzz",$A$1:A1),Data!E:E,LOOKUP("zzzzzzz",$B$1:B1))
Bookmarks