+ Reply to Thread
Results 1 to 4 of 4

MATCH and OFFSET function

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    12

    MATCH and OFFSET function

    Hello, I am trying to return two values in separate cells based on what I place in another cell.

    For example, A1 is the title of the column, A2 contains the value "M1", A3 contains "M2", A4 contains "M3",........A99 contains "M98".

    In cell C2, I want to enter a value that could be found in Column A, but in cell C1 i want to have a formula that will return the cell 11 rows above it. So if I enter the value M24, I want the formula to search column A, find "M24" and return the value "M13". Additionally if the value doesn't have 11 rows above it, then the value would return "M1" given M2 through M11 would require this result.

    Any ideas?

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: MATCH and OFFSET function

    Try
    =INDEX(A:A,MAX(2,MATCH(C2,A:A,0)-11))
    Last edited by Cutter; 05-16-2012 at 06:07 PM.

  3. #3
    Registered User
    Join Date
    05-16-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: MATCH and OFFSET function

    That worked, thank you

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: MATCH and OFFSET function

    You're welcome. Don't forget to mark your thread as SOLVED (click on Forum Rules @ top of page and see rule #9 for instructions if needed).

+ 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