Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try the following:
Dim Rng As Range Dim S As String Dim Pos As Integer For Each Rng In Range("A1:A10") S = Rng.Text Pos = InStr(1, S, ",") If Pos 0 Then Rng.Value = Mid(S, Pos + 2) & " " & Left(S, Pos - 1) End If Next Rng -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "tjtjjtjt" wrote in message ... Does anyone have a routine that can take a list of names entered as "Lastname, Firstname" and change those names to "Firstname Lastname" within the same cells? Thanks, -- tj |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Switch First and Last Names | Excel Worksheet Functions | |||
Switch names | Excel Worksheet Functions | |||
how do i switch the first and last name in a cell? | Excel Discussion (Misc queries) | |||
How do I switch the names in a column in Excel | Excel Worksheet Functions | |||
How do I switch names around in excel? | Excel Worksheet Functions |