I Need help with my IF(OR statement

O177812

Board Regular
Joined
Apr 16, 2015
Messages
82
Office Version
  1. 365
  2. 2021
I can't seem to make it work when the statement is False

=IF(OR(MID(S8,FIND("°",S8)-3,3)<>MID(V8,FIND("°",V8)-3,3), AND(ISNUMBER(FIND("°",S8)),ISNUMBER(FIND("heat safe",V8))), AND(OR(V8={"Oven","°"}),COUNTIF(S8,"<>*°*"))), "ERROR", S8)

can someone help?
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I'm not sure the V8={"Oven","°"} works they way you think. Did you mean to have an array, or did you mean V8="Oven" or V8="°"?
Edit: Nevermind! I missed on my own testing, and the OR(
V8={"Oven","°"}) worked as I imagined you meant. Sorry!
 
Last edited:
Upvote 0
This is the my progress so far and it is working for almost all processes except the (2) listed in bold. :(

=IF(OR(MID(JE2,FIND("°",JE2)-3,3)<>MID(NS2,FIND("°",NS2)-3,3), AND(ISNUMBER(FIND("°",JE2)),ISNUMBER(FIND("heat safe",NS2))), AND(OR(NS2={"Oven","°"}),COUNTIF(JE2,"<>*°*")), NS2=""), "ERROR", JE2)
 
Upvote 0
What is the exact issue? Is the bold part not coming up with the expected answer? The formula make it seem that you want both NS2 to have either Oven or ° and to have JE2 to not contain °. Is that correct?
 
Upvote 0
It's difficult (to say the least) to 'fix' a broken formula that doesn't do what you want.
It's usually much easier to work from scratch based on a worded description of what you want.

Can you just describe in words what it is you want to achieve?
 
Upvote 0
I have fixed almost all of it.

I need to check the text of a vlookup to see if it does not contain a degree symbol.

=IF(AND(SEARCH("°", NS446),COUNTIF(Vlookup(A2, DATA, 3, FALSE), *<>*°*")), "ERROR", "GOOD")
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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