I am using importhtml() to read data from a website and end up with a value like this in cell A1:

JorgeJ SolerSoler

How do I extract the name "Jorge Soler" from this data?

1 Answer 1


Use a formula like this:

=regexextract(A1, "[A-Z][a-z]+") & regexextract(A1, "( [A-Z][a-z]+)[^ ]*?$")

To learn the exact regular expression syntax used by Google Sheets, see RE2. These sites may also help:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.