+ Reply to Thread
Results 1 to 6 of 6

Extracting numerical value

  1. #1
    Registered User
    Join Date
    04-03-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    3

    Extracting numerical value

    I have cells with alpha-numerical data and I'd like to extract last numerical value in the cell to another cell, this is a sample of the data: an-2-73mm. I would like to get that 73 extracted to another cell, how do I do this? The data is pretty similar in every cell, middle number varies from 1 to 60 and last number 50 - 150.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Extracting numerical value

    Assuming that text is in A1, you could use this:

    =SUBSTITUTE(MID(A1,FIND("-",A1)+1,3),"m","")*1

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-03-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    3

    Re: Extracting numerical value

    Hey Pete

    Thanks for the formula, unfortunately it doesn't seem to work. If the data is "an-73mm" it work correctly, but if the data is "an-2-73mm" the result will be totally something else.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Extracting numerical value

    You can make this slight change (in red):

    =SUBSTITUTE(MID(A1,FIND("-",A1,4)+1,3),"m","")*1

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    04-03-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    3

    Re: Extracting numerical value

    Perfect, thank you very much!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Extracting numerical value

    You're welcome - thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Extraction of numerical digits from a mixed alpha numerical Excel cell.
    By JustWilliam in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2016, 01:44 PM
  2. Extracting specific numerical values from a table of data.
    By JT611 in forum Excel - New Users/Basics
    Replies: 27
    Last Post: 10-22-2015, 11:25 AM
  3. Replies: 5
    Last Post: 05-03-2013, 06:14 PM
  4. Extracting numerical data from brackets
    By gapink in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-10-2012, 11:15 AM
  5. Replies: 5
    Last Post: 12-19-2011, 07:42 PM
  6. Replies: 3
    Last Post: 06-03-2011, 09:49 PM
  7. [SOLVED] extracting numerical data
    By sroehl in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-17-2005, 12: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