85Sarah2005
New Member
- Joined
- Mar 20, 2023
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
I have dates in column A, (but some blanks), then column B has X, Y, or Z.
The zero's were messing up my Countif and including them in the January total, but in the end I managed to count the number of occurrences for each moth by using : =SUMPRODUCT(--(MONTH(A2:A500)=1),--(MONTH(A2:A500<>0))
But I now need to show the same data but just for criteria x, y or z. If I use =SUMPRODUCT(--(MONTH(A2:A500)=1)*(B2:B500=X) then it's just giving me all wrong numbers, but I I try and incorporate --(MONTH(A2:A500<>0 then I'm getting a spill error. What am I doing wrong?
The zero's were messing up my Countif and including them in the January total, but in the end I managed to count the number of occurrences for each moth by using : =SUMPRODUCT(--(MONTH(A2:A500)=1),--(MONTH(A2:A500<>0))
But I now need to show the same data but just for criteria x, y or z. If I use =SUMPRODUCT(--(MONTH(A2:A500)=1)*(B2:B500=X) then it's just giving me all wrong numbers, but I I try and incorporate --(MONTH(A2:A500<>0 then I'm getting a spill error. What am I doing wrong?
13 |
13 |