1

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

1
JorgeJ SolerSoler
DH
1

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

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, privacy policy and cookie policy

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