We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

take everything from left on cell before space

ag72
6 - Meteoroid

desiHello, 

 

I have lot of cells which contains data like below and i want to take only the data mentioned on the left before spaces, so what formula i can use?

 

Current Looking for
ABCS (ssss)ABCS
AB (jjjjjjjjjj)AB
ABSGDV (dddddddd)ABSGDV
3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @ag72 you can achieve your desired results by using regex. The regex I used in the example I mocked up will find everything up to a space followed by more text.

 

Regex_01112023.JPG

DOLEARY1
5 - Atom

Hi @ag72,

 

you could try a simple Regex string (.+)(?:\s):

 

 

Regex.PNG

 

 

Austin004lasrado
8 - Asteroid

Hello  @JosephSerpis 

I have different issue here. I want to take the data everything before last space.

 

Like

'DAXM5 Index' then i need a output as 'DAXM5'

'G F5 Comdty' then i need a output as 'G F5'

Will there be any formula to support this?

 

Labels
Top Solution Authors