If problem

rwhalls

New Member
Joined
Feb 2, 2008
Messages
13
The formula below can produce two results. I need a third. If M17_R17 is greater than R17 the result should be 1.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

Thanks

=IF(OR((M17+R17)=N17,(M17+R17)<N17),0,-1)<o:p></o:p>

 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
The formula below can produce two results. I need a third. If M17-R17 is greater than R17 the result should be 1.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

Thanks

=IF(OR((M17+R17)=N17,(M17+R17)<N17),0,-1)< font>

In its posted form Excel will not accept that as a formula.

If you make it syntactically correct, then the possible results are either M17+R17 or FALSE.

So, if you want to add another condition which of the conditions should take precedence? M17+R17=N17 or M17-R17 is greater than R17 ?

 
Upvote 0
In the following formula when (M17+R17)<N17 it should produce -1. It produces 0.<N17 b 0.< a It -1. should produces produce it>
<N17 b 0.< a producing is It -1. be should><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>


=IF(AND((M17+R17)<>N17,(M17+R17)>=N17),1,IF(OR((M17+R17)=N17,(M17+R17)<N17),0,-1)) <o:p></o:p>
 
Last edited:
Upvote 0
In the following formula when (M17+R17)<N17 should be -1. It is producing a 0.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
=IF(AND((M17+R17)<>N17,(M17+R17)>=N17),1,IF(OR((M17+R17)=N17,(M17+R17)<N17),0,-1)) <o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top