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.
解決済み

Converting 16 digits to 4 digits with hyphen

knozawa
ボリード

Hello,

 

I would like to convert 000000028309094X to 4 digits with hyphen:

0000-0002-8309-094X. <--X is an alphabetic.

 

I was trying to do that with Regex tool.  But it didn't work.

 

Does anyone know how to solve this issue?

 

Thank you,

Kazumi

 

2件の返信2
adm510
ボリード

Try this with the formula tool:

 

Substring([Field1],0,4)
+ '-'
+ Substring([Field1],4,4)
+ '-'
+ Substring([Field1],8,4)
+ '-'
+ Substring([Field1],12,4)

 

 

I like to break long formulas into multiple lines for clarity

knozawa
ボリード

@adm510,

 

Worked!  Thank you!

 

Sincerely,

Kazumi

ラベル
トップのソリューション投稿者