Regex query
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi all,
I am trying to do regex in comments cells by taking out all the numbers in the different columns. I am trying to get only the 5 and 6 digits number from the comments column in separate col as attached. Please help.
Solved! Go to Solution.
- Labels:
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Will there only ever be a single 5-digit and 6-digit number? If so, use these in a formula tool:
5-digit: REGEX_Replace([Comment], ".*\b(\d{5})\b.*", "$1")
6-digit: REGEX_Replace([Comment], ".*\b(\d{6})\b.*", "$1")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for your quick response. Yes, there are some cases with only one 5/6 digit and some with multiple 5 and 6 digits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you so much for your kind assistance. I am able to use your approach to solve my issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @SP3000 ,
in addition to @Christina_H 's approach, I've attached my approach which should be dynamic for any number of 5 or 6 digit fields and will exclude all those greater or less than that:
Hope this helps,
M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you so much @mceleavey!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
