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

SPLIT COLUMNS

RodrigoOlmedo
6 - Meteoroid

I have this "simple" problem but I am stuck, can you help me?

 

I want to split a big raw from pos2 to pos5 and other from pos10 until pos13, how can I do that ?

 

STRINGCOL1, FROM 2 - 5COL2, FROM 10 - 13
ABCDEFGHIJKLMNBCDEFJKLM
   

 

Thank you for your help

3 REPLIES 3
echuong1
Alteryx Alumni (Retired)

You can use substring()

 

echuong1_0-1615939118921.png

 

Qiu
21 - Polaris
21 - Polaris

@RodrigoOlmedo 
Lets use Substring. Alterux counts the start from 0.

Capture1.PNG

 

AkimasaKajitani
17 - Castor
17 - Castor

Hi @RodrigoOlmedo 

 

You can use RegEx tool.

 

AkimasaKajitani_1-1615939439721.png

 

 

AkimasaKajitani_0-1615939430178.png

RegEx Expression:

.(.{5}).{3}(.{4})

'.' means one letter.

 

Output:

AkimasaKajitani_2-1615939459718.png

 

 

Labels