In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

How do I left trim leading zeros from alphanumeric string?

anthony123
8 - Asteroid

Hi I tried using Regex tool , but that removed all zeros in my string. Here are examples of fields that I would like all leading zeros trimmed. The difficult part is that there's not a whole lot of consistency across these alphanumeric strings:

 

000000075771
000EPTOS CS
00000004610
000000TESO
000000084440

 

I would like these results:

 

75771

EPTOS CS

4610

TESO

84440

 

Can anyone help with this? Thanks!

3 REPLIES 3
NicoleJohnson
ACE Emeritus
ACE Emeritus

Use the TrimLeft formula!

 

TrimLeft([Field1],"0") should do the trick...

 

Cheers,

NJ

anthony123
8 - Asteroid

Thanks! Not sure why it didn't work the first time.

adrilarotta
8 - Asteroid

Works perfectly, thank U

Labels
Top Solution Authors