If you want to sum values in G1:G25 where E1:E25 and F1:F25 = 2 then:
=SUMIFS(G1:G25,E1:E25,2,F1:F25,2) or
=SUMPRODUCT((E1:E25=2)*(F1:F25=2)*(G1:G25))
Instead of hard coding 2 in the formulas you can of course refer to a cell and then put 2 or another number in that cell.
|