Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Sick leave calculation'

Hey guys,

I have tried a formula to count the sick leave taken but i realize
that my formula is wrong b in my company the balance of my sick leave
will be restarted each time the employee completes the year so i
messed up


please help this is the formula that i have used


C=Starting Date


and this is the sick leave schedule :
3months to 2 years:15 days
2 years tp 4 years :30 days
4 years to 6 years: 45 days
6 years to 10 years : 60 days


=IF(TODAY()-C66*365,60,IF(TODAY()-C64*365,45,IF(TODAY()-
C62*365,30,IF(TODAY()-C60.25*365,15))))


please advise


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sick leave calculation'

Try this

=IF(DATEDIF(C6,TODAY(),"M")<3,0,LOOKUP(DATEDIF(C6, TODAY(),"Y"),{0,2,4,6},{15,30,45,60}))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Tia" wrote in message
...
Hey guys,

I have tried a formula to count the sick leave taken but i realize
that my formula is wrong b in my company the balance of my sick leave
will be restarted each time the employee completes the year so i
messed up


please help this is the formula that i have used


C=Starting Date


and this is the sick leave schedule :
3months to 2 years:15 days
2 years tp 4 years :30 days
4 years to 6 years: 45 days
6 years to 10 years : 60 days


=IF(TODAY()-C66*365,60,IF(TODAY()-C64*365,45,IF(TODAY()-
C62*365,30,IF(TODAY()-C60.25*365,15))))


please advise




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sick leave calculation'

=LOOKUP(DATEDIF(C6,TODAY(),"m"),{0,3,25,49,73},{0, 15,30,45,60})


"Tia" wrote:

Hey guys,

I have tried a formula to count the sick leave taken but i realize
that my formula is wrong b in my company the balance of my sick leave
will be restarted each time the employee completes the year so i
messed up


please help this is the formula that i have used


C=Starting Date


and this is the sick leave schedule :
3months to 2 years:15 days
2 years tp 4 years :30 days
4 years to 6 years: 45 days
6 years to 10 years : 60 days


=IF(TODAY()-C66*365,60,IF(TODAY()-C64*365,45,IF(TODAY()-
C62*365,30,IF(TODAY()-C60.25*365,15))))


please advise



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
Holiday and sick leave records impacter[_2_] Excel Worksheet Functions 1 January 4th 08 04:19 PM
How to leave a formula cell blank when it has no calculation to make Colin Hayes Excel Discussion (Misc queries) 9 May 13th 07 04:41 AM
IF,or IF--so sick of IF's heathercor Excel Worksheet Functions 4 June 21st 06 06:01 PM
Formula and Condition for a Calculation to leave a zero if the res SSG Devine Excel Worksheet Functions 3 March 13th 06 06:55 PM
employee annual sick leave tracker with hours owing not used Melanie Excel Discussion (Misc queries) 0 July 21st 05 06:33 AM


All times are GMT +1. The time now is 11:36 PM.

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

About Us

"It's about Microsoft Excel"