View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default if function with multiple criteria

Hi,

In range B3:D9, enter the range I.e. in range B3:B9 enter the lower limits,
in range C3:C9, enter the upper limits and in D3:D9 enter the days. In cell
B1, you may use the following formula

=vlookup(A1,B3:D9,3)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"LaTanya" wrote in message
...
I need an if function that would return the number of days below

If cell a1=32 hours =3.5 days
Range:
1-10= 1day
11-14=1.5 days
15-20=2 days
21-24= 2.5 days
25-30=3 days
31-34= 3.5 days
35-40= 4 days