Skip to content

Instantly share code, notes, and snippets.

@entrptaher
Created August 16, 2019 11:24
Show Gist options
  • Save entrptaher/d345a8f03f95406da2fd17b3a23e7d48 to your computer and use it in GitHub Desktop.
Save entrptaher/d345a8f03f95406da2fd17b3a23e7d48 to your computer and use it in GitHub Desktop.

If the full name is in A1 column, then copy the following and paste on another column. Select all rows and paste to those cells as well.

=IF(ISERROR(split(substitute(REGEXREPLACE(A1, "[^a-z. A-Z]+", "")," ","~",1),"~")),,split(substitute(REGEXREPLACE(A1, "[^a-z. A-Z]+", "")," ","~",1),"~"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment