+ Reply to Thread
Results 1 to 7 of 7

Sum top N values with MULTIPLE criteria

  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    Sum top N values with MULTIPLE criteria

    Hi,

    Very much a beginner / intermediary so apologies if this is simple or been asked a thousand times.

    I would like to pull through the largest value in a range with multiple criteria. I'd like to do the same for the top 3 and then the top 10 values.

    Currently cannot seem to stumble upon a way to do this for multiple criteria - is it only possible to do when assuming one criteria?

    Any help would be much appreciated!

    Thanks!

    McNutt

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Sum top N values with MULTIPLE criteria

    It depends on which of those exactly you're trying for, and what format you need the output in, but I'm pretty sure you can accomplish what you want with SUMIFS, or a MAX(IF) or LARGE(IF) type of array construction.

    Can you post an example spreadsheet with the exact criteria, with some example data in the correct format?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    02-20-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    Re: Sum top N values with MULTIPLE criteria

    Hi, I have included an attachment. so I would want,

    A) The largest secondaries fund (value) closed in 2017.

    B) The sum of the largest 3 secondaries funds closed in 2017

    Thanks again
    Attached Files Attached Files
    Last edited by SamMcNutt; 02-21-2018 at 04:02 AM.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Sum top N values with MULTIPLE criteria

    Hi

    Use this for A)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Sum top N values with MULTIPLE criteria

    Use this for B)

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

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

    Re: Sum top N values with MULTIPLE criteria

    for A
    =SUMPRODUCT(LARGE((B2:B24=2017)*(C2:C24="Secondaries")*(A2:A24),{1}))
    for B
    =SUMPRODUCT(LARGE((B2:B24=2017)*(C2:C24="Secondaries")*(A2:A24),{1,2,3}))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Registered User
    Join Date
    02-20-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    Re: Sum top N values with MULTIPLE criteria

    Brilliant - both work perfectly.

    Thanks everybody, have a great day/evening.

+ 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. Formula to Sum 3 Column Values based on Multiple Criteria for Multiple Rows
    By RMerckling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2016, 07:46 PM
  2. [SOLVED] Copy rows from multiple worksheets with multiple criteria - greater than dynamic values
    By stackout in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2015, 04:36 PM
  3. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  4. how to add all values above row that meet multiple criteria criteria
    By skikio in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2015, 09:40 AM
  5. [SOLVED] How to sum values based on multiple criteria with multple possibilities for each criteria?
    By boredaxel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2013, 02:26 AM
  6. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  7. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 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