Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Separating Grouped Numbers into Individual Numbers

tomtingley
8 - Asteroid

Hi,

 

I'm trying to change the numbers from this:

1014161929LUCKYSTARS0210

 

To this:

10 14 16 19 29 02 10

 

I've used the Lottery numbers as an example in the attached.

 

Hope this makes sense!

 

 

3 REPLIES 3
DataNath
17 - Castor

Hey @tomtingley, here's one way I'd go about this. The inner function just replaces any non-number (\D) with nothing. The outer function then replaces each 2 characters (that aren't at the end of the string) with those 2 characters + a space:

 

DataNath_0-1681567879178.png

tomtingley
8 - Asteroid

@DataNath Thanks so much!

 

Is there any possible way to segregate the numbers into seperate cells.

 

So rather than 10 14 16 19 29 02 10 in one cell, I'd want 10 in one cell, then 14 in the next etc?

gautiergodard
13 - Pulsar

Hey @tomtingley You could add a text to columns tool after the solution provided by @DataNath and use the \s delimiter to separate the string into different columns.

Labels