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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Excel Workbook
ABCD
11/7/2010MonthCount
22/7/201010
310/7/201020
41/8/201030
515/8/201040
629/9/201050
730/9/201060
830/9/201073
982
1093
11100
12110
13120
Sheet
 
Upvote 0
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
In D1:D12 enter: Jan, Feb,...,Dec

In E1 enter: 2010

In E2 enter and copy down:

=SUMPRODUCT(($A$1:$A$8-DAY($A$1:$A$8)+1=("1-"&E$1&"-"&$D2)+0)+0)
 
Upvote 0
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
 
Upvote 0
Why are you formatting the counts column as Date? The counts are counts-of-dates. Not dates themselves.
 
Upvote 0
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

What is the result of:

=SUMPRODUCT(ISNUMBER(A$1:$A$8)+0)
 
Upvote 0
I am posting as dates as it refers to a spread sheet that records incidents that happen. I run the main spread sheet and pull information out to a record sheet that I cn build reports from. So the date process is carried to the record sheet so i can record the amount of incidents in a month to pass on to management.
 
Upvote 0
What is the result of:

=SUMPRODUCT(ISNUMBER(A$1:$A$8)+0)
This counts the number of dates not the number of dates per month.
 
Upvote 0
What is the result of:

=SUMPRODUCT(ISNUMBER(A$1:$A$8)+0)
This counts the number of dates not the number of dates per month.

That's exactly what I want to know...
You claimed that the suggestion I made earlier yielded a #VALUE1 error.
Such an outcome suggests that you have text values in A1:A8, not true dates (numbers). Any comment?
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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