+ Reply to Thread
Results 1 to 3 of 3

formula to return value based on MAX outcome

  1. #1
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    formula to return value based on MAX outcome

    Hey folks,

    I have a list of numeric values and want to return the value in the column adjacent to it:

    ie. Rows H6:H17 contain numeric values
    Rows G6:G17 contain names

    In cell H20 I'd like a formula that looks up the max value in range H6:H17 and returns the adjacent value from column G.

    I've tried this formula:

    =INDEX(G6:G17,MATCH(MAX(H6:H17),H6:H17))

    but this returns the last value in the range G6:G17. Is there an Offset I could use?

    Any help most appreciated as always,

    Steve
    Last edited by SAsplin; 06-21-2011 at 07:48 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: formula to return value based on MAX outcome

    try
    =INDEX(G6:G17,MATCH(MAX(H6:H17),H6:H17,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: formula to return value based on MAX outcome

    Thanks Martin! Can't believe the answer was so bloomin obvious - missed it totally!

    Thanks for the quick reply.

    Steve

+ 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