+ Reply to Thread
Results 1 to 2 of 2

Matching highest and lowest values by category

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    EU
    MS-Off Ver
    Excel 2007
    Posts
    17

    Matching highest and lowest values by category

    I hope you don't mind that I'm going to make use of the opportunity and refresh this discussion. I'm looking to write a formula that would match a given percentage of highest and lowest values from a data table according to the custom threshold and category. The data table looks like that:
    Identifier Category Value
    ABC1 Category A 123
    ABD2 Category A 5454564654
    XYZ56 Category A 56454564
    YUC67 Category A 656454566
    FGH78 Category A 45454564564
    FGT55 Category A 656545454
    MNO90 Category A 212313213
    ABDD32 Category B 545646
    KOLP12 Category B 454545
    KOSA134 Category B 454545
    HUI89 Category B 454545
    KOLP12 Category B 454545
    KOLP14 Category B 45454544

    I'm aiming to get the highest and lowest values from the Category A and Category B separately and match them with corresponding identifiers. It is possible that there will be few the same values within each category, I would have to get all of them. All the formulas (or pivot tables) will have to be working under the Excel 2003. I'll appreciate any help

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Matching highest and lowest values by category

    Hi,

    please see the little example attached

    =INDEX($A$2:$A$1000,MATCH(MIN(IF($B$2:$B$1000=B2,$C$2:$C$1000))&B2,$C$2:$C$1000&$B$2:$B$1000,0))

    =INDEX($A$2:$A$1000,MATCH(MAX(IF($B$2:$B$1000=B2,$C$2:$C$1000))&B2,$C$2:$C$1000&$B$2:$B$1000,0))

    All the formulas must be confirmed with control+shift+enter.

    Cheers
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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