P
Phyllis
Okay, I have a complicated if statement that I need to
complicate a little further. Here's the criteria:
An employee is eligible for 120 hours of vacation per
year, accrued from their date of hire. However, the
employee can only accrue a maximum of two times their
eligible vacation hours. So when they reach 240 hours
they stop accruing until they use some of their time.
Once their total drops below 240 then it will start to
accrue again. The accrual rate is 2.3076 hours per week.
Here's my formula, is their any way that I can get it to
stop and start accruing again based on how many available
hours they have?
A1 = date of hire
A2 = Anniversary Date
A3 = hours carried over from prior year
A4 = Eligible hours
A5 = Accrual Date
A6 = =if(A4=120,($A$5-A1)/7*2.3076,0)
A7 = =if(and(A4=120,A6+A3-A8>240),240,A6+A3)
A8 = Used vacation hours
My formula in A7 works except that when the hours drop
below 240, it adds the amount in A6. However, the amount
in A6 is the actual hours that would have accrued from the
anniversay date to the accrual date, which is incorrect.
The accrued hours should stop as long as the total is at
240, then start again when it drops below. The lost
accrual hours should not be recovered once the accrued
hours drops below the 240.
I hope this make sense. Any help would be very much
appreciated. Thanks.
complicate a little further. Here's the criteria:
An employee is eligible for 120 hours of vacation per
year, accrued from their date of hire. However, the
employee can only accrue a maximum of two times their
eligible vacation hours. So when they reach 240 hours
they stop accruing until they use some of their time.
Once their total drops below 240 then it will start to
accrue again. The accrual rate is 2.3076 hours per week.
Here's my formula, is their any way that I can get it to
stop and start accruing again based on how many available
hours they have?
A1 = date of hire
A2 = Anniversary Date
A3 = hours carried over from prior year
A4 = Eligible hours
A5 = Accrual Date
A6 = =if(A4=120,($A$5-A1)/7*2.3076,0)
A7 = =if(and(A4=120,A6+A3-A8>240),240,A6+A3)
A8 = Used vacation hours
My formula in A7 works except that when the hours drop
below 240, it adds the amount in A6. However, the amount
in A6 is the actual hours that would have accrued from the
anniversay date to the accrual date, which is incorrect.
The accrued hours should stop as long as the total is at
240, then start again when it drops below. The lost
accrual hours should not be recovered once the accrued
hours drops below the 240.
I hope this make sense. Any help would be very much
appreciated. Thanks.