In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Parse 5th word in a string

wonka1234
10 - Fireball

Hi,

 

How do I parse out the 5th word in a string?

 

ie.

 

This is a sentence in my string.

to

 

This is a sentence in

 

thanks.

7 REPLIES 7
binu_acs
21 - Polaris

@wonka1234 One way of doing this with the GetWord() and SubString Functions

binuacs_0-1674251512768.png

 

binuacs_0-1674251748428.png

binuacs_1-1674251776237.png

 

 

 

BS_THE_ANALYST
15 - Aurora
15 - Aurora

@wonka1234 one way:

 

before:

BS_THE_ANALYST_0-1674251514376.png

 

after:

BS_THE_ANALYST_1-1674251534781.png

 

 

All the best,
BS

LinkedIN

Bulien
wonka1234
10 - Fireball

@BS_THE_ANALYST @binu_acs 

 

I should clarify, make each string and parse it to only the first 5 words. Not parse it out. 

 

@binu_acs  your method is making anything less then 5 words become blank.

BS_THE_ANALYST
15 - Aurora
15 - Aurora

I think I get what you mean? See picture:

BS_THE_ANALYST_0-1674252092484.png

 

All the best,
BS

LinkedIN

Bulien
binu_acs
21 - Polaris

@wonka1234 my understanding was you need the output as 'This is a sentence in' from the input 'This is a sentence in my string'?

binu_acs
21 - Polaris

@wonka1234 Updated the workflow

 

binuacs_0-1674252279051.png

 

RobertOdera
13 - Pulsar

Hi, @wonka1234 

 

Please take a look at the below.

Please also mark it as an acceptable solution if it works for you.

 

Parse_ForWonka1234.PNG

Labels
Top Solution Authors