+ Reply to Thread
Results 1 to 3 of 3

Extract numbers from string

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    Monterrey
    MS-Off Ver
    2010
    Posts
    42

    Extract numbers from string

    Good day,

    I have the following text string in one cell:

    Delivery .05 % or $ .00 per mile, or 7 % or $0 per pound

    I need to extract the numbers from the string. Is there a formula or a code I can use for this? I would like to have the numbers on separate columns if possible.

    Thanks!!!

  2. #2
    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: Extract numbers from string

    Give this one a try
    Enter formula in B1 and drag formula across to cell E1. Format cells B1 and D1 as percentage.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E
    1 Delivery .05 % or $ .00 per mile, or 7 % or $0 per pound 0.05% 0 7% 0
    Last edited by AlKey; 10-30-2018 at 10:53 AM.
    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

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract numbers from string

    Please try

    =--MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A1,"Delivery",REPT(" ",90)),"per mile, or",REPT(" ",90)),"or $",REPT(" ",90)),"per",REPT(" ",90)),90*COLUMNS($B1:B1),90)

+ 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] Extract Numbers from String
    By SanchoPanza1 in forum Excel General
    Replies: 8
    Last Post: 01-24-2017, 04:28 PM
  2. Extract numbers from the end of a string
    By Nighteg in forum Excel General
    Replies: 2
    Last Post: 03-17-2016, 12:04 PM
  3. [SOLVED] Extract numbers only from string
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2015, 06:43 AM
  4. Extract numbers from a string
    By keepers123 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-17-2013, 09:02 AM
  5. [SOLVED] Extract string into numbers (Solved by Benishiryo)
    By hoandt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-21-2012, 01:38 PM
  6. Extract numbers from a string
    By andyiain in forum Excel General
    Replies: 6
    Last Post: 09-06-2006, 07:10 AM
  7. [SOLVED] Extract numbers from a string ?
    By Jello in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-03-2005, 07:06 PM

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