Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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