ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   count total dates for each month (https://www.excelbanter.com/excel-discussion-misc-queries/237392-count-total-dates-each-month.html)

Skipper.c

count total dates for each month
 
I am using excel 2003 and want to count the total of dates for each month,
Jan - Dec. I am using column I6:I600 for the date entry to when a work report
is finished and submitted, and want to know how many have been submitted for
a given month.
I am using the formula =SUMPRODUCT(--(MONTH(I$6:I$600)=12))
for December. All months work with this formula except January, it keeps
returning 594 regardless if the cells contain a January date or are blank. It
will not count the cell if another date other than January is inserted.
I am thinking that the default value for a blank cell must be 1
Is there any way around this
Thanks

Per Jessen

count total dates for each month
 
Hi

Month function will return 1 if the argument is missing.

Use this formula:

=SUMPRODUCT(--(MONTH(I$6:I$600)=1),--(I$6:I$600<""))

Regards,
Per

"Skipper.c" skrev i meddelelsen
...
I am using excel 2003 and want to count the total of dates for each month,
Jan - Dec. I am using column I6:I600 for the date entry to when a work
report
is finished and submitted, and want to know how many have been submitted
for
a given month.
I am using the formula =SUMPRODUCT(--(MONTH(I$6:I$600)=12))
for December. All months work with this formula except January, it keeps
returning 594 regardless if the cells contain a January date or are blank.
It
will not count the cell if another date other than January is inserted.
I am thinking that the default value for a blank cell must be 1
Is there any way around this
Thanks



Skipper.c[_2_]

count total dates for each month
 
Thanks Per,

This has worked, thanks heaps, I really appreciate your quick response

Best Regards

"Per Jessen" wrote:

Hi

Month function will return 1 if the argument is missing.

Use this formula:

=SUMPRODUCT(--(MONTH(I$6:I$600)=1),--(I$6:I$600<""))

Regards,
Per

"Skipper.c" skrev i meddelelsen
...
I am using excel 2003 and want to count the total of dates for each month,
Jan - Dec. I am using column I6:I600 for the date entry to when a work
report
is finished and submitted, and want to know how many have been submitted
for
a given month.
I am using the formula =SUMPRODUCT(--(MONTH(I$6:I$600)=12))
for December. All months work with this formula except January, it keeps
returning 594 regardless if the cells contain a January date or are blank.
It
will not count the cell if another date other than January is inserted.
I am thinking that the default value for a blank cell must be 1
Is there any way around this
Thanks





All times are GMT +1. The time now is 04:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com