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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,216,434
Messages
6,130,597
Members
449,584
Latest member
c_clark

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