+ Reply to Thread
Results 1 to 3 of 3

return 4 characters usign find

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    61

    return 4 characters usign find

    Hey

    I have a small problem that i cant seem to find out

    i have a text string ex: Apple;House;Wine

    I need a formual that returns the last 4 characters after the last ";"

    I have tried using find combined with right / left, but cant seem to make it work

    Thx in advance

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: return 4 characters usign find

    If S is the string and T the return String then try

    T = Mid(S,InStrRev(S, ";", -1)+1,4)
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: return 4 characters usign find

    So if the text was:

    hdjsah;6tgf83q;hjkxhvsw;a very small bird

    you want the formula to return:

    bird
    Gary's Student

+ 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