Nestedm, return a result if a cell hase a certain text embeded in it

DeaninGA

Board Regular
Joined
May 20, 2013
Messages
146
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Thank you all for the help in advance. If I want to look for the word "Rover" Embeded in a cell and i want to return the word "Dog" but if the cell has the word "Fluffy" I want to return "Cat" I cannot get the nesting syntax on this one to work.. or perhaps im doing it completely wrong.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try:

Book1
ABCDEF
1PhraseWordCode
2Run, Rover, Run!DogDogRoverDog
3Fluffy likes milk.CatCatFluffyCat
4Mickey is a mouse.  
Sheet5
Cell Formulas
RangeFormula
B2:B4B2=IFERROR(LOOKUP(2,1/SEARCH($E$2:$E$3,A2),$F$2:$F$3),"")
C2:C4C2=IF(ISNUMBER(SEARCH("Rover",A2)),"Dog",IF(ISNUMBER(SEARCH("Fluffy",A2)),"Cat",""))


If you only have 2 words, then the C2 formula should work. If you have more, I'd suggest making a table and using the B2 formula.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top