+ Reply to Thread
Results 1 to 5 of 5

SUMPRODUCT top 'x' percent of rows

  1. #1
    Registered User
    Join Date
    04-26-2016
    Location
    Minneapolis
    MS-Off Ver
    2013
    Posts
    21

    SUMPRODUCT top 'x' percent of rows

    I am sure this could be simple;

    I am looking at to SUMPRODUCT the top 1% of the rows - which will be dynamic obviously, but am having trouble finding the correct formula. I have been monkeying around with AGGREGATE and with all of the PERCENTILE functions but can't seem to figure it out.

    The column I am trying to sum is Col Q

    Cell designation:

    L3: =SUMPRODUCT(--($D$18:$D$35000<>"")*1%)

    C13: ="Q1:Q"&L3

    D15: =COUNTA(B17:B150015)+16

    C15: ="Q17:Q"&D15


    My current formula that is working

    =SUMPRODUCT(LARGE(INDIRECT(C15),ROW(INDIRECT(C13))))



    I am wondering if there is a NON VOLATILE way to do this using formulas / calcs only (no pivots or tables)
    I don't mind using =SUM ( IF, however want to avoid SUMIF, SUMIFS at all measures as well, any insight would be appreciated

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: SUMPRODUCT top 'x' percent of rows

    Hi,
    I wonder why in "General" forum, not in "Formulas"?
    Also: testing possible solutions is much easier if there is an attachment with sample data and manually calculated/assesed results.
    Best Regards,

    Kaper

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: SUMPRODUCT top 'x' percent of rows

    Maybe something like this will do what you want. Enter the % required in T1 and enter this formula where you want and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I only filled column Q to row 50. Change the reference to $Q$50 to whatever is appropriate for your data.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    04-26-2016
    Location
    Minneapolis
    MS-Off Ver
    2013
    Posts
    21

    Re: SUMPRODUCT top 'x' percent of rows

    newdoverman,

    If I could hit your rep button 100 times I would.

    I am familiar with dynamic formulas - i.e. IF(ROWS$"":"">.......ROW($"":$"")-ROW($"")+1 but holy crap I have been trying to think how to do this for almost half the day.
    The other one that was completely wrong I was messing around with was {=SUM(IF($Q$18:$Q$35000>PERCENTILE($F$18:$F$35000,0.01),$Q$18:$Q$35000))}

    I can't thank you enough

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: SUMPRODUCT top 'x' percent of rows

    Thank you for the feedback.

    I'm glad that the solution works for you and thank you for the rep.

+ 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. Sumproduct certain rows
    By Iulian Panosche in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-22-2014, 10:13 AM
  2. Formula or function to find percent of a percent in a population
    By maldron in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2013, 08:26 PM
  3. How to Times a percent, and be able to change percent.
    By ILCentral in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2012, 11:55 AM
  4. Graph Actual Percent with Suggested Percent
    By jaytaylor in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-05-2010, 07:09 AM
  5. Sumproduct for the filtered rows only
    By Gabor in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-14-2010, 05:48 AM
  6. Sumproduct, Rows and Columns
    By windme in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2009, 04:00 PM
  7. [SOLVED] Formatting a number to look like a Percent without a percent sign
    By David Iacoponi in forum Excel General
    Replies: 2
    Last Post: 09-15-2005, 02:05 PM

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