+ Reply to Thread
Results 1 to 7 of 7

Ranking by sub group

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    bristol, england
    MS-Off Ver
    Excel 2010
    Posts
    26

    Ranking by sub group

    Im new to this and im trying to rank by sub group.

    A B C
    187-bbn 700 pads
    187-bbd 330 pads
    188-een 150 helmets
    111-ssn 111 pads
    119-qjw 122 helmets
    119-wwe 150 wristwear

    I need to rank each product code (A) within each sub group (C) so I would get top ten pads, or top ten helmets.
    The worksheet is large. Can anyone help? thanks

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Ranking by sub group

    Hi Luke,

    welcome to the forum.

    As an option, remove (using text-to-column), the word "Pads" from 700 (do it for entire column) and then you can sort data as descending order, first by column A and then by column C and then your top 10 results would be there on top


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    bristol, england
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Ranking by sub group

    Book2.xlsxhello dilipandey,
    thank you for helping but there are 146 different sub groups (pads, helmets, stickers etc...) in column C.
    I need to rank each product by its code (column A) within its category (C) by its total sales (column B)

    so i would end up with one formula that could sort and rank each sub group category.
    Ive attached a small example. the worksheet contain 45000+ lines.
    Thank you

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Ranking by sub group

    try this formula in column d
    =SUMPRODUCT(($A$2:$A$71=$A2)*($C$2:$C$71=C$2)*($B$2:$B$71>=$B2))

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    bristol, england
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Ranking by sub group

    hello and thank you. however it returns an #N/A.

  6. #6
    Registered User
    Join Date
    02-22-2013
    Location
    bristol, england
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Ranking by sub group

    That sounded a bit ungrateful and it wasnt supposed to. I have fixed the problem
    =SUMPRODUCT(--($C$1:$C$7302=C1),--(B1<$B$1:$B$7302))+1
    Thanks again for everyones help

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Ranking by sub group

    Great..!!

    Please mark this thread as [SOLVED]... thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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