Rounding a date to the nearest half year

Smurphster16

New Member
Joined
Feb 28, 2019
Messages
25
Hi,

I'm looking to create a formula that will round a date to the nearest half year (either the start of the year or the middle of the year depending upon which is next)
i.e if the date was 01/08/2019 the formula would round to 01/01/2020
if the date was 03/04/3021 the formula would round to 30/06/2021

Can anyone please help me with this?

Many thanks,

Phil
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
i.e if the date was 01/08/2019 the formula would round to 01/01/2020
Does it always need to round UP?
You didn't mention that, but August 1 is closer to June 30/July 1 than it is to January 1.

And are you looking for the half-year end date or half-year begin date?
You mention January 1 (which is a start date) and then June 30 (which is an end date).
 
Upvote 0
Hi yes in my case I would need it to always round UP

And would preferably have the start date for Jan but the end date for June but if it was just the start date for both June and Jan it would not matter too much,

Thanks
 
Upvote 0
Try this, for an entry in cell A1:
Code:
=IF(MONTH(A1)>=7,DATE(YEAR(A1)+1,1,1),DATE(YEAR(A1),6,30))
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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