Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to split the characters into two different columns

dunkindonut7777
8 - Asteroid

Hi I have a data here that I want to trim it according to specific character count (5) and the other characters will be separated on a different column:

 

FieldNew Field1New Field2
ApplesApples
BananaBanana

 

Could you help me with this one please.

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@dunkindonut7777 
I take the first 5 characters and the rest goes to the new field 2.

Capture5A.PNG

MarqueeCrew
20 - Arcturus
20 - Arcturus

Slightly different:

 

substring([field],5)

 

 

 it is faster. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
dunkindonut7777
8 - Asteroid

Hi Qiu, Thank you for this. The new field 1 for me is working but the new field 2 is not working on my end, there are other characters that contains spaces. Is there are othe option for me to cut it with chracters that have multiple words. Like I have a characters this long "to find out same meaning" and I want to separate it into two different columns because I want to trim it into 8 characters only and the other characters that left is put into another column.

For example:

 

FieldNew Field1New Field2
to find out same meaningto find out same meaning

 

Can you help me with this one pls?

Qiu
21 - Polaris
21 - Polaris

@dunkindonut7777 

Having space makes it a bit complicated. 😂

Capture9A.PNG

Labels
Top Solution Authors