ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Parsing Continuous String Value

jrkmorgan
7 - Meteor

I need to parse a ten digit string value to reformat. My end result should look like this:

Column A           Column B

1234567890        12-345-67890

0123456789        01-234-56789

 

All of column A will be 9 or 10 digits with the 9 digit values needing a preceding 0 if one is not present. Column B will always be 12 including the dashes.

In Excel the formula leveraged is Left($a1,2)&"-"&mid($a1,3,3)&"-"&mid($a1,6,5)

 

What's the most efficient way to do this in AD?

3 REPLIES 3
jrlindem
12 - Quasar

You can do this the same way you are doing it in excel with a couple slight changes:

jrlindem_0-1766163437509.png

 

Here's the formula string:  Left([Data],2) + "-" + Substring([Data],2,3) + "-" + Substring([Data],5,5)

 

jrkmorgan
7 - Meteor

Substring! Thank you! I need more coffee today.

jrlindem
12 - Quasar

Don't we all!  Glad I could help, have a good weekend, and happy Alteryx'ing!  -Jay

Labels
Top Solution Authors