Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default How do you Combine Two IF formulas

I am trying to combine =IF((B5*M5)<150,150,(B5*M5)) and =IF((B4*M4)500.01,500,(B4*M4)). I can't seem to get the syntax correct, or may be it is not supported to do nested IF.
Can somebody help me on this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default How do you Combine Two IF formulas

I am trying to combine =IF((B5*M5)<150,150,(B5*M5)) and
=IF((B4*M4)500.01,500,(B4*M4)).


There are four cases. Think about what result is needed in each case.

(B5*M5)<150 and (B4*M4)500.01
(B5*M5)<150 and NOT((B4*M4)500.01)
NOT(B5*M5)<150 and (B4*M4)500.01
NOT(B5*M5)<150 and NOT(B4*M4)500.01

OTOH, if the problem is actually all in one row, one way is:
=MAX(150,MIN(B4*M4,500))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default How do you Combine Two IF formulas

The result I am after is in one cell, I need the formula to enter 150.00 if the calculation result is less ten 150.00[=IF((B5*M5)<150,150,(B5*M5))] and enter 500.00 if the calculation is greater than 500.00[=IF((B4*M4)500.01,500,(B4*M4))]

so the two IF will be in the same cell.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default How do you Combine Two IF formulas

On Sunday, June 2, 2013 1:21:54 PM UTC-7, Ardy wrote:
The result I am after is in one cell, I need the formula to
enter 150.00 if the calculation result is less ten 150.00
[=IF((B5*M5)<150,150,(B5*M5))] and enter 500.00 if the calculation
is greater than 500.00[=IF((B4*M4)500.01,500,(B4*M4))]

so the two IF will be in the same cell.


The above shows 2 different calculations: the first referencing row 5 and the second referencing row 4. So what does "the" calculation mean?

I'm guessing that the intent is to refer to the same row; that is, the same calculation is compared with both 150 and 500. If that's right -- while it's possible to write nested IF's -- it's more straightforward to use this, in my opinion:
=MAX(150,MIN(B4*M4,500))
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default How do you Combine Two IF formulas

On Sunday, June 2, 2013 9:17:49 AM UTC-7, Ardy wrote:
I am trying to combine =IF((B5*M5)<150,150,(B5*M5)) and =IF((B4*M4)500.01,500,(B4*M4)). I can't seem to get the syntax correct, or may be it is not supported to do nested IF.

Can somebody help me on this.


my mistake, your assumption is correct, the min and max did the trick.......
Thanks.......
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
Can I combine 2 formulas? dp New Users to Excel 8 November 4th 08 03:24 PM
Combine 2 formulas Ken Excel Worksheet Functions 5 September 5th 08 10:33 AM
Combine Formulas Dennis1188 Excel Discussion (Misc queries) 5 March 5th 07 09:34 PM
how to combine formulas to......... gmisi Excel Worksheet Functions 5 January 13th 07 08:47 PM
Combine 2 formulas Steved Excel Worksheet Functions 3 August 8th 05 10:09 PM


All times are GMT +1. The time now is 10:29 AM.

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

About Us

"It's about Microsoft Excel"