• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

HELP - COMPUTING VACATION TIME ARGUMENT

jctaff

New Member
I'm trying to create a cell formula that will indicate how much vacation time someone has earned. The formula is based on their years of service. Here is a summary of the hours of vacation they can earn. Example, if they have 7.25 years of service they would have 80 hours of vacation time. Any help you can provide with this formula would be great. I've been working at it for 2 hours with limited success.

Jim

[pre]
Code:
Years of Service		No. of Hours
0.00	0.99	                0
1.00	4.99	                40
5.00	7.99	                80
8.00	11.99	                120
12.00	50.00	                160
[/pre]
 
Hi, jctaff!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about your question...


If you haven't performed yet the search herein, try going to the topmost right zone of this page (Custom Search), type the keywords used in Tags field when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.


For the data you posted, if we assume that it ranges from A1:C6 cells you can type this:

=VLOOKUP(xxx,B2:C6,2,TRUE)

where xxx is the actual service years for each employee. Make sure of having entries for 0 years and for the maximum years available (99?) so as to don't let VLOOKUP return error and place them in ascending order. Adjust the range B2:C6 properly.


Regards!
 
Hi jatcaff,


You can also try, with your data in A1:C6:
Code:
=LOOKUP(D1,$A$2:$A$6,$C$2:$C$6)


Regards,
 
@Faseeh

Hi!

Mine is 25 char long, yours is 31. I win by 6, oldchippy's dixit. :=P

Regards!
 
@ SirJB7,


If you had posted a LOOKUP() solution i would have come up with VOOKUP() so no issues :D


Faseeh
 
Back
Top