Captain Hindsight
New Member
- Joined
- Oct 9, 2013
- Messages
- 46
I have found the formula below which half applies to my problem.
This displays the correct word, depending on whether cell A1 contains that exact text only (cat, dog or mouse).
=VLOOKUP(A1, {"Cat","Purrs";"Dog","Barks";"Mouse","Squeaks"},2,0)
However I want it to display purrs, barks or squeaks if the cells contain the word cat, dog or mouse in them anywhere e.g. if cell A1 said "xx cat ht".
How can I do this please?
This displays the correct word, depending on whether cell A1 contains that exact text only (cat, dog or mouse).
=VLOOKUP(A1, {"Cat","Purrs";"Dog","Barks";"Mouse","Squeaks"},2,0)
However I want it to display purrs, barks or squeaks if the cells contain the word cat, dog or mouse in them anywhere e.g. if cell A1 said "xx cat ht".
How can I do this please?