View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
PCLIVE PCLIVE is offline
external usenet poster
 
Posts: 1,311
Default Need help with IF Statement

I create a table using your data as follows. For this example, I'm using
Columns O through R.


1-9 10-15 16+
1 10 15 20
2 12 16 20
3 13 17 20
4 13 17 20
5 15 18 20
6 15 18 20
7 17 19 20
8 17 19 20
9 17 19 20
10 20 20 20




Then I'm using the following formula to determin the number of vacation
days.

=IF(T1<1,"Less than 1
Year",VLOOKUP(C1,O2:R11,IF(AND(T1=1,T1<10),2,IF(A ND(T19,T1<16),3))))

HTH,
Paul

"idribble" wrote in message
...
I am wanting to create a statement that will look at the employees number
of
years that they are working, and then look at their grade level, and then
determine the number of vacation days they are warranted.

I have tried the basic =IF(AND(C16<=9, T16=1), "10", "0")+IF(AND....
but that statet gets too long with more than 47 +IF statements which are
not
allowed.

Need if

I have included an example chart.

Length of Service Grades 1-9 Grades 10-15 Grades 16+
At least 1 but < 2 years 10 days 15 days 20 days
At least 2 but < 3 years 12 days 16 days 20 days
At least 3 but < 5 years 13 days 17 days 20 days
At least 5 but < 7 years 15 days 18 days 20 days
At least 7 but < 10 years 17 days 19 days 20 days
10 years or more 20 days 20 days 20 days


Basically if they are a grade 11 with 7 years of service, I want it to say
19. For a Grade 14 with 5 years of service, to say 18 days.

I can do the less than 9 years, but can't figure out to check grades
10-15,
and 3-4 years.

Thanks.