+ Reply to Thread
Results 1 to 3 of 3

OFFSET function not working

  1. #1
    Forum Contributor
    Join Date
    04-19-2009
    Location
    Toulouse, France
    MS-Off Ver
    Excel 2010
    Posts
    130

    OFFSET function not working

    Hello all i am trying to figure out why the following is not working that is not returning the correct value

    =OFFSET(A5,MATCH(LARGE(J5:J10,4),J:J,0)-9,0)

    though strangely in the same table the following does work

    =OFFSET(A5,MATCH(LARGE(F5:F10,4),F:F,0)-5,0)

    Any help greatly appreciated

    Regards
    Dan
    Last edited by Cicada; 04-17-2012 at 07:16 AM. Reason: solved

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: OFFSET function not working

    Why have you changed the -5 to -9 in the first formula?

    The MATCH statement is finding the row in column J which contains the largest value of the range J5:J10. If we assume that this value is in J5 it will return a value of 5 (or 6 if the largest value is in J6, 7 if it's in J7 and so on), so you're offsetting A5 by that number of rows minus either 9 or 5.

    If you want the corresponding value from the A column then you need to subtract 5 from that value, so that if the result is found in J5 then the value in cell A5 will be returned (A5 offset by 0 rows).

  3. #3
    Forum Contributor
    Join Date
    04-19-2009
    Location
    Toulouse, France
    MS-Off Ver
    Excel 2010
    Posts
    130

    Smile Re: OFFSET function not working

    Thanks Andrew for the quick response and for clearing things up for me. Was a little confused on how the function worked. Thanks again

    Regards
    Dan

+ 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