Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

What am I missing? Remove everything after *

Topic Labels: Formulas
Solved
Jump to Solution
387 2
cancel
Showing results for 
Search instead for 
Did you mean: 

How would I remove everything after *? Using this works but also gets rid of the ones that only have 1 name.
LEFT(
{Name},
FIND(
" * ",
{Name}
)-1
)

Maslow *Loyal, Lovable Companion
Max
Bella
Hope’s Boy 2
Hope’s Boy 1
Chase *Snuggle Bug (pending)

1 Solution

Accepted Solutions
Eli_b
5 - Automation Enthusiast
5 - Automation Enthusiast

If anyone is interested I figured it out
IF(FIND(" “,{Name}&’’),TRIM(SUBSTITUTE(LEFT({Name}&’’,SEARCH(”",{Name}&’’)-1))),{Name})

See Solution in Thread

2 Replies 2

This keeps the single names but gives an error for the ones that I want to shorten
IF(FIND(" *",{Name}&’’),TRIM(SUBSTITUTE(LEFT({Name}&’’,SEARCH(" *",{Name}&’’))," *" *"")),{Name})

Eli_b
5 - Automation Enthusiast
5 - Automation Enthusiast

If anyone is interested I figured it out
IF(FIND(" “,{Name}&’’),TRIM(SUBSTITUTE(LEFT({Name}&’’,SEARCH(”",{Name}&’’)-1))),{Name})