Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Export specific numbers from Sheets

So i have this column of numbers and i wish to extract only the numbers before the "HE" text for example, this is what i need, and i don’t really know how to achieve this.

Maybe there is a way to use a formula or command to do this, i’ve been trying to use power tools add-on but to no avail i did not get it.

Maybe for clarification in each cell there are 2 lines, using alt+enter.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

REGEXEXTRACT() is suitable in this case.

=REGEXEXTRACT(A1,"(.+) HE")

Few good tips here about REGEXEXTRACT().

For array approach use below formula-

=ArrayFormula(IF(A1:A="","",REGEXEXTRACT(A1:A,"(.+) HE")))

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading