rhombus4
Well-known Member
- Joined
- May 26, 2010
- Messages
- 586
- Office Version
- 365
- 2016
- Platform
- Windows
have the following formula so If A1 is No and A2 contains Apple and either A3 or A4 contain Yes then the result is Yes
This works fine whenever I change any of the cells.
=IF(AND(A1="No",ISNUMBER(SEARCH("apple",A2,OR(A3="Yes",A4="Yes")))),"Yes","No")
However If I change the formula from isnumber to iserror to make it so that it doesn't want Apple (see below)
It works fine as the result changes to NO, but when I change apple to banana or just delete apple from in A2 the result is yes as it matches apple not being in A2 which is right.
What confuses me is If I change A1 from no to something else the result changes to NO which is fine but If I change A3 or A4 so none of them are yes it still stays as Yes. (Should change to NO)
=IF(AND(A1="No",ISERROR(SEARCH("apple",A2,OR(A3="Yes",A4="Yes")))),"Yes","No")
This works fine whenever I change any of the cells.
=IF(AND(A1="No",ISNUMBER(SEARCH("apple",A2,OR(A3="Yes",A4="Yes")))),"Yes","No")
However If I change the formula from isnumber to iserror to make it so that it doesn't want Apple (see below)
It works fine as the result changes to NO, but when I change apple to banana or just delete apple from in A2 the result is yes as it matches apple not being in A2 which is right.
What confuses me is If I change A1 from no to something else the result changes to NO which is fine but If I change A3 or A4 so none of them are yes it still stays as Yes. (Should change to NO)
=IF(AND(A1="No",ISERROR(SEARCH("apple",A2,OR(A3="Yes",A4="Yes")))),"Yes","No")