+ Reply to Thread
Results 1 to 5 of 5

Splitting text and numbers from 1 column into separate columns

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    Connecticut
    MS-Off Ver
    2003
    Posts
    1

    Splitting text and numbers from 1 column into separate columns

    I have some data that is both text and numbers in the same cell. I would like to split the the data so that the text is in one column and the numbers are in another column.

    The numbers are all a fixed length (15 chars) so I know that I can use the following formula = RIGHT(A1,15)

    However I am not quite sure how to split the text as the length can vary as as well as the number of words in the string. For example A1 is 1 word with 7 characters but A2 is 2 words, 14 characters long inc space.

    A1 Goodwin 000710280740120
    A2 Gillette Ridge 000715058510122

    B1 Goodwin
    C1 000710280740120

    B2 Gillette Ridge
    C2 000715058510122


    Any help would be much appreciated.

    Anthony

  2. #2
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Splitting text and numbers from 1 column into separate columns

    Try =LEFT(A1,LEN(A1)-15)

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Splitting text and numbers from 1 column into separate columns

    Hi,

    This work fine only if u have 0 as starting number after a Space in u r word.

    Punnam
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Splitting text and numbers from 1 column into separate columns

    =LEFT(A2,MIN(INDEX(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},A2),9^9),0))-1)
    Try this in "B2" and
    =TRIM(RIGHT(A2,(LEN(A2)-LEN(B2)))) in "C2"
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  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,946

    Re: Splitting text and numbers from 1 column into separate columns

    B1=LEFT(A1,SEARCH(C1,A1,1)-2)
    C1=RIGHT(A1,15)

    copied down
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 07-09-2012, 01:44 PM
  2. Replies: 10
    Last Post: 03-08-2012, 12:31 PM
  3. Replies: 2
    Last Post: 06-28-2011, 10:29 AM
  4. Replies: 2
    Last Post: 11-20-2010, 07:59 PM
  5. splitting a long column of data into separate columns
    By michaelkwc in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 05-23-2008, 11:25 PM

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