Just check to see if it is also greater than zero (dates are stored as numbers):I'm experiencing a new issue, the list of public holidays has space to enter more data thus those spaces are being counted also, is there a way to prevent this without removing the blank spaces in my table?
Just check to see if it is also greater than zero (dates are stored as numbers):
=SUMPRODUCT(--(WEEKDAY(A2:A32)=7)--(A2:A32>0))
Try:Also, is it possible to count this for each month of the year?
I had a typo and missed a comma. I have amended the formula.
Another option
=SUMPRODUCT((WEEKDAY($A$2:$A$31)=7)*($A$2:$A$31>0)*(MONTH($A$2:$A$31)=ROWS($A$1:$A1)))
& drag down to fill 12 cells & it will give the count for successive months