+ Reply to Thread
Results 1 to 4 of 4

Lookup the highest value per criteria

  1. #1
    Registered User
    Join Date
    11-19-2009
    Location
    CA
    MS-Off Ver
    Excel 2007
    Posts
    62

    Lookup the highest value per criteria

    Guys,

    Would need your expertise on this.

    I'm trying to capture the highest number on a given group. Been playing around with index and match and I can't seem to make it worked.

    For example,

    Group Name, count
    group A, 12
    group A, 13
    group A, 15
    group B, 3
    group B, 2

    the output cell should give me something like:
    Group Name, max count
    group A, 15
    group B, 3

    thanks guys...
    Last edited by xmoore; 03-24-2010 at 05:27 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup the highest value per criteria

    You should use a Pivot Table - much more efficient - set Group Name as Row Field/Label and Count set as Data Field set to MAX.

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Lookup the highest value per criteria

    If you prefer a formula

    =SUMPRODUCT(MAX((A1:A5="group A")*B1:B5))

    will return the maximum value of "group A"
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    11-19-2009
    Location
    CA
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Lookup the highest value per criteria

    Thanks DonkeyOte... as much as I want to use the pivot table I can't. I need the formula base.

    Appreciate the help Sweep. It did work just the way I wanted.

    thanks a lot guys.

    regards,
    xmoore

+ 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