Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default an error in a formula in annual leave

Hi
I am working on a formula that allows me to know how many days the
employee has,i have found a formula but i still have one with error
the rules are the following:
3 months till 4.99 years =15 year
5 years till 9.99= 17 days pr year
10 years till 14.99= 19 days pr year
The table is like the following
L M N
2 3----4.99 5----9.99 10----14.99

L3=IF((J6)<1800,I6*15,0)
M3=IF(1800<J6<3600,(1800)*15/12/30+(J6-1800)*17/12/30,0)
N3 =IF(J63600,(1800)*15/360+(1800)*17/12/30+
(J6-1800-1800)*K6/12/30,0)
I
J K
5 Total Working Years Total Working Days Total Days Allowed /Year
6 5.33
1918.00 7

The M3 Formula is not working properly what have i done wrong

Please help

Tia

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default an error in a formula in annual leave

On Tue, 19 Aug 2008 02:54:02 -0700 (PDT), Tia wrote:

Hi
I am working on a formula that allows me to know how many days the
employee has,i have found a formula but i still have one with error
the rules are the following:
3 months till 4.99 years =15 year
5 years till 9.99= 17 days pr year
10 years till 14.99= 19 days pr year
The table is like the following
L M N
2 3----4.99 5----9.99 10----14.99

L3=IF((J6)<1800,I6*15,0)
M3=IF(1800<J6<3600,(1800)*15/12/30+(J6-1800)*17/12/30,0)
N3 =IF(J63600,(1800)*15/360+(1800)*17/12/30+
(J6-1800-1800)*K6/12/30,0)
I
J K
5 Total Working Years Total Working Days Total Days Allowed /Year
6 5.33
1918.00 7

The M3 Formula is not working properly what have i done wrong

Please help

Tia



=IF(AND(1800<J6,J6<3600),(1800)*15/12/30+(J6-1800)*17/12/30,0)

But you might find it simpler, depending on the rules for determining working
years, to just set up a lookup table, and compute the years worked using the
DATEDIF function. This is built-in to Excel but documented at
http://www.cpearson.com/excel/datedif.aspx



--ron
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
Annual Leave Summary Tia[_3_] Excel Discussion (Misc queries) 2 March 26th 08 09:48 AM
Annual leave without holidays [email protected] Excel Discussion (Misc queries) 3 March 14th 08 06:27 PM
Annual leave [email protected] Excel Discussion (Misc queries) 3 March 12th 08 02:20 PM
Annual Leave Planner peter Excel Discussion (Misc queries) 1 November 1st 06 10:17 AM
Annual Leave Aussie Peter Excel Discussion (Misc queries) 1 January 31st 06 03:25 AM


All times are GMT +1. The time now is 10:10 AM.

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"