calculate number of occurrences, No of times, a date value occurs

Paul15

New Member
Joined
Jun 25, 2020
Messages
44
Office Version
  1. 2019
Platform
  1. Windows
Hi I have a spreadsheet where my column B contains the date of occurrence or data entry. i then wish to count the number of entries by month on a monthly basis. IE. if I have 4 data lines for the month of Jan, and 6 for the month of Feb, I would expect 4 and 6 to be my answers. ideally looking for a fx code to calculate this. regards paul
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
A Pivot Table might do the trick. Just check that the dates are real dates ( right aligned in cells)
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDE
1
201/01/202101/01/20214
309/01/202101/02/20213
417/01/2021
525/01/2021
602/02/2021
713/02/2021
827/02/2021
926/03/2021
Master
Cell Formulas
RangeFormula
E2:E3E2=COUNTIFS(B:B,">="&D2,B:B,"<="&EOMONTH(D2,0))
 
Upvote 0
Solution
01 Jan 2021
05 Feb 2021
08 Mar 2021
22 Mar 2021
22 Mar 2021
16 Apr 2021
23 Apr 2021
07 May 2021
So i have the above dates in my column B on the spreadsheet. i am then looking to calculate the number of occurrences of each date, but only by month, on my dashboard. My answers should be jan = 1, feb = 2, Mar = 3, Apr = 2, may = 1.

I think the idea from Fluff might work, i've seen it used before, but just cannot get it to work for me. all help appreciated
 
Upvote 0
If you select col B & change the format to General what do you see?
 
Upvote 0
In that case the formula I suggested should work. In what way doesn't it work?
 
Upvote 0
In that case the formula I suggested should work. In what way doesn't it work?
Hi, Got there.

I am using

=COUNTIFS(SaMSEncounters!B4:B14,">="&U7,SaMSEncounters!B4:B14,"<="&EOMONTH(U7,0))

U being my month by month column

giving me

January
01/01/2021​
1​
February
01/02/2021​
1​
March
01/03/2021​
3​
April
01/04/2021​
3​

many thanks, a great help
 
Upvote 0
Glad it's working & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,228
Members
448,951
Latest member
jennlynn

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