Hi, I was just told about this forum. Looks helpful, found a few tips that helped me, except for one answer to my needs. We have an HR application that we need to put in Excel. We have an Hire date and a Modification date. Basically, when someone is hired, the first 5 years they get X amount of hours of vacation. Then years 6-10, they get an extra X amount of hours of vacation, so on, to 16+ years where they max out. I am trying to do a calculation on a date, that needs to be the first day of the following month, unless the date is already the first of the month, and 5 years in the future. Kind of hard to explain, but let me give you examples:
0-5 years they get 192 hours
6-10 years they get 240 hours
11-15 years they get 288 hours
16+ years, they get 336 hours.
The hours are not important for this question, but for the hire date, let's say:
Hired ----------- Next Mod
03/15/2015 ---- 04/01/2020 (it needs to round out to the first of the following month + 5 years)
02/01/2012 ---- 02/01/2017 (Hire date was already on the first of the month, so we don't go to the following month)
07/15/2009 ---- 08/01/2019 (note, this is their second mod date, they are currently in years 6-10, on 8/1/2019 they will change to 11-15 years)
09/05/1995 ---- maxed or 0 (They already have worked 16+ years, so they are maxed out, no future mod date - enter the words "maxed" or a simple zero will do)
I have sort of figured out 5 years in the future by using this formula, =DATE(YEAR(Q2)+5,MONTH(Q2),DAY(Q2)) but not sure how to round to the next month if the day of the month is greater than 1 and have +10 or +15 years if the hire date was further back.
Thanks!
Bookmarks