In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Removing comma between two words

Raj008
8 - Asteroid

Hi All,

 

In a field "5000,999,BUS Stop,,BUS, Stop%", I need to remove comma after the BUS

 

How to go about?

 

Thanks in advance...

 

Raj....

4 REPLIES 4
Jean-Balteryx
16 - Nebula
16 - Nebula

Do all the rows have the same structure ? Is this comma always the fifth ?

Raj008
8 - Asteroid

Yes....

Jonny
11 - Bolide

Hi @Raj008 ,

 

there are many ways to go about this, depending on if there is a pattern on the data etc.

 

a simple approach would be using a formula tool to replace 'BUS,' with 'BUS'

 

syntax: 

Replace([  Field1   ], 'BUS,', 'BUS')

Jonny_0-1626882621489.png

 

hope it helps!

 

cheers!

 

Jonny

 

Jean-Balteryx
16 - Nebula
16 - Nebula

@Raj008 , you can use the following formula in a Formula tool :

 

 

REGEX_Replace([Field1], "(.*),(.*)", "$1$2")

 

It replaces the last comma whatever is before and after.

 

Labels
Top Solution Authors