Formula - Multiple "IF's" for end result

jd706

New Member
Joined
Nov 6, 2017
Messages
3
Hello,

I would like some help please! I am trying to create a formula to show results of "frequency" based on "accuracy".

My spreadsheet is 150 rows; each row has a frequency result:
[TABLE="width: 189"]
<tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Accuracy
[/TD]
[TD]Frequency
[/TD]
[/TR]
[TR]
[TD]≥99.5%
[/TD]
[TD]1x/yr.
[/TD]
[/TR]
[TR]
[TD]≥98.0% but <99.5%
[/TD]
[TD]2x/yr.
[/TD]
[/TR]
[TR]
[TD]<98.0%
[/TD]
[TD]4x/yr.
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]I created this formula, but not so sure it's correct. The formula is carried to each row, but the frequency result in most rows is not correct.
=IF(C5>99.5,"1x",IF(C5>98<99.5,"2x",IF(C5<98,"4x")))

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Welcome to the Board!

Since nested IF statements stop once a True condition is met, just work your way down the line, like this:
=IF(C5>99.5%,"1x",IF(C5>=98%,"2x","4x"))

Also, I don't know how your numbers are listed, be be aware that 99.5% really equals .995, not 99.5.
 
Upvote 0
You can also try a lookup
=LOOKUP(C5,{0,0.98,0.995},{"4x","2x","1x"})
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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