+ Reply to Thread
Results 1 to 5 of 5

Extract last numbers in a column of varying lengths/formats

  1. #1
    Registered User
    Join Date
    10-25-2017
    Location
    United States
    MS-Off Ver
    2019
    Posts
    77

    Extract last numbers in a column of varying lengths/formats

    I have list of product names that I would like to extract the last numbers from. I have macro currently that does it for me, but the problem is the user has to enable macros for it to work. I am looking for a formula to take the place of this macro:
    Please Login or Register  to view this content.
    Attached is the workbook, thank you!
    Attached Files Attached Files
    Last edited by AliGW; 10-25-2018 at 12:18 PM.

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

    Re: Extract last numbers in a column of varying lengths/formats

    Please try at C2

    =AGGREGATE(14,6,--MID(A2,MATCH(1,INDEX(-MID(A2,ROW(INDIRECT("1:50")),1),))-{0,1,2},{1,2,3}),1)

    Borrow from blue part from AlKey
    Last edited by Bo_Ry; 10-25-2018 at 02:22 PM.

  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,903

    Re: Extract last numbers in a column of varying lengths/formats

    Try this:
    Enter in B2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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
    Registered User
    Join Date
    10-25-2017
    Location
    United States
    MS-Off Ver
    2019
    Posts
    77

    Re: Extract last numbers in a column of varying lengths/formats

    Thank you! Both Formulas achieve the result I am looking for! Sending Rep!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,324

    Re: Extract last numbers in a column of varying lengths/formats

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


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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 last numbers in a column of varying lengths/formats
    By Stuepef in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2018, 11:40 AM
  2. [SOLVED] Extract all numbers from cells with varying lengths
    By Stuepef in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2018, 02:47 AM
  3. [SOLVED] Need a macro to sum or subtotal ranges of varying lengths in a column
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-12-2014, 06:14 AM
  4. [SOLVED] Extract numbers of variable lengths from cell
    By Nizz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2013, 10:11 AM
  5. Replies: 3
    Last Post: 05-09-2012, 11:36 AM
  6. Replies: 2
    Last Post: 09-20-2010, 05:55 AM
  7. Fill down formula using VBA to varying column lengths
    By Lee Jeffery in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 01-28-2005, 08:40 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