If, then formula with multiple options

laura_pink

New Member
Joined
Aug 21, 2014
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi,

I need a formula that will return a value to me based on the content of two cells.

Cell A1 contains a number between 0 and 7 to 2 decimal places i.e. 2.5
Cell A2 contains the words 'OK' or 'NOT POSSIBLE'

I need a formula that says that if cell A2 contains 'NOT POSSIBLE', then the answer is always "3E" regardless of what is in A1. If however A2 contains 'OK' and A1 has a value of 1.9 or less the answer is "1", a value of 2.0-2.9 the answer is "2", a value of 3.0-3.9 the answer is "3", a value of 4.0 or more the answer is "3E"

After many hours trying I cannot get anything to work and am now doubtful as to whether there are too many arguments. Any help would be greatly appreciated.
Thanks, Laura
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about
Excel Formula:
=IF(OR(A2="NOT POSSIBLE",A1>4),"3E",INT(A1))
 
Upvote 0
Solution
Hi,
Will this do
=IF(B2="Not Possible","3E",ROUNDDOWN(A2,0))
This worked although I needed the maximum level to be 3E if 4 or higher and this kept putting 5, 6 whatever the digit number started with. I think it was very close though! thanks
 
Upvote 0

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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