Display the number of times a specific day appears between two dates

rjfrederick

New Member
Joined
Apr 26, 2011
Messages
5
I need a formula to find all the occurrence of Nov. 1 (11/01) as a string between two dates.
For example:

Start date: 11/05/2014
End Date: 11/05/2018
Date to list: Every November 1st

Result: 11/01/2015, 11/01/2016, 11/01/2017, 11/01/2018

Thank you in advance :)
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
This is your answer but it only returns the count. I don't think you can return comma separated array values in a cell with out VBA.
 
Upvote 0
B5=Start date
C5=End date
Formula in D5

Code:
=IF(YEAR($B$5)+COLUMNS($D$5:D5)-IF(DATE(YEAR($B$5),11,1)<$B$5,0,1)<=YEAR($C$5),DATE(YEAR($B$5)+COLUMNS($D$5:D5)-IF(DATE(YEAR($B$5),11,1)<$B$5,0,1),11,1),"")
then drag across
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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