Anyone knows a formula that will add one day for a specific date of every month?
Anyone knows a formula that will add one day for a specific date of every month?
Not enough detail.
Are you wanting to count how many 8th of the months have passed since a start date?
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
I have a vacation tracker that I've built and I want the total vacation days acquired show how many days an employee acquired every 8th of each month. So if an employee was hired on the 8th of august 2014 then on the 8th of September 2014 the employee should acquire 1 vacation day. is there a formula that can do that. I'm trying alot of if statements out of my head but can't seem to get it to work.
What if an employee was hired on the 7th of august; do they get a day on August 8?
Maybe this...
A2 = date of hire
=SUMPRODUCT(--(DAY(ROW(INDIRECT(A2&":"&TODAY())))=8))
No if they were hired August 7th 2014 then they would Acquire a day on September 7th 2014. so basically they will acquire a vacation day on every hired day of each month, which would be the 7th of each month.
This takes the difference between the startdate and the checkdate (either TODAY() or some pre-set date you want to check against), expressed in months/"m"Please Login or Register to view this content.
Hmmm...
What if their hire date was on a leap day?
Thanks Tony but the formula gives me 72 days acquired. basically i need it to add a day, every hired date for the employee for each month...so for an example. the employee's hired date was 8-sept-2013 so by 8-oct-2014 the employee will acquire 1 vacation day, if the employee didn't take any vac day then by 8-Nov-2014 the employee will acquire another vacation day so in total the employee will have 2 vacation days. I need a formula that will continiously keep adding one day for every 8th(hired date) of each month.
So Every month the employee receives 1 to 1.5 day (from the 8-sept 2014 to 8-october-2014 = 1 month)
hmmm that, i didn't think off lol
Tony, I don't think your formula would work properly for any start date greater than the 28th of any month - not only for leap years, but also if they started on the 31st it would miss 5 months each year.
Please add reputation by clicking on the * if I have helped.
Please mark the thread SOLVED if your issue has been resolved.
Thanks, Glenn.
Did you try the =DATEDIF(StartDate,CheckDate,"m") ? That will give you the number of total elapsed months, which you can multiply by 1 or 1.5 as needed.
Yeah, I didn't think this one through very well!
Depending on how they want to handle leap days, the DATEDIF formula should do what you want.
=DATEDIF(start_date,NOW(),"m")
It Works guys!!!!! thanks sooo much.
You're welcome. We appreciate the feedback!
If your question has been solved please mark the thread as being solved.
In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks