+ Reply to Thread
Results 1 to 8 of 8

How to split only the numbers into separate cells?

  1. #1
    Registered User
    Join Date
    06-21-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    29

    How to split only the numbers into separate cells?

    I have table with cells of that kind:

    Work Phone:+2133388480
    Work Phone:+2133388481
    Work Phone:+2133388482
    Work Fax:+2133388483


    Mobile:+3752961155033
    Work Phone:+3751743449381
    Work Phone:34466031
    Work Fax:+3751573446022
    Work Fax:29965758

    Work Phone:+86 760 88789266

    Every "brick" is taking place in one cell. as you can see there is different number of entries in each cell, as well as different types.
    I wish to have 3 columns eventually: Work phone, Fax, Mobile.
    Can you help me with matching function?
    Thanks to all,
    Riley

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: How to split only the numbers into separate cells?

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    10-29-2014
    Location
    Portland, OR
    MS-Off Ver
    MS Office 2013
    Posts
    54

    Re: How to split only the numbers into separate cells?

    The work-around I would use is a Find/Replace function...
    I'd select the column with the data>Find/Replace (CTRL+F)>Click on the "Replace" tab>Enter "*:" (this will delete all information before the number)>copy the column that now has JUST phone numbers>create a new workbook>paste the numbers to the D column>Go back to original workbook>UNDO the Find/Replace>CTRL+F again and type in ":*" (that will delete all numbers)>copy the column that now has type of number>go to the workbook I had you create and paste in column A>from there you can do a filter>sort by type of number>copy/paste into new column.
    That will give you a final worksheet that has column A: Work Phone:, Column B: Mobile:, Column C: Work Fax:, Column D: numbers.

    Hope that helps a little!

    Kind Regards,

    Thomas Bailey

  4. #4
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: How to split only the numbers into separate cells?

    this could work for you


    HOW TO ONLY READ NUMBERS IN CELL CONTAINING LETTERS & NUMBERS =LEFT(A1,FIND(" ",A1)-1)

  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: How to split only the numbers into separate cells?

    semajjames, all that does is pull in all characters (both text and numbers) up to the 1st space?

    Try this, copied down. It will get most of what you want
    =LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$10000))))
    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

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to split only the numbers into separate cells?

    For this type of extraction it is more practical to have return numbers as text rather than real numbers.

    This formula will extract numbers with "+" sign

    =TRIM(RIGHT(SUBSTITUTE(A2,":",REPT(" ",255)),255))

    and this one without "+"

    =SUBSTITUTE(TRIM(RIGHT(SUBSTITUTE(A2,":",REPT(" ",255)),255)),"+","")

    Row\Col
    A
    B
    C
    1
    Phone/Fax Number With "+" sign Without "+", sign
    2
    Work Phone:+2133388480
    +2133388480
    2133388480
    3
    Work Phone:+2133388481
    +2133388481
    2133388481
    4
    Work Phone:+2133388482
    +2133388482
    2133388482
    5
    Work Fax:+2133388483
    +2133388483
    2133388483
    6
    Mobile:+3752961155033
    +3752961155033
    3752961155033
    7
    Work Phone:+3751743449381
    +3751743449381
    3751743449381
    8
    Work Phone:34466031
    34466031
    34466031
    9
    Work Fax:+3751573446022
    +3751573446022
    3751573446022
    10
    Work Fax:29965758
    29965758
    29965758
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    06-21-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    29

    Post Re: How to split only the numbers into separate cells?

    Hi alkey,
    It seems like you're the closest to solution. I might have not been totally clear. All the first 4 rows are in one cell (work phone--->Work Fax). Same for next 5 (Mobile---->Work Fax).
    this data was derived from busuiness cards, hence not repeating in the very same patern.
    what I could use is function of that kind:
    If there is "Work Phone" - a function that would take it out (I don't mind using the first "Work Phone" entry
    If there is "Mobile" - same
    If there is "work Fax" - same

    I believe it is easier to use 3 different functions for 3 different columns.
    By the way your function output was always the last number in a cell.

    Thanks a lot for your attempts,
    Riley

    Business Cards.xlsx
    Last edited by Droriley; 11-19-2014 at 03:09 AM.

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

    Re: How to split only the numbers into separate cells?

    see attached file
    Attached Files Attached Files
    Samba

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

+ 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. [SOLVED] Need to split text into separate cells at a given length
    By Jay@biketorqueracing in forum Excel General
    Replies: 10
    Last Post: 07-07-2013, 10:19 AM
  2. [SOLVED] How to take split a two digit cell into two separate cells.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2013, 08:55 PM
  3. [SOLVED] Unable to split text and numbers into Separate Cells that have no space
    By BDavis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-21-2013, 04:39 PM
  4. [SOLVED] Split date in cell into 2 separate cells
    By Jambruins in forum Excel General
    Replies: 1
    Last Post: 08-09-2006, 01:19 PM
  5. Split data from one cell to two separate cells
    By Michele in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2005, 05:05 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