Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default LastName, FirstName covert to FirstName LastName

I have a column with names, for example:
Last Name, First Name
ie: Smith, Joe

I'd like to be able convert it to:
Joe Smith

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default LastName, FirstName covert to FirstName LastName

Use dataText to columns

And after that use this in a new column
=B1 & " " &A1

And copy down

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Craig860" wrote in message ...
I have a column with names, for example:
Last Name, First Name
ie: Smith, Joe

I'd like to be able convert it to:
Joe Smith

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default LastName, FirstName covert to FirstName LastName

Try this, where example Henry, John is in cell A1

=RIGHT(A1,FIND(",",A1)-2)&" "&LEFT(A1,FIND(",",A1)-1)

This assumes the field always has the format LastName+comma+blank
+FirstName
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default LastName, FirstName covert to FirstName LastName

It worked for the first few names but as the length of names changed down the
list, it chopped part of the names.


"HKaplan" wrote:

Try this, where example Henry, John is in cell A1

=RIGHT(A1,FIND(",",A1)-2)&" "&LEFT(A1,FIND(",",A1)-1)

This assumes the field always has the format LastName+comma+blank
+FirstName

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default LastName, FirstName covert to FirstName LastName

My mistake. This should fix it:

=RIGHT(A1,LEN(A1)-FIND(",",A1)-1)&" "&LEFT(A1,FIND(",",A1)-1)
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
How to change lastname, firstname to firstname lastname in Excel? mert Excel Discussion (Misc queries) 1 January 9th 08 06:06 PM
Firstname Lastname Field, Split two cells Anthony Smith Excel Worksheet Functions 6 February 24th 07 03:37 PM
FirstName, LastName and vice versa Bob Excel Worksheet Functions 3 October 27th 06 06:54 PM
Splitting firstName from Surname Althea Excel Worksheet Functions 5 April 23rd 06 09:05 PM
Seperate Cell Information (lastname, firstname) JFALK Excel Discussion (Misc queries) 6 August 5th 05 09:41 PM


All times are GMT +1. The time now is 04:49 PM.

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

About Us

"It's about Microsoft Excel"