SumProduct Question

HYKE

Active Member
Joined
Jan 31, 2010
Messages
373
HI,

I cant seem to make this formula work. It is giving me zero instead of sum
Code:
=SUMPRODUCT((AD7:AD200="Mar")*(C7:C200="RO 9414"),P7:P200)

Where AD7:AD200 lies the date formatted as "mmm"
C7:C200 lies the product codes (which I have many)
P7:P200 where the qty to sum is located.

What seems to be missing here?

thanks!!!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try

=SUMPRODUCT(--(TEXT(AD7:AD200,"mmm")="Mar"),--(C7:C200="RO 9414"),P7:P200)
 
Upvote 0
Hi Vog,

Initially it worked, however when I changed the other search criteria, again it is giving me zero.
=SUMPRODUCT(--(TEXT($AD$6:$AD$200,"mmm")="Mar"),--($C$6:$C$200="150 SN"),$P$6:$P$200)
=SUMPRODUCT(--(TEXT($AD$6:$AD$200,"mmm")="Mar"),--($C$6:$C$200="500 SN"),$P$6:$P$200)
=SUMPRODUCT(--(TEXT($AD$6:$AD$200,"mmm")="Mar"),--($C$6:$C$200="BATTERY"),$P$6:$P$200)

I tried referring this criteria to a cell but the same result I get-zero.
=SUMPRODUCT(--(TEXT($AD$6:$AD$200,"mmm")="Mar"),--($C$6:$C$200=C6),$P$6:$P$200)


Thanks,
HYKE
 
Upvote 0
What does...

=SUMPRODUCT(--(TEXT($AD$6:$AD$200,"mmm")="Mar"),--($C$6:$C$200="150 SN"),$P$6:$P$200+0)

give?

By the way, not testing for month/year is a risky approach...
 
Upvote 0
try changing your ranges to just a single line that you know would create a count of 1. Then open the formula dialog box and see what is there? Does it show 1's for each line?

Also the text you are testing for does the data match exactly? No extra spaces?
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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