Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default change first-name-last to last-name-first in a single cell?

I have a worksheet with 1,000 names and addresses. I would like to re-order
the names (which are all in single full-name cells) from first-name last-name
order to last-name first-name order.
When I try to run a macro selecting relative cells, it attempts to paste
name from example cell into all other cells.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default change first-name-last to last-name-first in a single cell?

Do you mean this

Ron de Bruin (in cell B2) will be Bruin, Ron de

=IF(ISERR(FIND(" ",B2)),IF(LEN(B2)=0,"",B2),MID(B2,FIND("^^",SUBSTI TUTE(B2," ","^^",LEN(B2)-LEN(SUBSTITUTE(B2," ",""))))+1,1024)&",
"&LEFT(SUBSTITUTE(B2," ","^^",LEN(B2)-LEN(SUBSTITUTE(B2," ",""))),FIND("^^",SUBSTITUTE(B2," ","^^",LEN(B2)-LEN(SUBSTITUTE(B2,"
",""))))-1))

This is a option in the DataRefiner add-in
http://www.rondebruin.nl/datarefiner.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


" wrote in message
...
I have a worksheet with 1,000 names and addresses. I would like to re-order
the names (which are all in single full-name cells) from first-name last-name
order to last-name first-name order.
When I try to run a macro selecting relative cells, it attempts to paste
name from example cell into all other cells.



  #3   Report Post  
CLR
 
Posts: n/a
Default change first-name-last to last-name-first in a single cell?

I would just use Data TextToColumns SpaceDelimited, to separate the names
into two columns and then use CONCATINATION to put them back together the way
I wanted them..........if you choose to do it this way and need assistance,
post back and someone will help

Vaya con Dios,
Chuck, CABGx3



" wrote:

I have a worksheet with 1,000 names and addresses. I would like to re-order
the names (which are all in single full-name cells) from first-name last-name
order to last-name first-name order.
When I try to run a macro selecting relative cells, it attempts to paste
name from example cell into all other cells.

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
change event on specific cell rather than worksheet frendabrenda1 Excel Discussion (Misc queries) 10 September 21st 06 03:37 AM
How can a single cell be incremented? i.e. N=N+1 Remel Excel Discussion (Misc queries) 1 September 21st 05 08:19 PM
change info in 1 cell, prompts you for another redb Excel Discussion (Misc queries) 2 September 1st 05 11:56 AM
Help creating single cell Pop-up Bill Excel Worksheet Functions 2 June 23rd 05 05:21 PM
Change cell color dependin on date ... T. Denford Excel Worksheet Functions 4 April 13th 05 01:59 AM


All times are GMT +1. The time now is 03:42 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"