+ Reply to Thread
Results 1 to 11 of 11

Thread: Index and Match, with Max

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Index and Match, with Max

    Using Excel 2003

    This formula works fine for finding the first matching record, but what I need it to do is find the one with the maximum value:

    =INDEX('AG2010'!$K$2:$K$1394,MATCH($A3,'AG2010'!$I$2:$I$1394,0))
    Last edited by cedarhill; 03-09-2011 at 02:07 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Index and Match, with Max

    Assuming 'AG2010'!$I$2:$I$1394 contains the numbers...

    =INDEX('AG2010'!$K$2:$K$1394,MATCH(MAX('AG2010'!$I$2:$I$1394),'AG2010'!$I$2:$I$1394,0))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Index and Match, with Max

    I don't see where it takes care of my needing to match the specific equipment ($A3) which is in my original formula...

    You are correct, value I am looking in a number in 'AG2010'!$I$2:$I$1394. I am looking for every match of $A3 in another worksheet that contains multiple entries of $A3 and I need the maximum value in 'AG2010'!$I$2:$I$1394. I should have been more specific in my original post. Sorry.

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Index and Match, with Max

    So you need to find multiple matches of A3 in 'AG2010'!$I$2:$I$1394 and at the same time find max in 'AG2010'!$I$2:$I$1394? That doesn't make sense.

    is there another column involved here?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Index and Match, with Max

    Assuming the A3 is to be found in column I and the max is to be found in column J, then try

    =INDEX('ag2010'!$K$2:$K$1394,MATCH(1,('ag2010'!$I$2:$I$1394=$A3)*('ag2010'!$J$2:$J$1394=MAX(IF('ag2010'!$I$2:$I$1394=$A3,'ag2010'!$J$2:$J$1394))),0))
    confirmed with CTRL+SHIFT+ENTER not just ENTER
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Index and Match, with Max

    I've tried to attach a copy of the sample spreadsheet, but I keep getting an error. It's only 752K and it has the right file extension (xls). Don't know what the problem is.

    However, I'll see if I can explain better. I have a worksheet AG2010 that has a year's worth of individual meter readings for equipment. Each reading shows the Unit # and the Reading. On a separate Summary work, sheet, I am summarizing data for each unit. So I need to find all the entries for a Unit on the years worth of entries and need to post only the largest meter reading found.

  7. #7
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Index and Match, with Max

    The question is, in what column are are the Units entered in AG2010 and in what column are the meter readings found?

    Did you see my last formula above? Can you adapt it?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  8. #8
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Index and Match, with Max

    I missed your last message while I was trying to upload the file. Will check it out. Thanks.

  9. #9
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Index and Match, with Max

    It just dawned on me, that maybe you want just:

    =MAX(IF('AG2010'!$I$2:$I$1394=$A3,'AG2010'!$K$2:$K$1394))

    confirmed with CTRL+SHIFT+ENTER where column K contains the meter readings?

    Is that it?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  10. #10
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Index and Match, with Max

    It's displaying the max meter reading in the meter column, which is for another unit, not the Unit I've selected.

    I've again tried to upload the file...still getting an error and the message to contact support.

  11. #11
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Index and Match, with Max

    IT WORKS!!!! Your formula was absolutely correct!! I was in error. Thanks for your patience.

+ 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.2.0