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

Change format of Cell/Mobile number

StephenT
8 - Asteroid

Hi all

 

I have an Alteryx Designer WorkFlow and one of the fields i use in a Cell/Mobile number which is currently in the format of +61 (4) 1212 3123. I need to modify it to the format of 0412123123. Formatting of the cell/mobile numbers will never change.

 

I have been trying to work out how to change the format for the last few days (time permitting) but haven't been able to work it out.

Would anyone have a suggestions as to changing this format ?

3 REPLIES 3
Luke_C
17 - Castor

I'm sure there's a number of approaches for this with parsing/regex, but the below formula would work for your example. Are there ever instances where there would be two digits in the parentheses? 

 

"0" +substring(replacechar([Field1],"() ",""),3,9)

 

Luke_C_0-1615942947795.png

 

Tyro_abc
11 - Bolide

Just trying a different version of the formula

 

Replace(replace(Replace([Phone],'+61',''),'(4)','04'),' ','')

Tyro_abc_0-1615943930129.png

 

Regards

Arundhuti

StephenT
8 - Asteroid

Thanks @Tyro_abc and @Luke_C 

Those 2 solutions work equally well, so I will mark them both as accepted as solution.

Labels