Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Text to Columns Question

I have text in a column that is similar to this:
"Last Name <two spaces firstname<SpaceInitial" and possibly a spouse name
and initial on the end of that.
My goal is to get the last name in a separate column. I want to use the
text to columns features but I can't do fixed width because names are
different lengths and if I use the <space delimiter it separates everything
(last, first, initial, spouses name, Initial). What would work is if I could
set the delimiter to a double space but as far as I know excel only excepts
one character delimiters.

I'd like to be able to do this without complicated formulas but am really
looking for any solutions availible. Thanks for reading, Ben
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Text to Columns Question

You could do a text to columns with space delimiter, then in, say, column D,
type =B2&" "&c2

Which would put the first name and middle initial back together.

Then, just copy column D/paste special/values

Delete columns B and C.


"ben" wrote:

I have text in a column that is similar to this:
"Last Name <two spaces firstname<SpaceInitial" and possibly a spouse name
and initial on the end of that.
My goal is to get the last name in a separate column. I want to use the
text to columns features but I can't do fixed width because names are
different lengths and if I use the <space delimiter it separates everything
(last, first, initial, spouses name, Initial). What would work is if I could
set the delimiter to a double space but as far as I know excel only excepts
one character delimiters.

I'd like to be able to do this without complicated formulas but am really
looking for any solutions availible. Thanks for reading, Ben

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Text to Columns Question

Hi,

In an adjacent coulmn use
=LEFT(A1,FIND(" ",A1,1)-1)
to extract the surname
and if you want the rest in another column use
=RIGHT(A1,LEN(A1)-FIND(" ",A1,1)-1)

Mike

Mike

"ben" wrote:

I have text in a column that is similar to this:
"Last Name <two spaces firstname<SpaceInitial" and possibly a spouse name
and initial on the end of that.
My goal is to get the last name in a separate column. I want to use the
text to columns features but I can't do fixed width because names are
different lengths and if I use the <space delimiter it separates everything
(last, first, initial, spouses name, Initial). What would work is if I could
set the delimiter to a double space but as far as I know excel only excepts
one character delimiters.

I'd like to be able to do this without complicated formulas but am really
looking for any solutions availible. Thanks for reading, Ben

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Text to Columns Question

Hi, Thanks for the replies. I was looking to find my post and found another
solution but really appreciate everyone taking the time. I don't know why I
didn't stumble upon it yesterday.

I haven't tried this yet but it sounds reasonable.

Select the column, do a find and replace for (two spaces) replaced with (;)
and then do a text to columns with a (;) delimiter.

Again, thanks
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
Text to columns question Mr BT[_4_] Excel Worksheet Functions 8 October 17th 07 09:49 AM
help with sorting text in columns to match other columns rkat Excel Discussion (Misc queries) 1 August 11th 06 03:42 AM
Question about Data-Text to Columns command [email protected] Excel Discussion (Misc queries) 2 April 27th 06 09:10 PM
Text to Columns Question Dennis Excel Worksheet Functions 8 December 30th 05 12:52 PM
Linking text columns with text and data columns Edd Excel Worksheet Functions 0 March 17th 05 04:23 PM


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