Separate Words (First Name and Last Name ) from a string
You can use below VBA Macro for this task.
Sub SeparateStrings()
Dim ws As Worksheet
Dim StrName As String
Dim i As Integer
Dim Lrow As Long
Dim intComma As Integer
Set ws = ThisWorkbook.ActiveSheet
Lrow = ws.Range("A" & Rows.Count).End(xlUp).Row
For i = 4 To Lrow
StrName = ws.Cells(i, 1).Value
intComma = InStr(StrName, ",") ' this will find Comma location in string
With ws
.Cells(i, 2).Value = Mid(StrName, intComma + 2)
.Cells(i, 3).Value = Left(StrName, intComma - 1)
End With
Next i
End Sub
En esta página del sitio puede ver el video en línea How to separate words from a string de Duración hora minuto segunda en buena calidad , que subió el usuario Learn Excel VBA Macros 15 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 34 veces y le gustó 3 a los espectadores. Disfruta viendo!