+ Reply to Thread
Results 1 to 6 of 6

Formula to extract numbers from cell?

  1. #1
    Registered User
    Join Date
    02-17-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2007
    Posts
    45

    Formula to extract numbers from cell?

    Hi all!

    Hope you are doing well!

    Could someone help me with the following problem:

    1.I have a cell with let say a specific numbers that are not constant (e.g. 1,23,36,57 or 21,5,7) and they are separated with let say comma.
    2.I need a formula that will extract all the numbers each of them in different cell regardless how digits the number has.
    Last edited by ExcelBG; 04-18-2017 at 09:04 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    It changes constantly, but based in Ireland.
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    25,362

    Re: Formula to extract numbers from cell?

    Assuming that your data start in A1:

    =IFERROR(--TRIM(MID(SUBSTITUTE(","&$A1,",",REPT(" ",125)),125*COLUMNS($A:A),125)),"")

    copied across and down, as needed.
    Attached Files Attached Files
    Glenn



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

    Re: Formula to extract numbers from cell?

    Or maybe this
    Enter in B1 and copy across
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F G H
    1 1,23,36,57 or 21,5,7 1 23 36 57 21 5 7
    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

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    42,042

    Re: Formula to extract numbers from cell?

    I don't think that "or" appears in the cells - I think it's there separating two examples of what might.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  5. #5
    Registered User
    Join Date
    02-17-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Formula to extract numbers from cell?

    A lot of tnx for both of you!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    It changes constantly, but based in Ireland.
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    25,362

    Re: Formula to extract numbers from cell?

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Is there a formula that will extract the numbers to the left of the cell
    By benji1973 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-04-2015, 10:11 AM
  2. Extract numbers from a sum formula inside a cell
    By cycloneclau in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2014, 01:55 PM
  3. Replies: 2
    Last Post: 01-27-2013, 12:20 AM
  4. [SOLVED] Formula to Extract Numbers from Text Cell
    By MHamid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2012, 04:08 PM
  5. [SOLVED] extract number and use in formula from text & numbers in cell
    By ivory_kitten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2006, 12:45 AM
  6. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  7. extract numbers from cell containing text & numbers
    By transferxxx@gmail.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 AM

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