Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Multiple conditions using greater than or less than.

I am trying to create a formula to help me with the below scenerio.

I need to calculate how many days of PTO time someone would get based on
years of service.

the years of service cell is less than 2, the employee gets 11 days of pto
if the years of service =2 or anything up to 3, the employee gets 16 days of
pto
if the years of service is =3 or anything up to 4, the employee gets 17 days
of pto
if the years of service is =4 or anthing up to 5, the employee gets 18 days
of pto
if the years of service is from 5-19 years, the employee gets 22 days of pto

I think you can see the pattern from this partial information.

Any guidance would be much appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Multiple conditions using greater than or less than.

Jane.

This looks at years service in A1 and calculates PTO whatever that is

=LOOKUP(A1,{1,2,3,4,5},{11,16,17,18,22})
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Jane" wrote:

I am trying to create a formula to help me with the below scenerio.

I need to calculate how many days of PTO time someone would get based on
years of service.

the years of service cell is less than 2, the employee gets 11 days of pto
if the years of service =2 or anything up to 3, the employee gets 16 days of
pto
if the years of service is =3 or anything up to 4, the employee gets 17 days
of pto
if the years of service is =4 or anthing up to 5, the employee gets 18 days
of pto
if the years of service is from 5-19 years, the employee gets 22 days of pto

I think you can see the pattern from this partial information.

Any guidance would be much appreciated!

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
Setting multiple conditions to return a figure from multiple cells Sapper Excel Discussion (Misc queries) 4 April 26th 09 10:33 PM
Using IF statement to evaluate Greater or Less than Conditions Shams Excel Discussion (Misc queries) 2 April 3rd 08 04:49 PM
Multiple Conditions Using Greater Than Less Than Paperback Writer Excel Discussion (Misc queries) 3 November 30th 06 08:20 PM
IF ranges for multiple columns greater then less then Soccer_Ref Excel Worksheet Functions 3 August 27th 05 10:13 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 09:47 AM.

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

About Us

"It's about Microsoft Excel"