Originally Posted by
Lucero
Both of them worked! Thank you!!
oh and how can I add an additional criteria to that formula? I added it in columns D & E "S/NS" and "SUP"
I manually added A & B so that you can see the results needed.
Use these formulas in the indicated cells and then copy them down...
Code:
H2: =SUMPRODUCT((A$2:A$42=G3)*(D$2:D$42="NS")*(E$2:E$42="Y")*B$2:C$42)
I2: =SUMPRODUCT((A$2:A$42=G3)*(D$2:D$42="NS")*(E$2:E$42="N")*B$2:C$42)
J2: =SUMPRODUCT((A$2:A$42=G3)*(D$2:D$42="S")*(E$2:E$42="Y")*B$2:C$42)
K2: =SUMPRODUCT((A$2:A$42=G3)*(D$2:D$42="S")*(E$2:E$42="N")*B$2:C$42)
Notice this is the same formula repeated with the "NS" and "Y" from the first formul changed to match the two conditions indicated in the headers (H2:K2).
Bookmarks