+ Reply to Thread
Results 1 to 7 of 7

how to look up in a column and select cell below

Hybrid View

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    4

    how to look up in a column and select cell below

    Hi,

    Been banging my head against a brick wall on this one for a few hours, so any help would be appreciated...

    I have a single column which I need to search for a string in. Once (and only if) that string is found in any row of the column, I then need to select the value of the 3rd cell down from that one (same column, just 3 cells below the one I have found).

    The match must be exact.

    Any ideas please guys?! Thanks!

    Rob.

  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
    48,498

    Re: how to look up in a column and select cell below

    =INDEX(A:A, MATCH("search item",A:A,0)+3)


    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
    Registered User
    Join Date
    05-08-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: how to look up in a column and select cell below

    Wow - thanks so much! That's almost perfect...

    The only thing is - is there a way of stopping it showing "#N/A" when there is not a match?

    Thanks!

  4. #4
    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
    48,498

    Re: how to look up in a column and select cell below

    =IFERROR(INDEX(A:A,MATCH("search item",A:A,0)+3),"")

    Regards, TMS
    Last edited by TMS; 05-08-2013 at 02:03 PM. Reason: Corrected formula as per Jonmo1's post

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: how to look up in a column and select cell below

    Try

    =IFERROR(INDEX(A:A,MATCH("search item",A:A,0)+3),"")

  6. #6
    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
    48,498

    Re: how to look up in a column and select cell below

    @Jonmo1: thank you, well spotted. I can't quite believe I posted that. Senior moment, maybe. Though, looking at it, I think I must have pressed the wrong key at some point and re-positioned the entry point. Certainly not what I intended to type or thought I had typed.

    Jonmo1's formula is the correct version: =IFERROR(INDEX(A:A,MATCH("search item",A:A,0)+3),"")

    Apologies, TMS

  7. #7
    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
    48,498

    Re: how to look up in a column and select cell below

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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