+ Reply to Thread
Results 1 to 7 of 7

Subtotal function with Criteria

  1. #1
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    269

    Subtotal function with Criteria

    This may have to be done using SUMPRODUCT, but I'm trying to subtotal a table where range L7:L6000 in the total hours and column P is the Pay type.

    Can you use the subtotal function that way when I filter in excel, it would sum the total hours in column L only if the corresponding cell in column P equals ST.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,915

    Re: Subtotal function with Criteria

    Yes ...

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    269

    Re: Subtotal function with Criteria

    Example workbook is attached. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2505 and WPS V2024(12.1.0.18543)
    Posts
    4,113

    Re: Subtotal function with Criteria

    Pls Try L1 formula

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

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,889

    Re: Subtotal function with Criteria

    One option is to add a helper column in Q7 filled down put
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then you can use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This avoids using volatile functions.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Subtotal function with Criteria

    Removed. Misunderstood the question.
    Last edited by josephteh; 10-22-2021 at 09:10 PM.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2507
    Posts
    13,808

    Re: Subtotal function with Criteria

    Removed by FR. Did not understand correctly.
    Last edited by FlameRetired; 10-22-2021 at 05:24 PM.
    Dave

+ 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. VBA - add subtotal function except values that match criteria
    By pkobzar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2019, 11:14 AM
  2. [SOLVED] Using Average with Subtotal function with criteria
    By Rianne in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-10-2017, 11:54 PM
  3. [SOLVED] Countifs arrays with multiple criteria and subtotal function
    By 5150 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 01:58 AM
  4. Subtotal - Delete zero Subtotal and prior rows that calculate to that zero Subtotal
    By Whatsherface in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 08:37 PM
  5. SUBTOTAL VLookup #N/A How can Subtotal function ignore #N/A
    By RxMiller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2009, 01:01 PM
  6. SubTotal function. How do I keep reuse Subtotal criteria.
    By davidthegolfer in forum Excel General
    Replies: 0
    Last Post: 10-10-2006, 03:28 AM
  7. subtotal-isplaying data without using function subtotal ?
    By Marijan Glavaè in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2005, 09:05 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