+ Reply to Thread
Results 1 to 2 of 2

Highest sum in a column based on multiple criteria

  1. #1
    Registered User
    Join Date
    09-18-2017
    Location
    San Francisco
    MS-Off Ver
    2013
    Posts
    39

    Highest sum in a column based on multiple criteria

    Hi all,
    I'm trying to find in a table the highest sum of rows based on specific criteria.
    For example:

    Deal Name Date Amount

    Deal 1 Name 1 Oct-19 $150.00
    Deal 2 Name 1 Nov-19 $250.00
    Deal 1 Name 2 Nov-19 $100.00
    Deal 3 Name 2 Aug-19 $300.00
    Deal 2 Name 3 Aug-19 $500.00
    Deal 1 Name 4 Oct-19 $150.00
    Deal 2 Name 5 Oct-19 $700.00
    Deal 3 Name 5 Sep-19 $300.00


    a. I want to find what would be the deal number with the highest sum of amount if the deal was in October and is Name 1.
    b. What is the sum of that largest deal

    I'm guessing I need an array formula, and tried playing with =Large(if) but nothing seem to get me where I want.

    Thanks!
    Attached Files Attached Files
    Last edited by alisachsf; 11-06-2019 at 01:40 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Highest sum in a column based on multiple criteria

    You can use this array* formula in D18 to get the largest sum for those criteria:

    =MAX(IF(($B$2:$B$9=C14)*($C$2:$C$9=C15),$D$2:$D$9))

    and use this array* formula in C13 to get the deal number:

    =INDEX($A$2:$A$9,MATCH(1,($D$2:$D$9=D18)*($B$2:$B$9=C14)*($C$2:$C$9=C15),0))

    *Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), instead of the usual Enter.

    Hope this helps.

    Pete

+ 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] Find highest text value in column based on criteria
    By hamroid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2019, 01:49 AM
  2. 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
  3. Replies: 3
    Last Post: 06-09-2016, 12:51 PM
  4. [SOLVED] Find unique cells in column -> Sum another column based on multiple criteria
    By mjoc9 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2015, 09:29 AM
  5. [SOLVED] Finding highest value based on criteria
    By pichon in forum Excel General
    Replies: 12
    Last Post: 05-05-2015, 12:19 AM
  6. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  7. Find highest based on criteria
    By timtrag12 in forum Excel General
    Replies: 2
    Last Post: 03-27-2011, 05:42 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