+ Reply to Thread
Results 1 to 12 of 12

Top 10 Results based on sum

  1. #1
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Top 10 Results based on sum

    Hi,

    I have 3 columns Customer, Brand and volume. On selection of customer in cell A1, top 10 brands should populate high to lowest volume of brands in that Customer

    I tried to use Index and Match but it do not give any result

    any help

    Thanks!

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Top 10 Results based on sum

    can you attach a sample file and explain the results expected? It's hard to understand exactly what you need.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Top 10 Results based on sum

    use a pivot table then Value Filter by Top 10
    If your original question was resolved, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
    Click on the Add Reputation button (located at the lower-left corner of all post) for those who assisted you in solving your issue.

  4. #4
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Top 10 Results based on sum

    I am Aware by Pivot but cannot use it as this is in result section. A formula or VBA will help.

    Sample file attached and desired result
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Top 10 Results based on sum

    Try

    in I3

    =LARGE(IF($C$2:$C$30=$G$3,$D$2:$D$30),ROWS($1:1))

    in H3

    =INDEX($A$2:$A$30,MATCH($G$3&$I3,$C$2:$C$30&$D$2:$D$30,0))

    BOTH ..

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. 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.

    Copy down

  6. #6
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Top 10 Results based on sum

    That worked perfectly.

    Is there a way i could use this through VBA using a worksheet change function?

  7. #7
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Top 10 Results based on sum

    Hi,

    The solution given above works fine but I wanted the highest to lowest Problem Area based on total volume of Problem Area and not large of region.

    So basically the top 10 Problem area Should be calculated on highest total volume of Problem Area in that Region. In this case the top Problem Area should be UHHT for total volume of 230 in Midwest Region
    Last edited by Biplab1985; 01-11-2018 at 04:28 AM.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Top 10 Results based on sum

    The data only has one entry for UHHT and it is 50!

    The formula finds the largest VOLUME for a selected region.

  9. #9
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Top 10 Results based on sum

    UHHT has two entry in Midwest 50 and 180, the formula should find the largest total volume. I tried something like this but no luck
    =INDEX($A$2:$A$31,MATCH($G$3,LARGE(SUMIFS(D2:D31,C2:C31,G3,A2:A31,A2:A31),$C$2:$C$31&$D$2:$D$31),0))
    By pressing CTRL+SHIFT+ENTER

  10. #10
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Top 10 Results based on sum

    Any input?

    All I need is highest total volume of Problem Area in the Region to be used to determine the top 10 result not one single value

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Top 10 Results based on sum

    Helper in F

    in F2

    =IF(COUNTIFS($A$2:A2,A2,$C$2:C2,C2)=1,SUMIFS(D:D,C:C,$G$3,A:A,A2),"")

    in I3

    =LARGE(IF($C$2:$C$30=$G$3,$F$2:$F$30),ROWS($1:1))

    in H3

    =INDEX($A$2:$A$30,MATCH($G$3&$I3,$C$2:$C$30&$F$2:$F$30,0))

    As before both array entered (CSE)
    Attached Files Attached Files
    Last edited by JohnTopley; 01-23-2018 at 04:53 AM.

  12. #12
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Top 10 Results based on sum

    Worked perfectly, Thank you so much

+ 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] Display top three results based on column, based on major
    By alexllap in forum Excel General
    Replies: 2
    Last Post: 07-13-2017, 05:59 PM
  2. Color Cell Based on Specific Text in Other Cell and Sorting Based on Results
    By kre30a in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2016, 07:51 PM
  3. vlookup based on two results
    By Skumby in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2016, 02:21 AM
  4. Returning ALL matching results based upon a text-based LOOKUP VALUE
    By colunga81 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2013, 09:23 AM
  5. Excel 2007 : results based on names
    By sushil10s in forum Excel General
    Replies: 2
    Last Post: 12-02-2011, 07:28 AM
  6. Replies: 3
    Last Post: 03-31-2010, 11:47 AM
  7. Results based on subdata
    By InfinityUD in forum Excel General
    Replies: 1
    Last Post: 10-28-2008, 09:43 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