+ Reply to Thread
Results 1 to 2 of 2

Number Extraction from String

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    243

    Number Extraction from String

    In the attached example I would like to know if there is a formula that will extract the numbers in column "A" and list them in column "C". If possible, I'd like that formula in "C" to round the number to the nearest tenth. If not, I can just round the value from the formula in "C" in "D". The value in "D" is my end goal.

    So, if "W -101" is entered in cell "A1" then is there a formula that will produce the value "-100"?
    If "W 116" were then entered in cell "A1" instead, then could that same formula in "A1" also produce the value "120"?
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Number Extraction from String

    Using your posted workbook

    This formula, copied down, extracts the number after the first letter and rounds that number to the nearest multiple of 10
    C1: =ROUND(MID(A1,2,10)/10,0)*10
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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] String extraction
    By pytheus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-17-2014, 07:19 PM
  2. multiple criteria search and extraction from string!
    By oasafox in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-28-2014, 07:27 AM
  3. Replies: 6
    Last Post: 12-08-2013, 06:23 AM
  4. String Extraction
    By qcity in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-27-2011, 10:58 PM
  5. String Extraction...
    By iceberg27 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2005, 12:05 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