Forum Discussion

Kathy_j2290's avatar
Kathy_j2290
Copper Contributor
Feb 21, 2022
Solved

sumifs formula

I run a commercial kitchen. I have set up a spreadsheet using sumifs to bring in required information. I am stuck on one formula. I want the sumif to read and match a cell in the worksheet then use s...
  • OliverScheurich's avatar
    OliverScheurich
    Feb 22, 2022

    Kathy_j2290 

    =SUMPRODUCT((MMULT((Tabelle2[Category]="Main Meal")*((Tabelle2[Meal]=A3)+(Tabelle2[Meal]=Tabelle1!A5)+(Tabelle2[Meal]=Tabelle1!A7)),ROW($1:$1)^0))*Tabelle2[Qty])

    In order to calculate the "Properties" in cell B15 i used the above formula for example. Enter the formula as arrayformula with ctrl+shift+enter if you don't work with Office365 or 2021.

     

    If you want to add meals to the table in sheet "Tabelle1" in range G6:G18 you have to adapt the formulas in cells B9 and B12. Currently there are 12 meals and the formulas in cells B9 and B12 contain the expression  " ROW($1:$12)^0 ". If you had 20 meals in this table you would have to change this expression/part of the formula to " ROW($1:$20)^0 ".

Resources