Hi Guys,
I have a problem as below where I intend to sum a range that include certain cell containing 2 items. I can only figure now by using sumproduct that has condition set in. However, when I removed that condition, it all became zero. I tried to include countif into sumproduct but it did not work. Kindly advise.
Thanks.
Faez
I have a problem as below where I intend to sum a range that include certain cell containing 2 items. I can only figure now by using sumproduct that has condition set in. However, when I removed that condition, it all became zero. I tried to include countif into sumproduct but it did not work. Kindly advise.
sumproduct.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
5 | Serial No | Total | Expected | ||||||
6 | a) 64B00115, b) 64B00120, | c) 64B00116 d) 64B00121 | 64B00117 | 64B00118 | 64B00119 | 3 | 7 | ||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F6 | F6 | =SUMPRODUCT((LEN($A$6:$E$6)-LEN(SUBSTITUTE($A$6:$E$6,"b)","")))/LEN("b)")+(LEN($A$6:$E$6)-LEN(SUBSTITUTE($A$6:$E$6,"c)","")))/LEN("c)")+(LEN($A$6:$E$6)-LEN(SUBSTITUTE($A$6:$E$6,"d)","")))/LEN("d)")) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
Thanks.
Faez