Trying to work out how many specific dates occur between two dates, for example:
Start Date: 1/1/2020
End Date: 19/1/2021
Specific Date: 20th of month
Returns: 12
I've found this formula from the post below, but it only works for the same year and doesn't factor in differing years.
Start Date: 1/1/2020
End Date: 19/1/2021
Specific Date: 20th of month
Returns: 12
I've found this formula from the post below, but it only works for the same year and doesn't factor in differing years.
Code:
=1+MONTH(B2)-MONTH(B1)-(DAY(B2)<20)-(DAY(B1)>20)
Between 2 dates, Count number of times specific day occurs
Would like to have a formula that counts the number times a specific day of the month occurs between two dates. For example: Starting Date: TODAY End Date: April 5th How many 20th of the months occur between the two dates? A simple formula to count months isn't going to account for where you...
www.mrexcel.com