+ Reply to Thread
Results 1 to 3 of 3

Extract Top 5 Values from each category

  1. #1
    Registered User
    Join Date
    05-04-2019
    Location
    India
    MS-Off Ver
    OFFICE 365
    Posts
    19

    Extract Top 5 Values from each category

    In this file I have a master data with unique item Code and its details.
    In qty i have duplicate values with in same category. and category also repeated.
    From this master data i need to extract top 5 qty values and its details from each category( Do not ignore duplicate qty ).
    (In this, all vegetables are the same category "6" and stationery items are under the "12" category like that.)



    Data.png

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Extract Top 5 Values from each category

    next time, please attach a sample sheet, not a non-editable picture of a sheet.

    J4:
    =IFERROR(AGGREGATE(14,6,$C$4:$C$15/($E$4:$E$15=$I$2),ROWS(J$4:J4)),"")

    H4, copied across and down:
    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($C$4:$C$15)/(($E$4:$E$15=$I$2)*($C$4:$C$15=$J4)),COUNTIF($J$4:$J4,$J4))),"")

    see sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-04-2019
    Location
    India
    MS-Off Ver
    OFFICE 365
    Posts
    19

    Re: Extract Top 5 Values from each category

    Thank you So much Glenn.
    It is very helpful.
    Sorry for the late reply.

+ 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. Replies: 5
    Last Post: 08-08-2018, 05:29 PM
  2. [SOLVED] Help using SUMPRODUCT and CATEGORY to add various values
    By kraser in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2016, 07:51 PM
  3. How to Chart values for Division vs Category and Sub-Category?
    By rahulgk in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-11-2013, 06:33 AM
  4. [SOLVED] Sum values according to their category
    By lovi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-04-2012, 12:10 PM
  5. [SOLVED] Productsum: Highest Frequency Category, Specific Main Category, Frequency of Category
    By T86157 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2012, 12:43 PM
  6. How to extract info based on any defined category
    By creamecake in forum Excel General
    Replies: 9
    Last Post: 11-16-2011, 01:56 PM
  7. How do you add all the values within a 'category'?
    By banestyrelsen in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-03-2008, 03:41 AM

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