+ Reply to Thread
Results 1 to 9 of 9

Find last used letter in cell and return all before it

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Find last used letter in cell and return all before it

    I have various cells with different length words and names with numbers after them, eg John Jack 28',,,,, . I want to find the last LETTER used in cell and return everything before it so in this example just leave me with John Jack. Possible?

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Find last used letter in cell and return all before it

    Is there a a max number of words/names at the start?
    Say thanks, click *

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Find last used letter in cell and return all before it

    The names could be any length and any amount of words. Could be John Johnathan Joseeeeeeeee Jacko Macnkkkkkkkkkkkkkkkkkko for example! or even longer!

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find last used letter in cell and return all before it

    Try

    =TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",100)),LEN(SUBSTITUTE(A1," ",REPT(" ",100)))-100))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Find last used letter in cell and return all before it

    Doesn't do what I want ACE. I should mention there could be any amount of numbers after the name so it could be John Jack 28', 52', 55', 95',

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Find last used letter in cell and return all before it

    Perhaps a macro like this would work for you?

    Please Login or Register  to view this content.
    Change range to suit your needs.

    Alf

  7. #7
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Find last used letter in cell and return all before it

    use array formula
    {=LEFT(A1,MAX(IF(MID(A1,ROW(1:100),1)=" ",ROW(1:100))))}

  8. #8
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Find last used letter in cell and return all before it

    hi there. if you want to find the last letter, shouldn't it be "k" from "John Jack 28'"? if you want everything before the numbers, try:
    =TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  9. #9
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Find last used letter in cell and return all before it

    Thanks guys. Works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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