Rounding dates to the next specific date

RWJ67

New Member
Joined
Jun 24, 2019
Messages
1
I am working on a spreadsheet for monitoring personnel records, especially in relation to the disposal of the records. I current have the spreadsheet which calculates 6 years after an employee left, and which will compare this to today's date to flag they have been gone for 6 years.

Our policy is to destroy records 6 years after end of the tax year in which they left. I am trying to achieve this by either:-

1. Round up the calculated 6 year date to the following 5th April
OR
2. Round up the leaving date to the following 5th April and then add the 6 years.

Either way is OK but its the rounding to the next specified date (ie:- the next 5th April) that's throwing me.

Example
Person leaves 1st July 2018, 6 years = 1 July 2024 = Report as 5th April 2025
Person leaves 1st March 2018, 6 years = 1 March 2024 = Report as 5th April 2024.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
With leave date in A1, to return the disposal date :

=DATE(YEAR(A1)+6+(A1>DATE(YEAR(A1),4,5)),4,5)
 
Upvote 0
@RWJ67

Maybe...

Excel 2010
AB
1LeftDelete
201/07/201805/04/2025
301/03/201805/04/2024
401/04/201805/04/2024
506/04/201805/04/2025
605/04/201805/04/2024
Sheet2
Cell Formulas
RangeFormula
B2=DATE(YEAR(A2)+6+MAX(SIGN(A2-DATE(YEAR(A2),4,5)),0),4,5)


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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