SumProduct is Counting Blanks as Having a "Month of January"

bmxchick

New Member
Joined
Jun 29, 2011
Messages
13
I am counting how many times the each month shows up, Every month so far is adding up right except January (because it is counting blanks) Can you help?

:confused::confused::confused:
=SUMPRODUCT(--(MONTH('701'!$B$4:$B$127)=1))+SUMPRODUCT(--(MONTH('701'!$F$4:$F$127)=1))+SUMPRODUCT(--(MONTH('701'!$I$4:$I$127)=1))
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Re: Help...I have a deadline...

(a) please don't entitle your threads "help... I have a deadline" that does nothing to help board members figure out whether or not they can help with your problem when they see the title. Nor can others determine whether your thread is relevant to them should they hit it on a search. I have edited the title a bit.
.
(b) A zero (or blank) has a "month of 1", but a "day() of 0", so if you add that to your test, you should be fine.

=SUMPRODUCT(--((MONTH('701'!$B$4:$B$127)=1)*(DAY('701'!$B$4:$B$127)<>0)))+SUMPRODUCT(--((MONTH('701'!$F$4:$F$127)=1)*(DAY('701'!$F$4:$F$127)<>0)))+SUMPRODUCT(--((MONTH('701'!$I$4:$I$127)=1)*(DAY('701'!$I$4:$I$127)<>0)))
 
Upvote 0
Re: Help...I have a deadline...

Another option would be to subtract the blanks.

(Your formula) - (CountBlank('701'!$B$4:$B$127))
 
Upvote 0
Thanks!! Sorry about the title, I didn't know what to put. ;) I will give that a shot and let you know. I really appreciate it!!:)
 
Upvote 0
AWESOME!!! Thanks so much!!! That worked.

=SUMPRODUCT(--((MONTH('701'!$B$4:$B$127)=1)*(DAY('701'!$B$4:$B$127)<>0)))+SUMPRODUCT(--((MONTH('701'!$F$4:$F$127)=1)*(DAY('701'!$F$4:$F$127)<>0)))+SUMPRODUCT(--((MONTH('701'!$I$4:$I$127)=1)*(DAY('701'!$I$4:$I$127)<>0))) :biggrin::biggrin::biggrin::biggrin:
 
Upvote 0
Re: Help...I have a deadline...

(Your formula) - (CountBlank('701'!$B$4:$B$127))

Actually, would need all three, but yes, this too would work (and probably simpler to boot).

=SUMPRODUCT(--(MONTH('701'!$B$4:$B$127)=1))+SUMPRODUCT(--(MONTH('701'!$F$4:$F$127)=1))+SUMPRODUCT(--(MONTH('701'!$I$4:$I$127)=1))-COUNTBLANK('701'!$B$4:$B$127)-COUNTBLANK('701'!$F$4:$F$127)-COUNTBLANK('701'!$I$4:$I$127)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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