#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jody frazier
 
Posts: n/a
Default Date formula

I have a formula that talleys up vacation time for our employees.
=IF(DATEDIF(a2,
TODAY(),"Y")<10,DATEDIF(a2,TODAY(),"M")*3.30,400+D ATEDIF(DATE(YEAR(a2)+10,MONTH(a2),DAY(a2)),TODAY() ,"M")*6.60)

The policy states that an employee can start accruing more time per month
after he/she has had 10 years or more of service with us. My formula above
calculates this higher accrue rate on the employee's anniversary hire date.
I need it to start on the 10th calendar year not the anniversary hire date.
Can anyone help? I'm really stuck here... :-(
--
Thanks!
Jody
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Date formula

My interpretation is that if someone started on 1/1/95, they'll start
accruing the higher rate on 1/1/05; if they started any other day in 1995,
they won't get the higher rate until 1/1/06. If that's correct, I think this
will get you the
=3.3*DATEDIF(A2,TODAY(),"M")+3.3*IF(TODAY()=DATE( YEAR(A2-1)+11,1,1),DATEDIF(DATE(YEAR(A2-1)+11,1,1),TODAY(),"M"),0)
I kept the 3.3 you had, though I think 10/3 is probably what should be there
(the 3.3 causes a jump from 396 hours to 400 on the tenth anniversary).
Hope this helps. --Bruce

"jody frazier" wrote:

I have a formula that talleys up vacation time for our employees.
=IF(DATEDIF(a2,
TODAY(),"Y")<10,DATEDIF(a2,TODAY(),"M")*3.30,400+D ATEDIF(DATE(YEAR(a2)+10,MONTH(a2),DAY(a2)),TODAY() ,"M")*6.60)

The policy states that an employee can start accruing more time per month
after he/she has had 10 years or more of service with us. My formula above
calculates this higher accrue rate on the employee's anniversary hire date.
I need it to start on the 10th calendar year not the anniversary hire date.
Can anyone help? I'm really stuck here... :-(
--
Thanks!
Jody

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
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Excel formula with date constraints Warrior Pope Excel Discussion (Misc queries) 3 January 28th 05 03:08 PM
Formula with date constraints Warrior Pope Excel Worksheet Functions 1 January 28th 05 02:11 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


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

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"