A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Try it this way.
=SUMPRODUCT((MONTH($A$1:$A$17)=C2)*($A$1:$A$17<>""))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a data like this. Wanted to count number of entries in month
| 12-Apr-15 | Month | Output | |||||||
|---|---|---|---|---|---|---|---|---|---|
| 30-Sep-15 | 4 | 1 | =SUMPRODUCT(1*(MONTH($A$1:$A$17)=C2)) | ||||||
| 5 | 0 | =SUMPRODUCT(1*(MONTH($A$1:$A$17)=C3)) | |||||||
| 28-Oct-15 | 6 | 0 | |||||||
| 01-Nov-15 | 7 | 0 | |||||||
| 8 | 0 | ||||||||
| 17-Nov-15 | 9 | 1 | |||||||
| 10 | 1 | ||||||||
| 11 | 2 | ||||||||
| 04-Jan-16 | 12 | 0 | |||||||
| 26-Jan-16 | 1 | 7 | =SUMPRODUCT(1*(MONTH($A$1:$A$13)=C11)) | ||||||
| 2 | 1 | ||||||||
| 03-Feb-16 | 3 | 0 |
C2,C3,C4 refer to month column ie C2 refers to 4 (April). Every answer is coming correct in output column. However, in the month of January actual entries are only two, however, answer is coming as 7. All the 5 number of Blanks also added in January ie blanks being treated as 1 for January.
Can anybody suggest how to resolve this error
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Hi,
Try it this way.
=SUMPRODUCT((MONTH($A$1:$A$17)=C2)*($A$1:$A$17<>""))
Working fine
Thanks
Glad that worked, you might now like to mark my response as answer.
Working fine
Thanks