+ Reply to Thread
Results 1 to 7 of 7

Dynamic top 10 list (3 variables needed)

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    4

    Dynamic top 10 list (3 variables needed)

    Hi there,

    This may be a bit difficult to explain however I'm trying to create a dynamic top 10 list which will use 3 columns of data - A is Client, B is Brand and C is Total Revenue. Trying to achieve top 10 lists by Brand that display Client and Total Revenue. I've attached a dummy excel file to give you a better idea of what I'm after (I hope). I've been tinkering with the LARGE formula and an IF statement but keep getting caught up. Any help would be much appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic top 10 list (3 variables needed)

    Hi,

    Seems like you need a Pivot Table - see attached. Admittedly it will give you all the results in descending order but if you do just want to see the top 10 then just hide rows 14 onwards. Use the drop down Product field to select a particular product

    Being a pivot table you could also drag the Product field into the row labels area above Client and see the top values by code in a table.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dynamic top 10 list (3 variables needed)

    Thanks so much - I actually had done it in a pivot table however was trying to come up with something a bit more dynamic to avoid having to refresh the table each month. Found this in another thread and seems the formula is similar to what i want except to swap out Date for Product (with the drop down menu). However I honestly am struggling to make head or tail out of the formula to be able to duplicate it for my needs.

    [reference to thread I found: http://www.excelforum.com/excel-form...ic-month.html]
    Attached Files Attached Files

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Dynamic top 10 list (3 variables needed)

    hi MTAL, welcome to the forum. would your "Top 10" sheet really have the text "Product..." & "A"? or will it be just "A"? here's an array formula for B3 if it's just "A" in row 1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for C3:
    =LARGE(IF(Master!$B$2:$B$150=INDEX($A$1:$U$1,1+FLOOR((COLUMNS($A$1:A$1)-1)/4,1)*4),Master!$C$2:$C$150),A3)
    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    if you really have the text "Product" in front of your products, then it will be more complex. in B3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    in C3;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    also array formula

    paste these formulas in Column B & C first. then copy both these ranges & paste to the rest.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    03-15-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dynamic top 10 list (3 variables needed)

    Thank you for the welcome, benishiryo! Will try it out tomorrow with the actual data sheet. Product is indeed listed by a Letter value (like A). Looking forward to being part of the community.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic top 10 list (3 variables needed)

    A top 10 list may have more than 10 items depending on ties.

    Looking at your file you have allotted space for 10 items only. Does that mean you only want 10 items regardless of any ties?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic top 10 list (3 variables needed)

    Hi,

    To overcome the need to manually refresh the pivot table you could have it refresh automatically every time you activate the sheet to look at it with a Sheet Activate macro.

+ 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