Sumproduct

Jeff Podgorski

Board Regular
Joined
Sep 25, 2007
Messages
148
I've tried and tried to make this work but each time it returns 0, please help.

=SUMPRODUCT(--(Data!M2:M15000=245),--(Data!N2:N15000=70110101),Data!O2:O15000)

Thanks
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi Jeff

The syntax seems ok, so it seems it would be a type problem. Maybe the values in one or several columns in M:O are text and you are treating them as number.

To test if the values are text, use for ex.:

=ISTEXT(Data!N2)

Please try.
 
Upvote 0
What are the results of the following formulas?

=SUMPRODUCT(--(ISTEXT(Data!M2:M15000)))
=SUMPRODUCT(--(ISTEXT(Data!N2:N15000)))
=SUMPRODUCT(--(ISTEXT(Data!O2:O15000)))
 
Upvote 0
If column N returned 14999 then all the values in that column are text.
 
Upvote 0
So....simply add ISTEXT for the column N array? I'm confused, the cells are formatted as numbers not text.
The quick and dirty fix would be:

=SUMPRODUCT(--(Data!M2:M15000=245),--(Data!N2:N15000="70110101"),Data!O2:O15000)

Do any of the entries in column N have leading zeros?
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,633
Members
452,933
Latest member
patv

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