Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

sheets regex formula to remove specific text from end of string

I have a list of players, some of these players have "DD" or an "O" at the END of the name that id like to remove.

=REGEXREPLACE(A1, "DD", "")

can remove DD as there is no other DD however many name have the single "O" that would also be removed.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

here is a sample sheet

https://docs.google.com/spreadsheets/d/1_HoLyoDhP8KVTrsVKIp9FxVonVa2uvK6zQ8MVco9k3U/edit?usp=sharing

>Solution :

Try this out:

=REGEXREPLACE(A1,"(DD|O)$",)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading