+ Reply to Thread
Results 1 to 6 of 6

Thread: Find range of group & return highest value

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    11

    Find range of group & return highest value

    Hi,

    My spreadsheet is set up like this:
    Test.xls


    What I want to do is to find the highest temperature and pressure in each group, and copy this over to the green fields.
    Is it also possible to copy the lowest and highest, so the result would be like "Min-Max" (60-90)?

    I've tried using VLOOKUP where the range was found using ADDRESS but I couldn't get it to work.

    Thanks in advance!!
    Last edited by Stiansen; 02-10-2012 at 03:11 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    455

    Re: Find range of group & return highest value

    Try this in I5:
    =MAX(IF($A$2:$A$14=$H5,C$2:C$14))
    Confirmed by Ctrl-Shift-Enter rather than Enter only.
    Copy down and across
    Click the star icon in left-corner of my post if you find my post userful!

    Quang PT
    quangphanidico@yahoo.com
    PM me: Y!M: quangphanidico

  3. #3
    Valued Forum Contributor
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    455

    Re: Find range of group & return highest value

    For MIN-MAX in same cell:
    =MIN(IF($A$2:$A$14=$H5,C$2:C$14))&"-"&MAX(IF($A$2:$A$14=$H5,C$2:C$14))
    CSE
    Click the star icon in left-corner of my post if you find my post userful!

    Quang PT
    quangphanidico@yahoo.com
    PM me: Y!M: quangphanidico

  4. #4
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,225

    Re: Find range of group & return highest value

    =MAX(IF($A$2:$A$14=$H5,C$2:C$14)) copied across and down

    committed with Ctrl-Shift-Enter rather than just Enter

    Regards, TMS

  5. #5
    Registered User
    Join Date
    09-01-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Find range of group & return highest value

    Thank you very much, didn't even think that Max/Min was a loop function even though they has to be! :P

  6. #6
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,225

    Re: Find range of group & return highest value

    You're welcome. Thanks for the rep.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

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