Forum Discussion
Rene81
May 31, 2023Copper Contributor
Cells contain specific text return value
Hi all I need help please The below works well in finding the word T-Shirts in a sentence in a column BUT I want to look for more than just that, I need to include anything that contains Shorts in ...
HansVogelaar
May 31, 2023MVP
Enter all the words you want to look for in a range, one per cell.
Select the range.
Click in the name box on the left hand side of the formula bar.
Type a name, for example Types, and press Enter.
Let's say your data begin in G2.
Enter the following formula in H2, then fill down:
=IFERROR(INDEX(Types, MATCH(TRUE, ISNUMBER(SEARCH(Types, G2)), 0)), "")
- Rene81May 31, 2023Copper Contributor
HansVogelaar Thank you so much that works that has truly been a great help:)