Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tommy Boy
 
Posts: n/a
Default How to separating first and last name (in a single cell...

I have a worksheet with a persons name in a single cell. I need to sort
these and I forget how to separate them to another set of cells to get the
last name. Since some names have 2, 3, 4 or more separate item (ex: Thomas
G. Roberts, CPA) I can figure it out.

Any help appreciated?
  #2   Report Post  
Gordon
 
Posts: n/a
Default

Tommy Boy wrote:
I have a worksheet with a persons name in a single cell. I need to
sort these and I forget how to separate them to another set of cells
to get the last name. Since some names have 2, 3, 4 or more separate
item (ex: Thomas G. Roberts, CPA) I can figure it out.

Any help appreciated?


Text to Columns


  #3   Report Post  
Tommy Boy
 
Posts: n/a
Default

Gordon

Thank you but I tried that and you get 1,2,3,4 or 5 columns this way and
they are not in order. Last name could be in column 2, 3,4 etc. Doesn't
help me in my sort.

Any other ideas?/

Thanks

"Gordon" wrote:

Tommy Boy wrote:
I have a worksheet with a persons name in a single cell. I need to
sort these and I forget how to separate them to another set of cells
to get the last name. Since some names have 2, 3, 4 or more separate
item (ex: Thomas G. Roberts, CPA) I can figure it out.

Any help appreciated?


Text to Columns



  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

When I do this, I use Data|Text to columns.

But then I go back and put in a formula in a helper cell.

=counta(A1:E1)

Then I sort by that column (names that look like 2 parts are grouped together
after the sort).

Then it's a manual effort (just dragging the cells to their correct columns).

But since I grouped them nicely, (if I'm lucky) I can grab a few rows of data at
one time and move them to the right/left.



Tommy Boy wrote:

Gordon

Thank you but I tried that and you get 1,2,3,4 or 5 columns this way and
they are not in order. Last name could be in column 2, 3,4 etc. Doesn't
help me in my sort.

Any other ideas?/

Thanks

"Gordon" wrote:

Tommy Boy wrote:
I have a worksheet with a persons name in a single cell. I need to
sort these and I forget how to separate them to another set of cells
to get the last name. Since some names have 2, 3, 4 or more separate
item (ex: Thomas G. Roberts, CPA) I can figure it out.

Any help appreciated?


Text to Columns




--

Dave Peterson
  #5   Report Post  
Tommy Boy
 
Posts: n/a
Default

Dave

Thank you very much. It worked as you suggested.

TOMMY BOY

"Dave Peterson" wrote:

When I do this, I use Data|Text to columns.

But then I go back and put in a formula in a helper cell.

=counta(A1:E1)

Then I sort by that column (names that look like 2 parts are grouped together
after the sort).

Then it's a manual effort (just dragging the cells to their correct columns).

But since I grouped them nicely, (if I'm lucky) I can grab a few rows of data at
one time and move them to the right/left.



Tommy Boy wrote:

Gordon

Thank you but I tried that and you get 1,2,3,4 or 5 columns this way and
they are not in order. Last name could be in column 2, 3,4 etc. Doesn't
help me in my sort.

Any other ideas?/

Thanks

"Gordon" wrote:

Tommy Boy wrote:
I have a worksheet with a persons name in a single cell. I need to
sort these and I forget how to separate them to another set of cells
to get the last name. Since some names have 2, 3, 4 or more separate
item (ex: Thomas G. Roberts, CPA) I can figure it out.

Any help appreciated?

Text to Columns




--

Dave Peterson

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



All times are GMT +1. The time now is 04:31 AM.

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"