Skip to main content
Solved

What am I missing? Remove everything after *

  • August 29, 2020
  • 2 replies
  • 17 views

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)

Best answer by Eli_b

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

2 replies

  • Author
  • New Participant
  • August 29, 2020

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})


  • Author
  • New Participant
  • Answer
  • August 29, 2020

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