if function with multiple criteria

L

LaTanya

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
 
L

Luke M

=LOOKUP(G2,{1,11,15,21,25,31,35},{1,1.5,2,2.5,3,3.5,4})

Do note that your ranges are not equal.
11-14 covers 4 hours, while
15-20 covers 6 hours.

The lookup works by defining the lower limit of each section.
 
M

Mike H

Hi,

If i've understood correctly, try this

=LOOKUP(A1,{1,11,15,21,25,31,35},{"1 day","1.5 days","2 Days","2.5 Days","3
Days","3.5 Days","4 Days"})

Mike
 
J

Jacob Skaria

=MAX(1,CEILING(A1+IF(MOD(A1,10)=0,0,0.1),5)/10) & " day(s)"

If this post helps click Yes
 
A

Ashish Mathur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top