+ Reply to Thread
Results 1 to 3 of 3

Return the top 3 largest amounts in each category based on identifier

  1. #1
    Registered User
    Join Date
    11-08-2017
    Location
    Seattle
    MS-Off Ver
    2010
    Posts
    26

    Return the top 3 largest amounts in each category based on identifier

    Hi all,

    Please see below for reference. I am trying to populate Column H with a formula that pulls the three largest amounts in Column C based on the four criterias in Column E. The result would look like $230, $81 and $11 for A, $988, $100 and $93 for B, etc. So rather than the twelve largest values from Column C, I am looking for the three largest values in Column C for each letter (A, B, C and D).

    Thank you!


    Top 3 largest amounts based on identifier.JPG

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Return the top 3 largest amounts in each category based on identifier

    You need to set up your data a bit differently and use =LARGE(IF($E$2:E$20$="A",$C$2:$C$20),G2), array entered
    Attached Files Attached Files
    Click the * to say thanks.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Return the top 3 largest amounts in each category based on identifier

    In H2 then copy down

    =AGGREGATE(14,6,($C$2:$C$14)*($E$2:$E$14=LOOKUP(INT((G2+2)/3),{1,2,3},{"A","B","C"})),1+MOD((G2-1),3))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] = Look and match Identifier and Category then average Sub-categories
    By Schultze in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-22-2018, 10:14 AM
  2. [SOLVED] Return specific based on which value is largest in three cell range
    By lukestkd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2016, 09:38 AM
  3. how to ensure 4 columns amounts are listed once per identifier
    By accelatexcel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-30-2015, 01:50 AM
  4. Replies: 2
    Last Post: 02-23-2014, 09:56 PM
  5. Replies: 30
    Last Post: 12-19-2011, 12:13 PM
  6. Formula to return value based on category
    By hermithead in forum Excel General
    Replies: 10
    Last Post: 03-11-2010, 05:07 PM
  7. Replies: 1
    Last Post: 12-07-2009, 07:02 PM

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