Recurring date on the same cell based on given date

Sumeluar

Active Member
Joined
Jun 21, 2006
Messages
274
Office Version
  1. 365
  2. 2016
  3. 2010
Platform
  1. Windows
  2. MacOS
  3. Mobile
Good afternoon - I have a task which started on 02/07/23 and is to repeat quarterly always on the seventh day of that month for an indefinite amount of time, how can this be displayed in such a way that the cell always shows when the next quarter is based starting from 02/07/23? The idea is that the same cell would tell me when the next quarterly date is for example: The initial date was February 7, 2023, then the next date will be June 07,2023 and the next one October 7, 2023, and the next February 7, 2024, and so forth.

I've been tinkering with the formula below but unable to modify it to my need.

=DATE(YEAR(DATE(2023,2,7)),MONTH(TODAY()),DAY(7))

Any ideas are greatly appreciated.

Regards!

Sumeluar
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
The initial date was February 7, 2023, then the next date will be June 07,2023 and the next one October 7, 2023, and the next February 7, 2024, and so forth.
That does not seem to be a quarterly pattern (which would be every 3 months), but rather three times a year (every 4 months).
So which one are you after?

In any event, this can be done pretty easily with the EDATE function, where you take some date and add a set number of months to it.
See: EDATE Function
 
Upvote 0
That does not seem to be a quarterly pattern (which would be every 3 months), but rather three times a year (every 4 months).
So which one are you after?

In any event, this can be done pretty easily with the EDATE function, where you take some date and add a set number of months to it.
See: EDATE Function
My bad, every four months.
 
Upvote 0
That does not seem to be a quarterly pattern (which would be every 3 months), but rather three times a year (every 4 months).
So which one are you after?

In any event, this can be done pretty easily with the EDATE function, where you take some date and add a set number of months to it.
See: EDATE Function
Joe4 - I had been at the at site already but could not make head or tails out of it.
 
Upvote 0
OK, did you try the EDATE function?, i.e.
Rich (BB code):
=EDATE(original date, 4)

I tried it but is not providing the desired results. for instance, I changed the starting date from February 7, 2023, to February 7, 2022, and it shows the next quarter form that date in 2022, not the upcoming quarter (June 07, 2023)
 
Upvote 0
I think there is something we are a little unclear about in your question that we need to clarify.

When you say you want the "next date", do you mean that your want the date that is exactly 4 months from your original start date?

Or, do you want the next date in the future (from today), starting from the original start date?
So if your original date was February 7, 2005, the date you would want returned in June 7, 2023?
 
Upvote 0
When you say you want the "next date", do you mean that your want the date that is exactly 4 months from your original start date?
If this first option is what you are after, it is very straightfoward, and you should just be able to use the EDATE function like I showed in previous replies.

Or, do you want the next date in the future (from today), starting from the original start date?
So if your original date was February 7, 2005, the date you would want returned in June 7, 2023?
If this second option is what you are after, then I can come up with a User Defined Function that works.
That code looks like this:
VBA Code:
Function NextFutureDate(d As Date, m As Integer) As Date
'   Returns next future date based on starting date and monthly increment
'       d: starting date
'       m: number of months to increment by

    Dim nd As Date
    
    nd = d
    Do While nd < Date
        nd = WorksheetFunction.EDate(nd, m)
    Loop
    
    NextFutureDate = nd
    
End Function
So, for a date in cell G2, you would use this formula on it:
Excel Formula:
=nextfuturedate(G2,4)

Here are some examples of what that function returns:
1682709522427.png
 
Upvote 0
Solution
If this first option is what you are after, it is very straightfoward, and you should just be able to use the EDATE function like I showed in previous replies.


If this second option is what you are after, then I can come up with a User Defined Function that works.
That code looks like this:
VBA Code:
Function NextFutureDate(d As Date, m As Integer) As Date
'   Returns next future date based on starting date and monthly increment
'       d: starting date
'       m: number of months to increment by

    Dim nd As Date
   
    nd = d
    Do While nd < Date
        nd = WorksheetFunction.EDate(nd, m)
    Loop
   
    NextFutureDate = nd
   
End Function
So, for a date in cell G2, you would use this formula on it:
Excel Formula:
=nextfuturedate(G2,4)

Here are some examples of what that function returns:
View attachment 90642
Joe4 - That function works well; I changed it to this:

VBA Code:
=NextFutureDate(DATE(2005,2,7),4)

I imagine it is complicated to do a formula instead.


Thank you for the solution.
 
Upvote 0
Joe4 - That function works well; I changed it to this:

VBA Code:
=NextFutureDate(DATE(2005,2,7),4)

I imagine it is complicated to do a formula instead.


Thank you for the solution.
You are welcome.
Yes, you can put anything in the first argument that returns a date, whether it is a hard-coded date or a reference to a cell containing a date.
That is the flexibility of using functions.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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