Date Functions - Calculating exact dates

Phaedrus74

New Member
Joined
Jun 20, 2011
Messages
1
Hi, I'm trying to write a formula to calculate when an exact date will occur in the future. I have a start date (say 21/12/1993) for an event which recurrs periodically (say every 5 years). The last event was therefore 21/12/2008. I want the formula to calculate when the next event date is from a given date (say Today 20/06/2011).

I have written the following formula

=EDATE(TODAY(),-MOD(DATEDIF(EventStart,TODAY(),"m"),60))

My result is one month out, giving 20/01/2009.

I can correct this by adapting the formula to the following:

=EDATE(TODAY(),-(MOD(DATEDIF(EventStart,TODAY(),"m"),60)+1))+1

But is there a better way, or rather,could you explain why I have to add 1 month and 1 day to arrive at the correct answer?

Many thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,585
Messages
6,179,703
Members
452,938
Latest member
babeneker

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