+ Reply to Thread
Results 1 to 10 of 10

Find max value in range and return corresponding value in offset range

  1. #1
    Registered User
    Join Date
    01-03-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Angry Find max value in range and return corresponding value in offset range

    Hi all,

    very frustrating simple problem.

    I have a table from A5:G10 and another table N5:T10

    I need to find the MAX value in table A5:10, which is fine.

    But i then need to find the corresponding value in the table N5:T10.

    So basically, i'm finding the position of MAX(A5:G10), then finding the value in the same row but offset 13 columns to the right.

    It seems so simple and i've tried so many different formulas, but i keep getting #N/A

    I tried =OFFSET(A5,MATCH(MAX(A5:G10),A5:G10,0),13) and i just get #N/A. SO FRUSTRATING!

    I thought this should work but i have no idea why it isn't.

    Can anyone help with any ideas? thanks

    Joel

    p.s: I'm running Excel 2003

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find max value in range and return corresponding value in offset range

    Try

    =INDEX(N5:T10, MATCH(MAX(A5:G10),A5:G10,0))

  3. #3
    Registered User
    Join Date
    01-03-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Find max value in range and return corresponding value in offset range

    Quote Originally Posted by zbor View Post
    Try

    =INDEX(N5:T10, MATCH(MAX(A5:G10),A5:G10,0))
    Nope I got the exact same #N/A again...grrr

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find max value in range and return corresponding value in offset range

    Do you have #N/A in A5:G10 range?

    Please upload example workbook.

  5. #5
    Registered User
    Join Date
    01-03-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Find max value in range and return corresponding value in offset range

    Quote Originally Posted by zbor View Post
    Do you have #N/A in A5:G10 range?

    Please upload example workbook.
    No, the lowest value is 0, highest is 1

    Mapsmacros.xlsx

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find max value in range and return corresponding value in offset range

    Oh, yes, sorry.. my fault.. you can't match in multiple rows that way... let me see...

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find max value in range and return corresponding value in offset range

    Can you add one helper column:
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Find max value in range and return corresponding value in offset range

    Hi thats why I do not like formulas with this simple code you can obtain the same
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  9. #9
    Registered User
    Join Date
    01-03-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Find max value in range and return corresponding value in offset range

    Ahh ok. So you can't find the coordinates of the max in that range and just offset a few columns?

    Seems a bit odd.
    But yeah what you've done there seems to work

    No other way to do it without a helper column?

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Find max value in range and return corresponding value in offset range

    as tom said, with VBA code.
    But you can hide that helper column so there shoudln't be a problem...

+ 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