Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Splitting first and family name

Hi
I have along list of names, like WENDY ROCHESTER which I want to change to
ROCHESTER WINDY
Can a kind sole tell me how?
Thanks

--
Norton Professional 2004 says this email is clean...believe it


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Splitting first and family name

Are the names in a single column or in two

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default Splitting first and family name

Assuming that the format is always going to be:

FirstName LastName

'In this example, range is A2:A100
Sub SwitchIt()
Dim Cell As Range

For Each Cell In Range("A2:A100")
If Len(Cell.Value) < 0 Then
Cell.Value = Mid(Cell.Value, Application.Find
(" ", Cell.Value, 1) + 1, 100) & " " & Left(Cell.Value,
Application.Find(" ", Cell.Value) - 1)
End If
Next Cell
End Sub

-----Original Message-----
Hi
I have along list of names, like WENDY ROCHESTER which I

want to change to
ROCHESTER WINDY
Can a kind sole tell me how?
Thanks

--
Norton Professional 2004 says this email is

clean...believe it


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Splitting first and family name

Thanks very much...works great

"Tod" wrote in message
...
Assuming that the format is always going to be:

FirstName LastName

'In this example, range is A2:A100
Sub SwitchIt()
Dim Cell As Range

For Each Cell In Range("A2:A100")
If Len(Cell.Value) < 0 Then
Cell.Value = Mid(Cell.Value, Application.Find
(" ", Cell.Value, 1) + 1, 100) & " " & Left(Cell.Value,
Application.Find(" ", Cell.Value) - 1)
End If
Next Cell
End Sub

-----Original Message-----
Hi
I have along list of names, like WENDY ROCHESTER which I

want to change to
ROCHESTER WINDY
Can a kind sole tell me how?
Thanks

--
Norton Professional 2004 says this email is

clean...believe it


.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Splitting first and family name

Glad you go the answer you wanted, but if you are putting
the surname first why aren't you either placing a comma
afterward the surname (like in the US) or making sure that the surname
is capitalized, and the firstname is proper case as asked for
on some international registration forms.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"PCOR" wrote in message ogers.com...
Thanks very much...works great

"Tod" wrote in message
...
Assuming that the format is always going to be:

FirstName LastName

'In this example, range is A2:A100
Sub SwitchIt()
Dim Cell As Range

For Each Cell In Range("A2:A100")
If Len(Cell.Value) < 0 Then
Cell.Value = Mid(Cell.Value, Application.Find
(" ", Cell.Value, 1) + 1, 100) & " " & Left(Cell.Value,
Application.Find(" ", Cell.Value) - 1)
End If
Next Cell
End Sub

-----Original Message-----
Hi
I have along list of names, like WENDY ROCHESTER which I

want to change to
ROCHESTER WINDY
Can a kind sole tell me how?
Thanks

--
Norton Professional 2004 says this email is

clean...believe it


.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Family Medical Leave Calculation bkinman Excel Discussion (Misc queries) 1 October 30th 08 08:01 PM
family budget template for excel Jack Fisher New Users to Excel 2 December 22nd 07 10:16 PM
How do I set up a spreadsheet for a family tree? Lucky05 Excel Discussion (Misc queries) 2 October 18th 05 01:46 PM
Family tree TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 September 27th 05 07:33 PM
Family Chores List ??? any ideas chores lists Charts and Charting in Excel 1 March 18th 05 11:52 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"