IF logical test, value if true, value if false

steverpi75

New Member
Joined
Mar 23, 2006
Messages
14
I'm having a hard time writing an equation for this scenario:

For an error rate:

0.0 to 0.3 = 0.02 points

>0.3 to 0.6 = linear slope between .3 and .6

>0.6 = 0.0 points

This is the equation im using:

=IF(O3<=S3,0.02,IF(O3>S3,(R3-O3)/15,"0.00"))

Where:
O3= error rate value that I'm trying to score
S3=0.3
R3=0.6

The equation works until I have a number > 0.6 at which point I get negative numbers, which I don't want.

Thanks for the help.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try this:

Code:
=IF(O3<=S3,0.02,IF(O3<R3,(R3-O3)/15,0))

Note that using "0.00" returns a text value. If that's what you want, then replace the ,0 at the end to ,"0.00" as before.
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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