Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Eligible Vacation Days Calculator

Need to calculate if someone has worked X months since DOH, they are entitled
to X vacation days: over 6 months = 1 week vacation; over 1 year = 2 weeks;
over 5 years = 3 weeks; over 10 years = 4 weeks; over 15 years = 5 weeks.

D2 E2 F2
Date of Hire Today's Date =DATEDIF($D2,$E2,"m")

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Eligible Vacation Days Calculator

=(DATEDIF(DOH,TODAY(),"M")=6)+(DATEDIF(DOH,TODAY( ),"Y")=1)+(DATEDIF(DOH,TODAY(),"Y")=5)+(DATEDIF( DOH,TODAY(),"Y")=10)+(DATEDIF(DOH,TODAY(),"Y")=1 5)

--
__________________________________
HTH

Bob

"tfarley" wrote in message
...
Need to calculate if someone has worked X months since DOH, they are
entitled
to X vacation days: over 6 months = 1 week vacation; over 1 year = 2
weeks;
over 5 years = 3 weeks; over 10 years = 4 weeks; over 15 years = 5 weeks.

D2 E2 F2
Date of Hire Today's Date =DATEDIF($D2,$E2,"m")

Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Eligible Vacation Days Calculator

You rock! Thank you!!!

"Bob Phillips" wrote:

=(DATEDIF(DOH,TODAY(),"M")=6)+(DATEDIF(DOH,TODAY( ),"Y")=1)+(DATEDIF(DOH,TODAY(),"Y")=5)+(DATEDIF( DOH,TODAY(),"Y")=10)+(DATEDIF(DOH,TODAY(),"Y")=1 5)

--
__________________________________
HTH

Bob

"tfarley" wrote in message
...
Need to calculate if someone has worked X months since DOH, they are
entitled
to X vacation days: over 6 months = 1 week vacation; over 1 year = 2
weeks;
over 5 years = 3 weeks; over 10 years = 4 weeks; over 15 years = 5 weeks.

D2 E2 F2
Date of Hire Today's Date =DATEDIF($D2,$E2,"m")

Any suggestions?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Eligible Vacation Days Calculator

In another location (I suggest a new sheet in the same workbook) enter the
following:

Col A Col B
6 1 Week
12 2 Weeks
60 3 Weeks
120 4 Weeks
180 5 Weeks

Select the 10 cells above and in the range name box type 'lookup'.

Now back in F2 use the following formula:
=VLOOKUP(DATEDIF($d2,$e2,"m"),lookup,2)

You can now customize the month or return values in the lookup table to suit
your needs without changing any formulas.


"Bob Phillips" wrote:

=(DATEDIF(DOH,TODAY(),"M")=6)+(DATEDIF(DOH,TODAY( ),"Y")=1)+(DATEDIF(DOH,TODAY(),"Y")=5)+(DATEDIF( DOH,TODAY(),"Y")=10)+(DATEDIF(DOH,TODAY(),"Y")=1 5)

--
__________________________________
HTH

Bob

"tfarley" wrote in message
...
Need to calculate if someone has worked X months since DOH, they are
entitled
to X vacation days: over 6 months = 1 week vacation; over 1 year = 2
weeks;
over 5 years = 3 weeks; over 10 years = 4 weeks; over 15 years = 5 weeks.

D2 E2 F2
Date of Hire Today's Date =DATEDIF($D2,$E2,"m")

Any suggestions?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Eligible Vacation Days Calculator

In F2 =DATEDIF($D2,$E2,"m")/12

In G2 =LOOKUP(F2,{0,0.5,1,5,10,15},{0,1,2,3,4,5})


Gord Dibben MS Excel MVP


On Tue, 24 Jun 2008 12:29:01 -0700, tfarley
wrote:

Need to calculate if someone has worked X months since DOH, they are entitled
to X vacation days: over 6 months = 1 week vacation; over 1 year = 2 weeks;
over 5 years = 3 weeks; over 10 years = 4 weeks; over 15 years = 5 weeks.

D2 E2 F2
Date of Hire Today's Date =DATEDIF($D2,$E2,"m")

Any suggestions?


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
vacation formula and 1/2 days Wanna Learn Excel Worksheet Functions 8 May 27th 08 08:33 AM
How do I add "accrued vacation days" column to the Employee Attend Jam Excel Worksheet Functions 4 February 5th 08 06:06 AM
I'm trying to count sick and vacation days Kevin Excel Worksheet Functions 6 January 25th 07 02:20 AM
Keeping track of Sickdays, Vacation days, and hours for each. Mike Excel Worksheet Functions 2 February 15th 06 07:05 PM
How do I track vacation days on Excel? CAlmarales Setting up and Configuration of Excel 1 February 8th 06 09:58 PM


All times are GMT +1. The time now is 07:57 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"