Related:
- Help editing a macro for excel
- Minecraft java edition free download for pc - Download - Sandbox
- Minecraft bedrock edition free download for pc - Download - Sandbox
- Excel apk for pc - Download - Spreadsheets
- Spell number in excel without macro - Guide
- Kernel for excel - Download - Backup and recovery
1 response
Public Sub RearrangeName2()
Dim i As Long, y As Long, LR As Long
Dim oldname As String, newname As String, str1 As String, str2nchar2 As String
Let LR = Cells(Rows.Count, "B").End(xlUp).Row
For i = 1 To LR
Let oldname = Cells(i, "B").Value
Let y = InStrRev(Cells(i, "B"), " ")
Let str1 = Left(Cells(i, "B"), InStrRev(Cells(i, "B"), " ") - 1)
Let str2 = Right(oldname, Len(oldname) - y)
Let newname = str2 + " " + str1
Cells(i, "B") = newname
Next i
End Sub
Dim i As Long, y As Long, LR As Long
Dim oldname As String, newname As String, str1 As String, str2nchar2 As String
Let LR = Cells(Rows.Count, "B").End(xlUp).Row
For i = 1 To LR
Let oldname = Cells(i, "B").Value
Let y = InStrRev(Cells(i, "B"), " ")
Let str1 = Left(Cells(i, "B"), InStrRev(Cells(i, "B"), " ") - 1)
Let str2 = Right(oldname, Len(oldname) - y)
Let newname = str2 + " " + str1
Cells(i, "B") = newname
Next i
End Sub
Oct 19, 2010 at 12:27 PM
Oct 19, 2010 at 12:33 PM
Oct 20, 2010 at 11:57 AM
=RIGHT(B2,LEN(B2)-SEARCH(" ",B2,1))
in D: First Name
=LEFT(B2,SEARCH(" ",B2,1))