Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default if function with multiple criteria

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default if function with multiple criteria

=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.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"LaTanya" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default if function with multiple criteria

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

"LaTanya" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default if function with multiple criteria

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

If this post helps click Yes
---------------
Jacob Skaria


"LaTanya" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


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
If function multiple Criteria Haz Excel Discussion (Misc queries) 8 October 29th 08 08:43 PM
IF Function with Multiple Criteria bethanon Excel Worksheet Functions 2 October 20th 08 05:42 PM
Multiple results from multiple criteria using IF function David Platt Excel Discussion (Misc queries) 2 January 15th 07 10:19 AM
Multiple Sheet, Multiple Criteria Look-Up Function Help Dan Oakes Excel Worksheet Functions 5 December 29th 06 01:37 PM
Look up function for multiple criteria DEE Excel Worksheet Functions 2 November 21st 06 07:00 PM


All times are GMT +1. The time now is 12:48 PM.

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"