sumproduct and sum not working

kiran5388

Board Regular
Joined
Sep 7, 2021
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Table 1 result is fine, but the Table 2 is not working. Please help.
TodayCalcSample.xlsx
ABCDEFGHI
1Table 1
2productC4012
3productA1602
4productB0002
5productA002
6productB0102
7productA2002Result=16
8
9
10
11Table 2
12productA4012
13productA16002
14productB0002
15productA0002
16productB0102Result=#VALUE!
17productA24002
18productB202Expected =26
19productB4052
20productA1002
21productA0002
22productA0002
23productA0002
24productA0502
25productA7002
26productA0202
27productB3002
28productA0002
29productA12002
30productA2012
31productA2
32productA0002
33productA6002
34productA3822
35productA0002
36productA1002
37productA7002
38productA0002
39productA4002
40productA6002
41productA3002
42productA1002
43productA4012
44productA1002
45productA65002
46productA1002
47productA0042
48productA1002
49productA86002
50productA1002
51productA1002
52
Sheet4
Cell Formulas
RangeFormula
H7H7=SUMPRODUCT((E2:E7<>"")*1,(B2:B7<>"")*1,(C2:C7<>"")*1,(D2:D7<>"")*1,E2:E7,B2:B7+C2:C7+D2:D7)
H16H16=SUMPRODUCT((A12:A51="productB")*1,(B12:B28<>"")*1,(C12:C51<>"")*1,(D12:D51<>"")*1,(E12:E51<>"")*1,E12:E51,B12:B51+C12:C51+D12:D51)
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
There is an error in the formula range B12:B28 shoud be B12:B51

Excel Formula:
=SUMPRODUCT((A12:A51="productB")*1,(B12:B51<>"")*1,(C12:C51<>"")*1,(D12:D51<>"")*1,(E12:E51<>"")*1,E12:E51,B12:B51+C12:C51+D12:D51)
 
Upvote 0
There is an error in the formula range B12:B28 shoud be B12:B51

Excel Formula:
=SUMPRODUCT((A12:A51="productB")*1,(B12:B51<>"")*1,(C12:C51<>"")*1,(D12:D51<>"")*1,(E12:E51<>"")*1,E12:E51,B12:B51+C12:C51+D12:D51)
after fixing that, still shows the error
 
Upvote 0
I deleted, then reinserted the formula, and it works fine for me...
Excel Formula:
=SUMPRODUCT((A12:A51="productB")*1,(B12:B51<>"")*1,(C12:C51<>"")*1,(D12:D51<>"")*1,(E12:E51<>"")*1,E12:E51,B12:B51+C12:C51+D12:D51)
 
Upvote 0
I deleted, then reinserted the formula, and it works fine for me...
Excel Formula:
=SUMPRODUCT((A12:A51="productB")*1,(B12:B51<>"")*1,(C12:C51<>"")*1,(D12:D51<>"")*1,(E12:E51<>"")*1,E12:E51,B12:B51+C12:C51+D12:D51)
for me its not working, I see the error comes on row 31.

1635923430350.png
 
Upvote 0
It works for me.
May be for some reasons, your blank cells in row 31 are not actual blank.
Try to delete those cells, or *1 to last statement (B+C+D)*1
Code:
=SUMPRODUCT((A12:A51="productB")*1,(B12:B51<>"")*1,(C12:C51<>"")*1,(D12:D51<>"")*1,(E12:E51<>"")*1,E12:E51,(B12:B51+C12:C51+D12:D51)*1)
 
Upvote 0
If #8 still does not work, try ((B12:B51)*1 + (C12:C51)*1+(D12:D51)*1) instead.
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,880
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top