greevek
New Member
- Joined
- Mar 15, 2017
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
- Web
Hi
Please can someone help, I have a formula that looks at a cell and returns a 1 if it matches the criteria and doesn't contain another specific word. Here is the formula:
The problem I have is I want it to only return the result if all the criteria are met, i.e. the cell contains Apple, Orange, and Peach. At the minute it returns a 1 if any one of the 3 words is showing in that box, it does of course return 0 if Pears is included which is a result! Can anyone help me with my formula so it will return the result I am looking for? Also, not sure if this matters, but the words won't always be entered in the cell in the same order, it is randomly added from a quiz result.
(I Apologise if I haven't explained what I am looking for either.)
Please can someone help, I have a formula that looks at a cell and returns a 1 if it matches the criteria and doesn't contain another specific word. Here is the formula:
Excel Formula:
=AND(COUNT(SEARCH({"Apple","Orange","Peach"},$A2))>0,COUNT(SEARCH({"Pears"},$A2))=0)
The problem I have is I want it to only return the result if all the criteria are met, i.e. the cell contains Apple, Orange, and Peach. At the minute it returns a 1 if any one of the 3 words is showing in that box, it does of course return 0 if Pears is included which is a result! Can anyone help me with my formula so it will return the result I am looking for? Also, not sure if this matters, but the words won't always be entered in the cell in the same order, it is randomly added from a quiz result.
(I Apologise if I haven't explained what I am looking for either.)