Forum Discussion
atpbi10
5 years agoHelper I
Remove certain string from text in the column
Hey! How can I transform this column which contains certain string that starts with certain character which is in my case "PL" Name Jay Chua PL231221 John Cena Arnold Black PL212233 ...
- 5 years ago
You can add a custom column with this formula
= Text.Combine(List.Select(Text.Split([Name], " "), each not(Text.Contains(_, "PL"))), " ")
Pat
Anonymous
5 years agoNot applicable
If the string to be deleted is at the end of the text (or better,if the text to keep is before the PLxyz pattern ), as in your examples, you can create a custom column in this way.
You could eventually change "PL" with " PL" to trim the trailing space