Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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