Hi everyone,
I've been struggling to find a way to use a single formula to look for a text within a cell and, in another case, an exact match in that same cell.
This is an example:
Case 1= if A1 contains "red apples, apples, pears, grapes", value is TRUE
Case 2= if A1 contains "red apples, pears, grapes", value is FALSE
Case 3= if A1 contains "apples", value is TRUE
I would like B1 to display "OK" when the value is true as shown in the cases above. I want the formula to state the value is true only when the item 'apples' is present in the cell, and not others like 'red apples'.
I have tried with these formulas so far:
Any ideas?
Thanks in advance
I've been struggling to find a way to use a single formula to look for a text within a cell and, in another case, an exact match in that same cell.
This is an example:
Case 1= if A1 contains "red apples, apples, pears, grapes", value is TRUE
Case 2= if A1 contains "red apples, pears, grapes", value is FALSE
Case 3= if A1 contains "apples", value is TRUE
I would like B1 to display "OK" when the value is true as shown in the cases above. I want the formula to state the value is true only when the item 'apples' is present in the cell, and not others like 'red apples'.
I have tried with these formulas so far:
will be fine for case 1 and 3, but not 2=IF(OR(ISERROR(FIND("apple",A1,1))),"","OK")
will be fine for case 1 and 2, but not 3=IF(OR(ISERROR(FIND("apple,",A1,1))),"","OK")
Any ideas?
Thanks in advance