Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

TRIM string , begins with " OR ends with " OR ends with ,

wonka1234
10 - Fireball

Hi all, do you know how to make a formula that trims a string in this way: TRIM string , begins with " OR ends with " OR ends with ,

 

ie

 

"JOHN SMITH to JOHN SMITH

JOHN SMITH" to JOHN SMITH

JOHN SMITH, to JOHN SMITH

 

I want to eliminate punctuation.

 

Thanks

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @wonka1234 

 

You can use data cleanse tool and remove puctuations

 

Workflow:

atcodedog05_0-1643916702923.png

 

Hope this helps : )

 

binu_acs
21 - Polaris

@wonka1234  another option to use the Trim function

binuacs_0-1643916439389.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @binu_acs 

 

That makes sense the string value is not 

 

"JOHN SMITH to JOHN SMITH

JOHN SMITH" to JOHN SMITH

JOHN SMITH, to JOHN SMITH

 

by itself 😅 its a sentence.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @wonka1234 

Cheers and have a nice day!

Labels
Top Solution Authors