Forum Discussion

Teresa Smagacz's avatar
Teresa Smagacz
Copper Contributor
Feb 12, 2024
Solved

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 since it wasn't accepted in this post)

FSP*VILLAGE LINKS

GLF*MILLCREEKGOLFCLUB

MP-*USGA Golf Handicap

PAYPAL *STEAM GAMES

SQ *X-GOLF

3 Replies

    • Teresa Smagacz's avatar
      Teresa Smagacz
      Copper Contributor
      Do 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_tarler's avatar
      m_tarler
      Bronze Contributor
      alternatively 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)

Resources