Start Free Trial

Alteryx Designer Desktop Discussions

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

Separate Letters from Specific Rows

calvincarr29
8 - Asteroid

How do make this:

Screenshot 2024-09-03 080007.png

Look like this?

Screenshot 2024-09-03 080656.png

2 REPLIES 2
cjaneczko
13 - Pulsar

The following should work for your use case.

 

image.png

image.png

 

 

If REGEX_Match([Column1], '([A-Za-z])(\s)(.+)') then Regex_Replace([Column1], '([A-Za-z])(\s)(.+)','$1') else null() endif

 

 

 

If REGEX_Match([Column1], '([A-Za-z])(\s)(.+)') then Regex_Replace([Column1], '([A-Za-z])(\s)(.+)','$3') else [Column1] endif

 

 

Medha31
8 - Asteroid

Use a RegEx tool and use the following expression: (.)\s.*

Set the output method to parse and set column to parse as your column 1. Attached is a sample workflow for reference. 

Below is a screenshot of the same.

 

This regular expression finds your single character followed by a space if it exists, if it cannot find that pattern, it returns null. 

 
 

 

Labels
Top Solution Authors