Forum Discussion
Teresa Smagacz
Feb 12, 2024Copper Contributor
How to find/replace all text before and including the asterisk?
All the new payment options list themselves before the vendor purchase name along with an asterisk. How do I remove all text BEFORE AND INCLUDING the asterisk? CxxSH APP*GEORGE (had to add the xx...
- Feb 12, 2024
=RIGHT(A1,LEN(A1)-FIND("*",A1))
This formula removes all text before and including the asterik in my sheet.
OliverScheurich
Feb 12, 2024Gold Contributor
=RIGHT(A1,LEN(A1)-FIND("*",A1))
This formula removes all text before and including the asterik in my sheet.
- Teresa SmagaczFeb 12, 2024Copper ContributorDo you know I Googled forever to find this answer and no one answered it and/or showed how to do this with an asterisk as the character!? All the examples were using another character and so they would use the wildcard options, which didn't work with the character I'm trying to find/replace is an asterisk! Thank you!
- m_tarlerFeb 12, 2024Bronze Contributoralternatively if you have Excel 365:
=TEXTAFTER(A1,"*")
or in case you have an entry without an "*" then use:
=TEXTAFTER(A1,"*",,,,A1)
and if you might have more than 1 "*" and only want text after the last one then maybe:
=TAKE(TEXTSPLIT(A1,,"*"),-1)