We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

remove "-" from SSN

sericson
8 - Asteroid

hello! We parse data from excel files that are inconsistent in their formats. I need to be able to remove the dash (-) from SSNs that come over, not all of the files have the dash in them so I need a tool that won't error out if it comes without the dash in it. Thank you!

3 REPLIES 3
ShankerV
17 - Castor

Hi @sericson 

 

Please use the Replace() function, it will not error even if the incoming column SSN does not contain any "-"

 

Syntax: Replace(String, Target, Replacement)

 

If you need to remove - ,Replace([Column name], '-', '')

If you need to replace - with space, then Replace([Column name], '-', ' ')

 

Many thanks

Shanker V

MilindG
12 - Quasar

@sericson Replace([SSN], '-','') should work

sericson
8 - Asteroid

thank you both!!

Labels
Top Solution Authors