+ Reply to Thread
Results 1 to 8 of 8

Split numbers and text from a single Cell

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    4

    Split numbers and text from a single Cell

    Hi,

    I need help with splitting some information from a single text.

    Sample data is as follows:

    1570.0 LIST S B1570.0 SELL SG
    1965.0 LIST S B1965.0 SELL SA
    1788.8 LIST CS1788.8 SELL DO
    1715.0 LIST S B857.5 SELL S B857.5 SELL S B
    1480.0 LIST S B1480.0 SELL SS
    2060.0 LIST S B2060.0 SELL DO
    1312.19 LIST DO1312.19 SELL DO

    I need to split them so that I have the information in different columns as shown below:

    1570.0 SB 1570.0 SG
    1965.0 SB 1965.0 SA
    1788.8 CS 1788.8 DO
    1715.0 SB 857.5 SB 857.5 SB
    etc...

    Would really appreciate if anyone could help!!

    Thanks,
    Liz

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Split numbers and text from a single Cell

    have you tried using text-to-columns?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Split numbers and text from a single Cell

    Not sure about all your data and it's structure, so check whether this helps!

    A1 cell
    1570.0 LIST S B1570.0 SELL SG

    B1 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    12-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Split numbers and text from a single Cell

    Hi,

    text-to-columns won't work as they are not properly spaced out.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Split numbers and text from a single Cell

    1570.0 LIST S B1570.0 SELL SG
    1965.0 LIST S B1965.0 SELL SA
    1788.8 LIST CS1788.8 SELL DO
    1715.0 LIST S B857.5 SELL S B857.5 SELL S B
    1480.0 LIST S B1480.0 SELL SS
    2060.0 LIST S B2060.0 SELL DO
    1312.19 LIST DO1312.19 SELL DO

    I need to split them so that I have the information in different columns as shown below:

    1570.0 SB 1570.0 SG
    1965.0 SB 1965.0 SA
    1788.8 CS 1788.8 DO
    1715.0 SB 857.5 SB 857.5 SB
    i used TTC - delimited/space and all but 2 came out fine.

    i would suggest you upload a sample workbook, rather than trying to copy/paste your data here

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  6. #6
    Registered User
    Join Date
    12-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Split numbers and text from a single Cell

    Book1.xlsHi Sixthsense,

    Thank you for the suggestion.

    I have used that previously along with formulas such as:
    =LOOKUP(9.999999999E+307,--("0"&MID(G2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},G2&"0 123456789")),ROW($1:$20))))
    etc.

    I have attached a copy of the excel file. "What I need" tab specifies the format that I need them to be in, and "What I have done" shows multiple formulas that I have done to derive to the format I need (the columns in yellow).

    But what i've done is very tedious and not accurate.

    If anyone could assist me, or could advise if there is any easier or better way to split the amount from the alphabets, that would be great.

  7. #7
    Registered User
    Join Date
    12-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Split numbers and text from a single Cell

    Thanks FDibbins.

    I have just attached the fileBook1.xls. Really appreciate your help!

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Split numbers and text from a single Cell

    Your data, as I'm sure you're aware, is somewhat erratic.

    I'm not sure that this is any better than what you already have, but it might give you some ideas to work with.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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