counting the times days are used in a month

rustybenson

Board Regular
Joined
Dec 14, 2002
Messages
104
Hi
I have a list of dates down a work sheet. Some dates appear more than once. I want to count how many times a date appears per month for a 12 month period.
a1; 1/7/2010
a2; 2/7/2010
a3; 10/7/2010
a4; /8/2010
a5; 15/8/2010
a6; 29/9/2010
a7; 30/9/2010
a8; 30/9/2010

Seventh month has 3 dates
eighth month has 2 dates
nineth month has 3 dates.

Can this be done?
Thanks for any help provided.
Regards Rusty
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi
Thanks for the replies.
I have tried both answers. The first one works fine however if I have the column formated to date and a zero entry it counts the 1/1/1900 in the month 1 total.
The second reply gives me a "value" error.
Regards
Rusty
Try this tweak to the first formula...

=SUMPRODUCT(--($A$1:$A$8<>""),--(MONTH($A$1:$A$8)=C2))
 
Upvote 0
=SUMPRODUCT(ISNUMBER(A1:A8)+0) =8 as a reply
The countif =0 as the reply

Russell,

That means we have true dates in A1:A8. Given that, the set up in post #3 with

=SUMPRODUCT(($A$1:$A$8-DAY($A$1:$A$8)+1=("1-"&E$1&"-"&$D2)+0)+0)

should work as intended. Would you have another look at it?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top