+ Reply to Thread
Results 1 to 5 of 5

extract left numbers from text

Hybrid View

sanjuss2 extract left numbers from text 04-15-2020, 03:22 AM
AliGW Re: extract left numbers from... 04-15-2020, 03:28 AM
sanjuss2 Re: extract left numbers from... 04-15-2020, 04:13 AM
Pepe Le Mokko Re: extract left numbers from... 04-15-2020, 03:31 AM
AliGW Re: extract left numbers from... 04-15-2020, 04:15 AM
  1. #1
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Lightbulb extract left numbers from text

    Hi,
    I have following type data

    225002SUB ST 12
    225012SUB ST 23
    225014SUB ST 58
    227013SUB ST 29
    227041SUB ST 24
    227513SUB STA 55
    227518SUB STA 54
    2210019LOSS 31
    2270116DOU 20
    2270127SUB STA 40
    2270128DOU 35

    But I want the result as

    25002
    225012
    225014
    227013
    227041
    227513
    227518
    2210019
    2270116
    2270127
    2270128

    only left numbers I required....

  2. #2
    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,377

    Re: extract left numbers from text

    Try this:

    =-LOOKUP(1,-LEFT(A1,ROW(A$1:A$15)))

    https://www.excelforum.com/excel-gen...ract-left.html
    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.

  3. #3
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Re: extract left numbers from text

    Thanks a lot

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: extract left numbers from text

    Or this array formula
    Formula: copy to clipboard
    =MID(A1,1,MATCH(TRUE,ISERROR(1*MID(A1,ROW(INDIRECT("1:25")),1)),0)-1)*1


    This being said, the solution for this type of problem is all over the Net...

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

    Re: extract left numbers from text

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

+ 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. Replies: 6
    Last Post: 06-26-2017, 09:04 PM
  2. [SOLVED] Extract numbers from a the left and to the right of a string
    By T86157 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2017, 10:38 AM
  3. 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
  4. [SOLVED] Extract text to left of nth character
    By cmb80 in forum Excel General
    Replies: 3
    Last Post: 06-16-2014, 11:09 AM
  5. [SOLVED] Extract text left and right of character
    By stuartm4h in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2013, 07:32 AM
  6. Extract Data to right and left of numbers
    By chl in forum Excel General
    Replies: 1
    Last Post: 03-18-2010, 02:19 PM
  7. extract numbers with specific text from right or left
    By darkhangelsk in forum Excel General
    Replies: 2
    Last Post: 08-15-2009, 02:38 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