cut off words (or replace by "") in list from strings

ooptennoort

Board Regular
Joined
Mar 29, 2021
Messages
66
Office Version
  1. 365
Platform
  1. Windows
Power Query: I have a column with strings and a list of words I need found in that column AND (this is the difficult part) when found these words need to get cut off from the string (or replaced by "")? How? A sort of textual substraction... have been trying so long... list.accumulate etc... something like List. RemoveItems BUT not quite...

SOURCEFIND IN SOURCE and EXTRACT/CUT OFFRESULT
Some words are best leftbest leftSome words are
Other words are said too oftenare said to oftenOther words
Fun words to saywords to sayFun
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I am a BIG Power Query advocate, but no need to complicate things that are simple!
Book1
ABC
1SOURCEFIND IN SOURCE and EXTRACT/CUT OFFRESULT
2Some words are best leftbest leftbest left
3Other words are said too oftenare said to often#PHRASE NOT FOUND!
4Fun words to saywords to saywords to say
Sheet1
Cell Formulas
RangeFormula
C2:C4C2=IFERROR(RIGHT(A2,LEN(A2)-FIND(B2,A2)+1),"#PHRASE NOT FOUND!")


NOTE: The FIND function is case sensitive. Replace it with SEARCH for case insensitive result:
Book1
ABC
1SOURCEFIND IN SOURCE and EXTRACT/CUT OFFRESULT
2Some words are best leftBest leftbest left
Sheet1
Cell Formulas
RangeFormula
C2C2=IFERROR(RIGHT(A2,LEN(A2)-SEARCH(B2,A2)+1),"#PHRASE NOT FOUND!")
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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