OR condition in a formula

Viewed 65

The below formula helps to Start from ASD and before the slash it prints all the data.

Query: Now as per the requirement, i need to search for two words with OR condition. For eg it should either start with ASD or DEF I tried with OR condition but that is not working. Can someone pls guide in this.

Working Formula: =IF(ISNUMBER(SEARCH("ASD",A11)),MID(A11,SEARCH("""",A11)+1,SEARCH("/",A11)-1-SEARCH("""",A11)),"")

With OR Condition(which is not working) =IF(ISNUMBER(SEARCH("ASD",A11) OR SEARCH("DEF",A11)),MID(A11,SEARCH("""",A11)+1,SEARCH("/",A11)-1-SEARCH("""",A11)),"")

2 Answers

It has to look like:

=IF(OR(ISNUMBER(SEARCH("ASD",A11)), ISNUMBER(SEARCH("DEF",A11))),MID(A11,SEARCH("""",A11)+1,SEARCH("/",A11)-1-SEARCH("""",A11)),"")
Related