Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Data Cleaning

ahsansalik
8 - Asteroid

Hi I need to clean up some data i have an input column which has data i want to split it up into two column and then get final output column.  The Split input 1 and split input 2 are just for understanding purpose i need to get the final result as shown in column output.


InputSplit Input 1Split Input 2Output
HETH HA11 -HETHHA11 -HA11
MARO MU32:BMAROMU32:BMU32:B
TGRA TB01:BTGRATB01:BTB01:B
BURL BS02 -BURLBS02 -BS02
CAMP CM47:DCAMPCM47:DCM47:D
SPLE SG19 -SPLESG19 -SG19 
EDGE EC05 LEDGEEC05 LEC05
6 REPLIES 6
Emil_Kos
17 - Castor
17 - Castor

Hi @ahsansalik,

 

I have prepared a workflow for you:

 

Emil_Kos_0-1622472228979.png

 


The output:

Emil_Kos_1-1622472236613.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @ahsansalik 

 

Here is how you can do it.

atcodedog05_0-1622472285277.png

1. Split to column using text to columns delimiter space

2. Trim space and hyphen 

 

Hope this helps 🙂

 

ahsansalik
8 - Asteroid

Thanks for your kind response in row 7 if you see the L is still in the final output which i want to get rid off

ahsansalik
8 - Asteroid

Thanks for your kind response in row 7 if you see the L is still in the final output which i want to get rid off aswell as i dont need - and any extra character like L

atcodedog05
22 - Nova
22 - Nova

Hi @ahsansalik 

 

Fixed it. Made the below change.

atcodedog05_0-1622472703072.png

 

ahsansalik
8 - Asteroid

I can however using your workflow add another formula to remove L but if i get anything else then i would have to add another formula function so i need to make it geneic

Labels
Top Solution Authors