
Originally Posted by
jhren
In cell B10 of your 2nd file...
=LEFT(A10,SMALL(IFERROR(SEARCH($E$10:$E$341,A10),LEN(A10)),1))
... and enter as an array formula (Ctrl+Shift+Enter), then fill/copy down.
Also, it appears some of the text you may want to remove is not in your list, e.g. " !".
If you make your list a dynamically-expanding named range, you can substitute its name for $E$10:$E$341 in the formula, and not have to change the formula every time you add to the list.
[ETA] PS: this formula "assumes" the text to remain is always to the left of the text to remove.
Bookmarks