Extract String Value before first space
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
JustynaMZ
7 - Meteor
‎04-05-2023
09:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have a column with values and would like to receive column with results as below
Which formula to use?
Values | Expected result |
1234AB jsijsposod oidjpsdps sdjo | 1234AB |
23AB dasw www | 23AB |
Labels:
- Labels:
- Workflow
2 REPLIES 2
17 - Castor
‎04-05-2023
09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @JustynaMZ
The string functions can help:
Left([Values],FindString([Values],' '))
The Left() function expects Left(string,length). The FindString allows us to find the first location (expressed as a number) of the identified string, so we can pass that through as the length.
20 - Arcturus
‎04-05-2023
09:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You stated your challenge so elegantly! You need the leftmost characters prior to the first occurrence of a space. Well here is the formula for your result:
Left([Values ],FindString([Values ], " "))
// Will take leftmost characters before first space
Cheers,
Mark
Alteryx ACE & Top Community Contributor
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
