How to Extract Separate First Name, Middle Name, and Last Name on Google Sheets

How to Extract Separate First Name, Middle Name, and Last Name on Google Sheets

Channel:
Subscribers:
123,000
Published on ● Video Link: https://www.youtube.com/watch?v=Lpc0f9yDr_8



Duration: 6:26
4,955 views
30


here the solution to extract names into separate column of first, middle, and last name..

here the formula:

at B2 Cell [First name]:
=trim(if(C2="",REGEXREPLACE(A2,D2&"|,",""),REGEXREPLACE(A2,C2&"|"&D2&"|,","")))

at C2 Cell [Middle name]:
=trim(if(iserror(REGEXEXTRACT(A2," (.*) ")),"",REGEXEXTRACT(A2," (.*) ")))

at D2 Cell [Last Name]:
=trim(substitute(IF(COUNTIF(A2,"*,*")=1,REGEXEXTRACT(A2,"(.*), "),REGEXEXTRACT(A2," .*$")),C2,""))

#googlesheet #extractspearate #firstname #middlename #lastname







Tags:
google sheets
first name
middle name
last name
separate names