TodayCalcSample.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | ProductA | 2 | 2 | 2 | 2 | ||||
2 | ProductA | 2 | 1 | ||||||
3 | ProductB | 2 | 2 | 0 | |||||
4 | ProductA | 2 | 1 | ||||||
5 | ProductC | 2 | 1 | 2 | |||||
6 | |||||||||
7 | |||||||||
8 | |||||||||
9 | Expected result is | B1*C1*D1*E1 | |||||||
10 | B2*C2*D2*E1 | ||||||||
11 | B3*C3*D3*E1 | ||||||||
12 | B4*C4*D4*E1 | ||||||||
13 | B5*C5*D5*E1 | ||||||||
14 | SUM(B9:B13) | ||||||||
15 | 28 | ||||||||
16 | Criteria: if BLANK in any row, ignore the row in calculation | ||||||||
17 | I have done SUMPRODUCT for B,C,D and how to multiply E1 to each row | ||||||||
18 | 12 | ||||||||
19 | |||||||||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B18 | B18 | =SUMPRODUCT((B1:B5<>"")*1,(C1:C5<>"")*1,(D1:D5<>"")*1,B1:B5,C1:C5,D1:D5) |