This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Upgrading Server to version 22.1? We’ve enabled the faster AMP engine by default. Read about how these system settings changes might affect you.
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.
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")
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.
Thank you so much for your kind assistance. I am able to use your approach to solve my issue.
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.
Thank you so much @mceleavey!