Finding number of times in a month

glasgowok

New Member
Joined
Jun 28, 2012
Messages
35
I would like to be able to have the number of times a date has been entered for each month of the year recorded in a separate cell, in the sample below March would be 1 and April would be 5. Thanks in advance.

imagejpeg
 
One way would be:
Excel Workbook
ABCD
128/06/2012March20112
228/05/2012March20122
324/06/2012may20122
426/05/2012June20122
501/03/2012***
601/03/2012***
701/04/2012***
801/03/2011***
901/03/2011***
Sheet3



or
Sheet3

*ABC
128/06/2012March0
228/05/2012may2
324/06/2012June2
426/05/2012**
501/04/2012**
601/03/2011**
701/03/2011**

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:92px;"><col style="width:64px;"><col style="width:64px;"></colgroup>

Spreadsheet Formulas
CellFormula
C1=SUMPRODUCT(--(TEXT($A$1:$A$7,"mmmm")=TEXT(B1,"mmmm")),--(YEAR($A$1:$A$7)=YEAR(TODAY())))
C2=SUMPRODUCT(--(TEXT($A$1:$A$7,"mmmm")=TEXT(B2,"mmmm")),--(YEAR($A$1:$A$7)=YEAR(TODAY())))
C3=SUMPRODUCT(--(TEXT($A$1:$A$7,"mmmm")=TEXT(B3,"mmmm")),--(YEAR($A$1:$A$7)=YEAR(TODAY())))


 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Thanks guys, looking at The Cmans formula which works on 2003 what happens when the year is over and it rolls into the next year in the same column? I assume it would total say two January figures, if so is there a way where I can reset to zero?
Do you have a specific time frame you're working with? For example, start in March 2012 and end in ___?
 
Upvote 0
Just indoors so not had a chance to look at the above solutions but to answer your question, the data I'm working on goes back several years but it's all to being cleaned up and the new work sheet will start from the start of this financial year and the coloumn that the dates are input into will roll on year after year.
 
Upvote 0
Just indoors so not had a chance to look at the above solutions but to answer your question, the data I'm working on goes back several years but it's all to being cleaned up and the new work sheet will start from the start of this financial year and the coloumn that the dates are input into will roll on year after year.
Ok, so what date is the start of your financial year?
 
Upvote 0
Or with a pivot table.
Excel Workbook
ABC
1datemonthyear
228-5-201252012
324-6-201262012
426-5-201252012
51-4-201242012
61-3-201232012
71-3-201132011
81-3-201132011
Blad1
Cell Formulas
RangeFormula
B2=MONTH(A2)
B3=MONTH(A3)
B4=MONTH(A4)
B5=MONTH(A5)
B6=MONTH(A6)
B7=MONTH(A7)
B8=MONTH(A8)
C2=YEAR(A2)
C3=YEAR(A3)
C4=YEAR(A4)
C5=YEAR(A5)
C6=YEAR(A6)
C7=YEAR(A7)
C8=YEAR(A8)



count month
Collumnlabels
Rijlabels
2011
2012
Endtotal
3
2
1
3
4
1
1
5
2
2
6
1
1
Endtotal
2
5
7
<TBODY> </TBODY>
 
Last edited:
Upvote 0
01/04/12 ( uk) I'm really a novice at Excel but it's becoming more and more important to my job.
Try this...

A2:A100 = dates

Enter this formula in C2:

=TEXT(DATE(2012,4+ROWS(C$2:C2)-1,1),"mmm yyyy")

Enter this formula in D2:

=SUMPRODUCT(--(TEXT(A$2:A$100,"mmm yyyy")=C2))

Select C2:D2 and copy down as needed.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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