+ Reply to Thread
Results 1 to 5 of 5

how to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    how to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"

    Haven't needed help for a while, but I'm bit stuck to find some simple solution.

    I just need to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"
    So with this particular example the position of that number "4"



    Please Login or Register  to view this content.


    Any help is very much appreciated.
    Cheers
    Last edited by rain4u; 12-08-2015 at 09:34 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: how to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"

    Try this:
    Please Login or Register  to view this content.
    If this has been helpful, please click on the star at the left.

  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: how to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"

    You can do this with formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    the last number is 4 the position of that number is 18

    Data Range
    A
    B
    1
    bla bla 522 to 604 bla
    18
    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
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,620

    Re: how to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"

    Please Login or Register  to view this content.
    Ben Van Johnson

  5. #5
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: how to get a position of a last number within a string e.g. "bla bla 522 to 604 bla"

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.

    This gets me the number itself "e.g. 604" which was my next step anyway so its PERFECT! Thank you.


    Thank you everybody.
    Cheers

+ 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] Count number of rows in a range that contain less than 5 cells with the string "VAC"
    By bananius in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-25-2014, 03:58 PM
  2. [SOLVED] Need formula that finds the last ", " in a text string & substitutes it w/ the word "and"
    By danielneedssomehelp in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-23-2014, 04:06 PM
  3. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  4. Replies: 0
    Last Post: 03-21-2014, 09:58 AM
  5. Replies: 2
    Last Post: 10-10-2013, 11:09 AM
  6. [SOLVED] search for a "part number" within a string and return its cell position or contents of cel
    By benakil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2013, 06:37 AM
  7. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 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