Rounding Dates to Nearest Quarterly Period

LG2008

New Member
Joined
Jul 2, 2015
Messages
9
Hi all,

I have a number of rent dates and need to round them up to the next quarter. However, I would like to be able to alter the start date so that the dates are rounded to the nearest 3 month period (not necessarily the same as the proper Quarter dates)

e.g if the Start date is 31/01/2015 in Cell A1, I want a date of 05/02/2015 in cell B1 to be returned as 30/04/2015 in cell C1

similarly, if date in B1 is 17/08/2015, C1 shoiuld return 31/10/2015

The idea is that the cell in A1 can be flexible

Does anyone have a forumla?

Many thanks
 
That's brilliant, thanks!

any idea how it would change if I wanted it to round to the nearest quarter (as opposed to rounding up to the next quarter?)
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
any idea how it would change if I wanted it to round to the nearest quarter (as opposed to rounding up to the next quarter?)

Can you please clarify with some examples what you mean by nearest quarter?
 
Upvote 0
So, if the start date is set at 31/01/15, the quarter dates become 30/04/15, 31/07/15 etc.

e.g If the date to round is 01/05/15, the previous formula you gave me would round the date up to 31/07/15.

Can the formula (which is very neat) be adapted to round the date to the nearest quarter (i.e round up or down instead of always rounding up) - i.e 30/04/15?

Thanks very much
 
Upvote 0
Try:

=EOMONTH(A1,MOD(MONTH(StartDate)-MONTH(A1),3)-3*(0>SUM(A1-EOMONTH(A1,MOD(MONTH(StartDate)-MONTH(A1),3)-{0,3}))))

This will round up to the next quarter if the date is equidistant, e.g. if StartDate is in May so that the quarter end dates are 31 May, 31 Aug etc, then 16 July is 46 days from 31 May and also 46 days from 31 August. My formula returns 31 August.

To round down to 31 May, simply change to .. 0>=SUM ..
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
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