+ Reply to Thread
Results 1 to 8 of 8

Why is SUBTOTAL including SUM?

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Why is SUBTOTAL including SUM?

    Hi,
    Really sorry if this is a dumb question or if it's a topic that's been covered - I have searched and googled and nothing has answered my question.
    I made a spreadsheet to track how much I'm spending on product - I have a bunch of cells with dollar amounts, then the sum of them, then a discount is applied, taxes, S&H, and then I SUBTOTAL to get the total of the order. I'm trying to pull the total of each order into another cell on another sheet, so I can have a grand total of how much I've invested. My problem is, SUBTOTAL is including the SUMs, so the total is way bigger than it should be. I thought the purpose of SUBTOTAL was to only total the data that used that function? Am I do something wrong? Or is the a different function I can use somewhere?
    I know I could manually enter the grand total cell as cell+cell, but that is more manual entry than I'd like to do.
    I've attached the spreadsheet for reference.

    Thanks in advance!

    Bianca
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Why is SUBTOTAL including SUM?

    Read here SUBTOTAL() and here SUM()

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Why is SUBTOTAL including SUM?

    I did, and did again, but that does not solve my problem. Is that your subtle way of telling me there's no easy way to achieve what I'm looking for?

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Why is SUBTOTAL including SUM?

    No, it was answer for your post title
    What you want to sum and subtotal (without big nvovels serialized )

    btw. there is SUBTOTAL with function no. 9 so it works like normal SUM() function.
    or you want hide rows or something like that.
    I don't see the need for a SUBTOTAL()
    Last edited by sandy666; 03-15-2017 at 10:59 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Why is SUBTOTAL including SUM?

    SUBTOTAL will exclude other SUBTOTAL functions within it's range, but not other regular functions
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Why is SUBTOTAL including SUM?

    huh OK, I loaded your file, and that is not supposed to be happening. the ST is not ignoring other ST's in it's range. I will see if I can find whats wrong

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Why is SUBTOTAL including SUM?

    You can try this one on Summary E1: =SUMIF(Orders!E:E,"Total",Orders!F:F) or if you want sum total from subtotals change Total to Subtotal inside function.
    It will give you correct answer on Summary if you did all SUMs correct on Orders tab.
    And on Orders tab use standard SUM() with titles Subtotal or Total there, where they are necessary. (or Ford solution)
    Attached Files Attached Files
    Last edited by sandy666; 03-16-2017 at 12:06 AM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Why is SUBTOTAL including SUM?

    OK found the problem

    For each SUBTOTAL you have there (F19, F32 etc) you are using a regular SUM function. Change those to ST and you should be good to go

+ 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] Subtotal including first Row of next group
    By yossel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2014, 05:18 PM
  2. Replies: 1
    Last Post: 09-18-2013, 04:10 PM
  3. Subtotal not including the row 2
    By Keatonyoung in forum Excel General
    Replies: 1
    Last Post: 10-05-2012, 10:17 AM
  4. Replies: 8
    Last Post: 07-31-2012, 09:41 AM
  5. 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
  6. subtotal dialog box including column header
    By ChuckM1 in forum Excel General
    Replies: 0
    Last Post: 12-03-2010, 04:45 AM
  7. Copy worksheet including named ranges not including macros
    By urungus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2009, 01:38 PM
  8. Subtotal including a Count and Sum
    By makku in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2008, 05:22 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