Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Need Formula for Calculating Accrued Vacation Time


Using Excel 2003. i have hire date and today(). i have a formula that
calculates time employed in years, months, days. i need a formula that
can help me figure out the number to vacation days accrued starting on
1/1/09. Policy: after 1 year of service = 5 days or 40 hours. after 2
years of service = 10 days or 80 hours. after 8 years of service = 15
days or 120 hours. Accrual is based on hire date; however we are
starting 1/1/09 on a yearly schedule for vacation. Therefore the formula
is not that simple. i need to know how many days each person will have
according to their start date on 1/1/09. days are not rolled. here is
what i have:
Worksheet:
Header Row
A1: Employee
B1: Address
C1: Hire Date
D1: Today()
E1: Time in Service
=YEAR(D2)-YEAR(C2)-IF(OR(MONTH(D2)<MONTH(C2),AND(MONTH(D2)=MONTH(C2),
DAY(D2)<DAY(C2))),1,0)&" years, "&MONTH(D2)-MONTH(C2)+IF(AND(MONTH(D2)
<=MONTH(C2),DAY(D2)<DAY(C2)),11,IF(AND(MONTH(D2)<M ONTH(C2),DAY(D2)
=DAY(C2)),12,IF(AND(MONTH(D2)MONTH(C2),DAY(D2)<D AY(C2)),-1)))&"

months,
"&D2-DATE(YEAR(D2),MONTH(D2)-IF(DAY(D2)<DAY(C2),1,0),DAY(C2))&" days"


--
jd_dps
------------------------------------------------------------------------
jd_dps's Profile: http://www.thecodecage.com/forumz/member.php?userid=71
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=44345

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Need Formula for Calculating Accrued Vacation Time

Hi,

There are several ways of working out holiday entitlement as of
1/1/09. here's one.

Build a table of service & holidays that looks something like this

1 40
2 80
8 120

In this case it's in columns O & P

the this formula will calculate for a start date in C1

=VLOOKUP(DATEDIF(C1,DATE(2009,1,1),"y"),$O$1:$P$3, 2,TRUE)

Drag down for other employees
Note I've used DATEDIF which isn't documented in Excel. Google for it
to find out how it works.

Mike

On Dec 27, 7:26*am, jd_dps wrote:
Using Excel 2003. *i have hire date and today(). *i have a formula that
calculates time employed in years, months, days. *i need a formula that
can help me figure out the number to vacation days accrued starting on
1/1/09. *Policy: after 1 year of service = 5 days or 40 hours. *after 2
years of service = 10 days or 80 hours. *after 8 years of service = 15
days or 120 hours. *Accrual is based on hire date; however we are
starting 1/1/09 on a yearly schedule for vacation. Therefore the formula
is not that simple. *i need to know how many days each person will have
according to their start date on 1/1/09. *days are not rolled. here is
what i have:
Worksheet:
Header Row
A1: Employee
B1: Address
C1: Hire Date
D1: Today()
E1: Time in Service
=YEAR(D2)-YEAR(C2)-IF(OR(MONTH(D2)<MONTH(C2),AND(MONTH(D2)=MONTH(C2),
DAY(D2)<DAY(C2))),1,0)&" years, "&MONTH(D2)-MONTH(C2)+IF(AND(MONTH(D2)
<=MONTH(C2),DAY(D2)<DAY(C2)),11,IF(AND(MONTH(D2)<M ONTH(C2),DAY(D2)=DAY(C2)),12,IF(AND(MONTH(D2)MON TH(C2),DAY(D2)<DAY(C2)),-1)))&"

months,
"&D2-DATE(YEAR(D2),MONTH(D2)-IF(DAY(D2)<DAY(C2),1,0),DAY(C2))&" days"

--
jd_dps
------------------------------------------------------------------------
jd_dps's Profile:http://www.thecodecage.com/forumz/member.php?userid=71
View this thread:http://www.thecodecage.com/forumz/sh...ad.php?t=44345


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Need Formula for Calculating Accrued Vacation Time


Thank you. the hours calculated perfectly.


--
jd_dps
------------------------------------------------------------------------
jd_dps's Profile: http://www.thecodecage.com/forumz/member.php?userid=71
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=44345

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 Accrued SilviaG Excel Discussion (Misc queries) 4 June 5th 08 03:08 PM
Earned Vacation time Formula Savage666 Excel Discussion (Misc queries) 2 May 29th 08 03:54 AM
How do I add "accrued vacation days" column to the Employee Attend Jam Excel Worksheet Functions 4 February 5th 08 06:06 AM
Calculating Vacation Time by Month Steve Excel Discussion (Misc queries) 0 July 5th 07 03:30 PM
Accrued Vacation Kim Campbell via OfficeKB.com Excel Worksheet Functions 8 January 12th 05 03:01 PM


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