+ Reply to Thread
Results 1 to 3 of 3

Split numbers/text into columns issue

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Hartford, CT
    MS-Off Ver
    Excel 2007
    Posts
    2

    Split numbers/text into columns issue

    Having an issue splitting a numbered list into two columns - one with just the numbers, and one with the text. The list looks like this:

    1. Header
    1.1. Content.
    1.1.1. Additional content. Multiple sentences.
    1.1.2. Additional content. Multiple sentences.
    1.2. Additional content.
    ...

    I want to have the numbers in one column and all text in the other. If I use "Text to Columns" and select "Delimited", I don't have any options that give me what I want (if I use periods as delimiters, the numbers are separated and each sentence has it's own column; if I use spaces as delimiters, the numbers are together but each word has it's own column). I can come close to what I want by selecting "Fixed Width", but some of the numbers are long enough that if I set a width to the right of the longest number, it cuts off the start of words on other lines.

    I'm thinking there's a formula that could do this, but I'm not savvy enough with Excel.

    Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Split numbers/text into columns issue

    Assuming your text starts in A1:

    Numbers (in B1): =LEFT(A1,FIND(" ",A1)-1)
    Text (in C1): =MID(A1,FIND(" ",A1)+1,256)

    Copy down

    Is this what you are looking for?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    Hartford, CT
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Split numbers/text into columns issue

    Perfect! Thanks Søren!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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