I have the following fields with emails separated by a comma. Some (not all) of them have a comma at the end. How do I get rid of that using formula tool?
john@test.com,kate@test.com,jill@test.com, |
kelly@test.com, |
mike@test.com |
Solved! Go to Solution.
You could use this formula:
if EndsWith([YourField], ",") then trimright([YourField],",")
else [YourField]
endif
Hello @richleeb2 , you may use the formula Replace([Field1],","," ")
But I think is better use the text-to-columns, splitting to rows.
Gabriel
No need for the if statements - TrimRight() will just ignore records without a trailing comma so you can just use:
TrimRight([Input],',')
(Obviously replace [Input] with your own field name).
Thank you this was simple and worked!
Here's another option that uses regex
REGEX_Replace([Field1], '(.*),$', '$1')