IF(OR where the value can be a number or text

Snake Eyes

Board Regular
Joined
Dec 14, 2010
Messages
118
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
In this formula I'm trying to check for a number entered in D43 that is outside the range of -150 and 250 OR if the text entered is not NL.
Excel Formula:
=IF(D43<>"NL","Complete the checklist",IF(OR(D43<=-150,D43>=250),"Outside range - complete checklist","next check"))

The problem is that any number entered is going to return true since it's not = NL even if the number is outside the range.
How do I account for a mix of text and numbers in the statement, which is where I think the problem lies?
 
Does this solve the problem?
=IF(AND(D43<>"NL",OR(D43<=-150,D43>=250)),"Outside range - complete checklist",IF(D43<>"NL","Complete Checklist","Next Check"))
 
Upvote 0
Does this solve the problem?
=IF(AND(D43<>"NL",OR(D43<=-150,D43>=250)),"Outside range - complete checklist",IF(D43<>"NL","Complete Checklist","Next Check"))
Jeffrey,
- Your solution returns "complete checklist" if the value is inside the range of -150 and 250.
+ Values outside that range do return "Outside range - complete checklist".
+ NL does return "next check"
 
Upvote 0
How about
Excel Formula:
=IF(AND(ISNUMBER(D43),OR(D43<=-150,D43>=250)),"Outside range - complete checklist",IF(AND(ISTEXT(D43),D43<>"NL"),"Complete Checklist","Next Check"))
 
Upvote 0
Solution
How about
Excel Formula:
=IF(AND(ISNUMBER(D43),OR(D43<=-150,D43>=250)),"Outside range - complete checklist",IF(AND(ISTEXT(D43),D43<>"NL"),"Complete Checklist","Next Check"))
TY you Fluff.
That worked.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

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