Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

String Modification

soncoku
9 - Comet

*Greetings everyone.
I have a column of numbers that were imported from google sheet.

Technically each cell should contain 4 numbers. Since it was stored in a column where the format of the cells was number, all cells that where the first number was 0 dropped that number.

For example if it was 0395 it turned out 395 

Or if it was 0042 it became 42

the ones that had three zeros at the beginning turned from 0009 to 9

 

Any ideas on how I can add in the beginning until the length of the field is 4?

 

4 REPLIES 4
Emil_Kos
17 - Castor
17 - Castor

Hi @soncoku,

 

I think it will work 🙂 

ImadZidan
12 - Quasar

Hello @soncoku ,

 

another idea besides @Emil_Kos  clever solution.

soncoku
9 - Comet

@Emil_Kos 
Very creative, I thought of this right after I posted the question :P. Thanks a lot 🙂

soncoku
9 - Comet

@ImadZidan 
Thank you. This is what I was looking for, short and effective.

Labels
Top Solution Authors