+ Reply to Thread
Results 1 to 5 of 5

Left or Mid

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Left or Mid

    =IF($S49>0,INDEX($R$7:$R23,MATCH($S49,$AC$7:$AC23,11)))

    I am using this and its returning pretty much what I want, but I would like to return everything except the first 6 letters of the returned text. My attempts so far to extend it with the inclusion of Left or Mid have resulted in #NAME error.

    julhs
    Last edited by julhs; 01-29-2012 at 09:09 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,620

    Re: Left or Mid

    =RIGHT(IF($S49>0,INDEX($R$7:$R23,MATCH($S49,$AC$7:$AC23,11))),LEN(IF($S49>0,INDEX($R$7:$R23,MATCH($S49,$AC$7:$AC23,11))))-6)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Left or Mid

    Or,

    =REPLACE(IF($S49>0,INDEX($R$7:$R23,MATCH($S49,$AC$7:$AC23,11)),""),1,6,"")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Left or Mid

    Thanks TMS & Haseed A,

    Both work perfectly, so spoilt for choice.

    Many thanks and good night.

    julhs

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,620

    Re: Left or Mid

    You're welcome. Thanks for the rep.

+ 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