+ Reply to Thread
Results 1 to 3 of 3

Need an advanced text-to-columns trick - break after 1st space only

  1. #1
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    147

    Need an advanced text-to-columns trick - break after 1st space only

    I have rows of text that I want to break after the first space in the text and only the first space. I don't see how to do this outside of a special macro and I can't write VBA... ideas?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    are there other delimiters or are you merely trying to split the text before and after first space ?

    you could use formulae and split into 2 new cells...

    A1: Mary had a little lamb
    B1: =LEFT(A1,FIND(" ",A1)-1)
    C1: =TRIM(MID(A1,FIND(" ",A1)+1,1000))

    Is that viable approach for you ?

    (Obviously once complete copy / paste special values the results over the formulae and then if necessary delete A or copy B:C to A:B and delete C)

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    An alternative

    =MID(A1,FIND(" ",A1,1)+1,255)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1