How to extract number from text cell
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
SahadhKuruniyan
8 - Asteroid
‎07-28-2023
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have to extract code from a cell. The text is not even so can't use text to filter. Is there any way we can extract the number
Labels:
- Labels:
- Workflow
3 REPLIES 3
apathetichell
20 - Arcturus
‎07-28-2023
07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
regex_replace([field[,"^(.*)_(\d+-\d+)_(.*)$","$2") is what I would start with...
FinnCharlton
13 - Pulsar
‎07-28-2023
07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@SahadhKuruniyan You want the text inbetween the underscores? Add a Regex tool, set it to parse mode and use the regular expression:
.+?_(\d+-\d)_.+Hope this helps!
‎07-29-2023
10:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks alot. However I bit confused here, Can you tell me what would be formula if I have to extract code between ()..eg (12423-4) and between(space....eg (2323-5
