Question : Excel Sumproduct and Month Function Formula

Hi all,

Need help figuring out a correct excel formula.

I'm using the below to count the number of occurrence for a particular month.  However, the formula will not work for January...It gives me incorrect results.

Formula to count for January:
=SUMPRODUCT(--(MONTH(d8:d75)=1))

It seems that function is also counting spaces everytime i set if for Jan...But for all other months, the formula works fine.

Help!
Attachments:
 
Sample of Formula and Data
 

Answer : Excel Sumproduct and Month Function Formula

Hello,

the Sumproduct will evaluate to "True" if the cell is empty. So you need something like

=SUMPRODUCT(--(MONTH(D8:D75)=1),--(D8:D75>0))

for January.

cheers, teylyn
Random Solutions  
 
programming4us programming4us