#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 77
Default Multiple IF Function

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(U11,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?



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Multiple IF Function

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(U11,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(U11,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule here]))-6.6667)
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 77
Default Multiple IF Function

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" wrote:

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(U11,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(U11,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule here]))-6.6667)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Multiple IF Function

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!!

"smartin" wrote:

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(U11,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(U11,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule here]))-6.6667)

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 77
Default Multiple IF Function

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

Thank you so much for responding!

"smartin" wrote:

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!!

"smartin" wrote:

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(U11,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(U11,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule here]))-6.6667)




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Multiple IF Function

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" wrote in message
...
U1 = Years of Service: =(NOW()-$J$2)/365 $J$2 = Date of Hire
E8 = TODAY()

Thank you so much for responding!

"smartin" wrote:

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!!

"smartin" wrote:

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(U11,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(U11,MONTH(E8)*6.667,IF(U=1,U1*6.667,[your U<1 rule
here]))-6.6667)




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IF function (maybe OR) mpenkala Excel Worksheet Functions 5 January 31st 08 02:22 PM
Multiple IF Function Roberto Excel Worksheet Functions 4 March 9th 07 08:20 PM
Multiple results from multiple criteria using IF function David Platt Excel Discussion (Misc queries) 2 January 15th 07 10:19 AM
Multiple Sheet, Multiple Criteria Look-Up Function Help Dan Oakes Excel Worksheet Functions 5 December 29th 06 01:37 PM
Multiple OR function Scott P Excel Worksheet Functions 6 January 14th 05 02:10 PM


All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"