Not sure if need multiple IF statements or OR statement?

shellwig

New Member
Joined
Dec 22, 2015
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Hello - I'm trying to build a formula where , IF result is >200%, return "NM", IF results is <200%, return "NM" but if result is between those parameters then calculate the result. Thank you in advance.

1728063247703.png
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Maybe something like this:

=IF( OR( result > 200%, result < 200%),"NM", other calculation here)

this is just an idea of what your formula might look like.
 
Upvote 0
Or

Excel Formula:
=LET(
a,(A2/A1>-200%)*(A2/A1<200%)*(A2/A1),
IF(a=0,"NM",a))
 
Upvote 0
Thank you for the responses but neither formula is providing a solution to all 3 results.
 
Upvote 0
Thank you for the responses but neither formula is providing a solution to all 3 results.
Looking at the conditions you explained, it's impossible for it to perform the actual calculation unless it was exactly 200%.
Anything other than 200% will satisfy the OR conditions...

"NM" result > 200% < result "NM"

So only 200% would trigger your third result.
 
Upvote 0
Maybe the OR should be like this:

OR(A2/A1>200%,A2/A1<-200%)
 
Upvote 0
Hello - I'm trying to build a formula where , IF result is >200%, return "NM", IF results is <200%, return "NM" but if result is between those parameters then calculate the result.
I am guessing that you misspoke, and for the part in red you meant to say "<-200%".

If so, try this formula (for your first calculation on cells A1 and A2):
Excel Formula:
=LET(p,A2/A1,IF(ABS(p)>200%,"NM",p))
and just change the "A2" to "A4" and "A6" for your other 2 calculations.
 
Upvote 0
I made the same assumption as others; that you want NM if the result is >200% or <-200%.
Excel Formula:
=LET(r,A2/$A$1,IF(OR(r>2,r<-2),"NM",r))
1728066909745.png
 
Upvote 0
Solution
Note that the use of the ABS function allows you to bypass the need for an OR altogether.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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