+ Reply to Thread
Results 1 to 8 of 8

Subtotal with Multiple SUMPRODUCT Criteria

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Subtotal with Multiple SUMPRODUCT Criteria

    Hi, Im trying to add subtotal to my formula in column K & L rows 4 to 10 so the results only show for a selected date. The date can be selected from the dropdown in R1.
    Can anyone help. Sample file attached.

    Regards B
    Attached Files Attached Files
    Last edited by singerbatfink; 05-24-2022 at 06:52 AM.

  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,837

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    Try this in K4:

    =SUMPRODUCT(($G$18:$G$201="G/Grade 1")*($H$18:$H$201="Fixed Term Appointment")*($B$18:$B$201=$R$2)*($A$18:$A$201))

    (changes in red).

    Hope this helps.

    Pete

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

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    K4=SUMPRODUCT($A$18:$A$201,($G$18:$G$201=$H4)*($H$18:$H$201="Fixed Term Appointment")*($B$18:$B$201=$R$2))
    M4=SUMPRODUCT($F$18:$F$201,($G$18:$G$201=$H4)*($H$18:$H$201="Fixed Term Appointment")*($B$18:$B$201=$R$2))
    Try the above, Copy and paste towards down
    Samba

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

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

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    If you wanted to make it more generic, you could also make these amendments to K5:

    =SUMPRODUCT(($G$18:$G$201=$H4)*($H$18:$H$201=SUBSTITUTE($H$3," Staff",""))*($B$18:$B$201=$R$2)*($A$18:$A$201))

    and then you could copy it down without needing to change the grades each time.

    Hope thi shelps.

    Pete

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    Please try

    =COUNTIFS($G$18:$G$201,$H4,$H$18:$H$201,"Fixed Term Appointment",$B$18:$B$201,$R$2)

    or

    =SUMIFS($F$18:$F$201,$G$18:$G$201,$H4,$H$18:$H$201,"Fixed Term Appointment",$B$18:$B$201,$R$2)
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    Thank you for you help.

  7. #7
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    Thanks Pete, much appreciated. Overthinking will be the death of me.

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

    Re: Subtotal with Multiple SUMPRODUCT Criteria

    You're welcome - thanks for the rep.

    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. Replies: 5
    Last Post: 06-15-2020, 11:31 PM
  2. How to use the SUMPRODUCT Subtotal formula based on TWO criteria
    By Fireflies827 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-15-2020, 11:50 PM
  3. [SOLVED] sumproduct subtotal offset with multiple criteria
    By reneevic in forum Excel General
    Replies: 10
    Last Post: 07-02-2019, 04:57 PM
  4. [SOLVED] Nest SUMPRODUCT with SUBTOTAL with 3 criteria
    By sick stigma in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2019, 01:23 PM
  5. How to use subtotal in sumproduct with multiple criteria
    By Daniel Tou in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2017, 05:11 AM
  6. [SOLVED] Sumproduct, Subtotal with multiple condition
    By ravi.jalani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2013, 12:18 PM
  7. Replies: 5
    Last Post: 04-20-2012, 08:54 AM

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