Remember Me?

#1
June 26th 05, 12:56 AM
 PaulStroik Posts: n/a
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
Thank you for any assistance.

--
PaulStroik
------------------------------------------------------------------------
PaulStroik's Profile: http://www.excelforum.com/member.php...o&userid=24640

#2
June 26th 05, 05:00 AM
 Biff Posts: n/a

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.

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
Thank you for any assistance.

--
PaulStroik
------------------------------------------------------------------------
PaulStroik's Profile:
http://www.excelforum.com/member.php...o&userid=24640

 Posting Rules Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On

 Similar Threads Thread Thread Starter Forum Replies Last Post Jason Dove Excel Discussion (Misc queries) 27 October 24th 08 07:58 PM matt guy Excel Discussion (Misc queries) 1 June 10th 05 08:55 PM David Gerstman Excel Discussion (Misc queries) 2 May 23rd 05 03:58 PM Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM

All times are GMT +1. The time now is 06:37 PM.