Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9842

Google sheets: Regexextract next or previous whole word or number from cell in sheets

$
0
0

How do I extract the next word or number (including comma and delimiter) to a search string from a cell in sheets?

And how the previous?

={$AV$14;ArrayFormula(IF(ISBLANK($AT$2:$AT),,iferror(value(REGEXEXTRACT($AT$2:$AT,"([0-9]*\.[0-9]+[0-9]+)\s+meters|M2")))))}

works mostly fine for finding the "previous" number to a search term, however, I am not sure, if this all elegant. I am pretty new to regex.

Any help is greatly appreciated.


Viewing all articles
Browse latest Browse all 9842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>