Vacation Accrual

S

Steve

I have read through the past posts and havent found exactly what I am looking
for. I need to have a formula that will tell me how many months an employee
has worked after his anniversary THIS year, up to his anniversary NEXT year.
I am able to make a formula that will calculate for this year, but when the
year changes, it messes up. EX. Ann. date of 10/1/08. On 11/1/08 it should
say "1", on 12/1/08 is should say "2", on 1/1/09 is should say "3", etc....
 
M

Mike H.

Assuming F4 has your 10/1/08 BD, then this should work:

=INT((F7-$F$4)/(365/12))

F7 has the date in question. The result will return the number of whole
months since the anniversary. And the definition of a whole month is 365/12
or 30.4 days.
 
S

Steve

Thanks so much Mike. I am alittle confused (image that). I see that $F$4 is
the employees date of hire, what is f7? You said date in question, but I
guess I just don't understand.

Thanks so much!!
 
M

Mike H.

F7 would be today or whatever date you're trying to determine to compare
with. As I thought about this over teh weekend, I really don't think this
does exactly what you want it to, however. Let me think on it a little more.
 
S

Steve

Again Mike, thanks for the information. I have plugged it in, and it is not
giving me what I am looking for. It is giving me the total number of months
since their start date thru today. It is hard to describe what I am trying
to accomplish, but for each employee, I need a formula that will calculate
the number of months since their LAST anniversary, provided it is in that
calendar year, up to their next anniversary of the next calendar year? I
hope that makes sense...
 
M

Mike H.

This should do it:

=IF(MONTH(A4)-MONTH(NOW())<0,MONTH(NOW())-MONTH(A4)+IF(DAY(A4)>DAY(NOW()),-1,0),"")

A4 is the birthdate you are evaluating and Now() is today (could substitute
a date for now() if you wish to evaluate on another date besides today.


HTH
 
S

Steve

I have plugged this in, and I believe it is working! Thanks so much for your
assistance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

calculating vacation 1
My own fiscal year 3
vacation accrual formula 2
Vacation formula 3
Formula to return Vacation weeks 1
Mid-Month function help 3
Vacation Accruals 3
Vacation accrual Spreadsheet 6

Top