+ Reply to Thread
Results 1 to 4 of 4

find certain value on a sheet and return value of cell 2 to the right

  1. #1
    Registered User
    Join Date
    04-22-2010
    Location
    Providence, Utah
    MS-Off Ver
    Excel 2003
    Posts
    2

    find certain value on a sheet and return value of cell 2 to the right

    I am trying to find a way to search through an entire sheet (or selected array) and then return the value of the cell that is two to the right of the cell that is found. I have attached a spreadsheet as an example of what I want. Any help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by jct77; 04-23-2010 at 09:52 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: find certain value on a sheet and return value of cell 2 to the right

    A relatively expensive single cell formula approach I'm afraid:

    Please Login or Register  to view this content.
    confirmed with CTRL + SHIFT + ENTER

    Given the above it generally makes sense to store the co-ordinates (eg ROW.COLUMN) in one cell and then retrieve values in another cell based on this value to avoid the repetitive calculation.

    Alternatively use a User Defined Function (ie VBA).

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: find certain value on a sheet and return value of cell 2 to the right

    Another kind of expensive formula.

    =INDEX(A1:D4, INDEX(MAX((A1:D4="AL")*ROW(A1:D4)),0),2+MATCH("AL",INDEX(A1:D4,INDEX(MAX((A1:D4="AL")*ROW(A1:D4)),0),0),0))

    Or following DonkeOte's suggestion. Set this in a helper cell, let's say D12.

    =INDEX(MAX(($A$1:$D$4="AL")*ROW($A$1:$D$4)),0)

    Then use this to return the value you are looking for.

    =INDEX(A1:D4,D12,2+MATCH("AL",INDEX(A1:D4,D12,0),0))

    Regards

  4. #4
    Registered User
    Join Date
    04-22-2010
    Location
    Providence, Utah
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: find certain value on a sheet and return value of cell 2 to the right

    Thank you both for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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