Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old June 26th 05, 12:56 AM
PaulStroik
 
Posts: n/a
Default New to Excel with Question


I am new to Excel and thought this a good opportunity to learn something
about Excel. The Project I am working on requires figuring out the
Vacation hours earned after being employed X number of years. If
present year minus year of employment is greater than (or less than) X,
then hours earned equals Y. I hope this is clear enough!? Any direction
would be appreciated. So far I have been using the Help File but have
much to learn about Formulas.
Thank you for any assistance.


--
PaulStroik
------------------------------------------------------------------------
PaulStroik's Profile: http://www.excelforum.com/member.php...o&userid=24640
View this thread: http://www.excelforum.com/showthread...hreadid=382262


  #2   Report Post  
Old June 26th 05, 05:00 AM
Biff
 
Posts: n/a
Default

Hi!

Here's one way.

Assume the vacation ranges a

1 yr...........40 hrs
5 yrs.........80 hrs
10 yrs.....120 hrs
20+ yrs...160 hrs

Employee hire date is in cell A2:

=VLOOKUP(YEAR(TODAY())-YEAR(A2),{1,40;5,80;10,120;20,160},2,1)

If the date difference ( in years) is less than 1 yr the formula will return
#N/A. Any difference in years greater then 20 will return 160.

That answers your question as posed. However, just about every employer has
their own method for determining vacation earned. Some base it on the
employees hire date anniversary.

Consider this example:

Employee hire date: 12/31/2004

Todays date: 1/1/2005

Using this example the above formula would return 40 even though the total
difference in dates is only 1 day.

Also, if an employer bases vacation time on anniversary dates how does an
employee take 40 hrs of vacation starting on 12/31/2005? Hopefully, some
common sense is applied but you never can tell with some companies!

Biff

"PaulStroik" wrote
in message ...

I am new to Excel and thought this a good opportunity to learn something
about Excel. The Project I am working on requires figuring out the
Vacation hours earned after being employed X number of years. If
present year minus year of employment is greater than (or less than) X,
then hours earned equals Y. I hope this is clear enough!? Any direction
would be appreciated. So far I have been using the Help File but have
much to learn about Formulas.
Thank you for any assistance.


--
PaulStroik
------------------------------------------------------------------------
PaulStroik's Profile:
http://www.excelforum.com/member.php...o&userid=24640
View this thread: http://www.excelforum.com/showthread...hreadid=382262





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
Excel files in separate program windows Jason Dove Excel Discussion (Misc queries) 27 October 24th 08 07:58 PM
Excel Question....Help !!!! matt guy Excel Discussion (Misc queries) 1 June 10th 05 08:55 PM
eXceL 2003 - list or combo box question David Gerstman Excel Discussion (Misc queries) 2 May 23rd 05 03:58 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 07:55 PM


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

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017