Multiple IF Function

T

Teri

I am trying to calculate accrued vacation. Our employees accrue 6.667
hours/month. For someone who has more than one year of service, I have the
following formula:

=(IF(U1>1,MONTH(E8)*6.667,U1*6.667)-6.6667)

U1 = Years of service
E8 = TODAY()

I need to add a nested function to the above which would calculate the
accrual if Cell U1 is <1. Can anybody help?
 
T

Teri

Awesome!! Now I know the format, but when I try to put my U<1 rule in, I get
an error. I need to show Months occuring between two dates over a year
apart. In other words, I need to multiply the number of months the employee
has worked (less the current month) x 6.6667 hours.

Can you please advise? Thanks!!

smartin said:
Teri said:
I am trying to calculate accrued vacation. Our employees accrue 6.667
hours/month. For someone who has more than one year of service, I have the
following formula:

=(IF(U1>1,MONTH(E8)*6.667,U1*6.667)-6.6667)

U1 = Years of service
E8 = TODAY()

I need to add a nested function to the above which would calculate the
accrual if Cell U1 is <1. Can anybody help?

You are already handling U<=1 with
U1*6.667

So I presume you want that to apply to U=1 only and do something
different for U<1:

=(IF(U1>1,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule here]))-6.6667)
 
T

Teri

U1 = Years of Service: =(NOW()-$J$2)/365 $J$2 = Date of Hire
E8 = TODAY()

Thank you so much for responding!

smartin said:
Hi Teri, please explain what is represented in columns U and E. I can't
see clear to a solution yet.

Awesome!! Now I know the format, but when I try to put my U<1 rule in, I get
an error. I need to show Months occuring between two dates over a year
apart. In other words, I need to multiply the number of months the employee
has worked (less the current month) x 6.6667 hours.

Can you please advise? Thanks!!

smartin said:
Teri wrote:
I am trying to calculate accrued vacation. Our employees accrue 6.667
hours/month. For someone who has more than one year of service, I have the
following formula:

=(IF(U1>1,MONTH(E8)*6.667,U1*6.667)-6.6667)

U1 = Years of service
E8 = TODAY()

I need to add a nested function to the above which would calculate the
accrual if Cell U1 is <1. Can anybody help?
You are already handling U<=1 with
U1*6.667

So I presume you want that to apply to U=1 only and do something
different for U<1:

=(IF(U1>1,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule here]))-6.6667)
 
D

David Biddulph

Rather than =(NOW()-$J$2)/365 you may be better with
=DATEDIF($J$2,TODAY(),"y")

You may also wish to use DATEDIF for the number of months worked.
--
David Biddulph

Teri said:
U1 = Years of Service: =(NOW()-$J$2)/365 $J$2 = Date of Hire
E8 = TODAY()

Thank you so much for responding!

smartin said:
Hi Teri, please explain what is represented in columns U and E. I can't
see clear to a solution yet.

Awesome!! Now I know the format, but when I try to put my U<1 rule in,
I get
an error. I need to show Months occuring between two dates over a year
apart. In other words, I need to multiply the number of months the
employee
has worked (less the current month) x 6.6667 hours.

Can you please advise? Thanks!!

:

Teri wrote:
I am trying to calculate accrued vacation. Our employees accrue
6.667
hours/month. For someone who has more than one year of service, I
have the
following formula:

=(IF(U1>1,MONTH(E8)*6.667,U1*6.667)-6.6667)

U1 = Years of service
E8 = TODAY()

I need to add a nested function to the above which would calculate
the
accrual if Cell U1 is <1. Can anybody help?
You are already handling U<=1 with
U1*6.667

So I presume you want that to apply to U=1 only and do something
different for U<1:

=(IF(U1>1,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule
here]))-6.6667)
 
T

Teri

Thanks for the tip David :) Any help on how to next the function from
'smartin'?

David Biddulph said:
Rather than =(NOW()-$J$2)/365 you may be better with
=DATEDIF($J$2,TODAY(),"y")

You may also wish to use DATEDIF for the number of months worked.
--
David Biddulph

Teri said:
U1 = Years of Service: =(NOW()-$J$2)/365 $J$2 = Date of Hire
E8 = TODAY()

Thank you so much for responding!

smartin said:
Hi Teri, please explain what is represented in columns U and E. I can't
see clear to a solution yet.


Teri wrote:
Awesome!! Now I know the format, but when I try to put my U<1 rule in,
I get
an error. I need to show Months occuring between two dates over a year
apart. In other words, I need to multiply the number of months the
employee
has worked (less the current month) x 6.6667 hours.

Can you please advise? Thanks!!

:

Teri wrote:
I am trying to calculate accrued vacation. Our employees accrue
6.667
hours/month. For someone who has more than one year of service, I
have the
following formula:

=(IF(U1>1,MONTH(E8)*6.667,U1*6.667)-6.6667)

U1 = Years of service
E8 = TODAY()

I need to add a nested function to the above which would calculate
the
accrual if Cell U1 is <1. Can anybody help?
You are already handling U<=1 with
U1*6.667

So I presume you want that to apply to U=1 only and do something
different for U<1:

=(IF(U1>1,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule
here]))-6.6667)
 

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

IF-AND-OR? 5
Nested IF Formula 5
vacation accrual formula 2
Vacation accrual formula needed 2
if statement = if number is between 1
VACATION/SICK TIME ACCRUAL 5
Vacatio Accrual 3
Vacation Accrual - Challenge 2

Top