+ Reply to Thread
Results 1 to 6 of 6

Sum Function in Grouping

Hybrid View

  1. #1
    Registered User
    Join Date
    06-30-2014
    Location
    USA
    MS-Off Ver
    Vista
    Posts
    2

    Sum Function in Grouping

    How do I sum only the total in various groups? I can highlight the cells to get the total but when using the sum function I get the hidden rows too. I have attached an example spreadsheet to clarify my question. Thanks iGrouping Total.xlsxn advance!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Sum Function in Grouping

    Use Subtotal() Function

    =SUBTOTAL(109,B1:B12)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    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,946

    Re: Sum Function in Grouping

    Hi and welcome to the forum

    Instead of using SUM() for all those totals, use =SUBTOTAL(9,range)...and use for the grand total as well
    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

  4. #4
    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,946

    Re: Sum Function in Grouping

    Six, if you use 109, then the OP will get 0 when the rows are hidden. I think they want B15 to show 1500 when the rows are hidden

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Sum Function in Grouping

    Quote Originally Posted by FDibbins View Post
    I think they want B15 to show 1500 when the rows are hidden
    But inside the file OP mentioned that the result should be 1650

    Should be 1,650 (as highlighted)

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

    Re: Sum Function in Grouping

    Ya know, 1 of these days, I will learn to read whats put in front of me LOL. Thanks for the catch, Six

+ 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. Want to get a Series with Grouping and Sub-Grouping based on 2 criterias.
    By e4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2011, 05:46 AM
  2. Data Sorting/Grouping Function
    By Blake 7 in forum Excel General
    Replies: 0
    Last Post: 10-19-2010, 02:50 PM
  3. Grouping function in Excel macro
    By bobens_83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2007, 09:13 AM
  4. [SOLVED] Am I able to protect my work sheet and keep my grouping function?
    By Djana in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2006, 08:50 PM
  5. Grouping and grouping within groups
    By j-giesler in forum Excel General
    Replies: 1
    Last Post: 01-31-2006, 04:35 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