+ Reply to Thread
Results 1 to 6 of 6

Writing a formula that sums groups of cells based on position in an outline

  1. #1
    Registered User
    Join Date
    11-09-2007
    Posts
    4

    Writing a formula that sums groups of cells based on position in an outline

    Is there a conditional formula you can use to sum the contents of a set of cells, on the basis that they exist in a group or subgroup, instead of writing a formula for each outline group along the lines of "=C8+C9+C10..." (or using the basic sum command)? Perhaps it can be done with DSUM in some way. Take a look at the image I've linked to and see if you can understand what I'm asking.

    http://i58.photobucket.com/albums/g2...ewPicture2.jpg

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Writing a formula that sums groups of cells based on position in an outline

    If you used Automatic Subtotals (via the Excel Main Menu: <data><subtotals>), Excel would build the appropriate formulas at each change of Group/SubGroup for you.

    Are you looking for something else?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    11-09-2007
    Posts
    4
    ron, that seems to be the right direction, so thanks for that. for now, at least, i can't get the subtotal function to recognize the groups yet. i'm given the choice of calculating subtotals at each change in the categories defined by my column headers (so, each change in "Detail," which would essentially be every line). Any thoughts?

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Writing a formula that sums groups of cells based on position in an outline

    Do you have a "Group" column that assigns each detail item to a group? (You'd need one).

    Then that would be a Subtotal option (each change in Group)

    Actually, with each detail assigned to appropriate groups/subgroups/etc, a Pivot Table might give you even more analysis flexibility.

    Your thoughts?

  5. #5
    Registered User
    Join Date
    11-09-2007
    Posts
    4
    my thoughts are i should learn how to use pivot tables then

    thanks for your help. i'm on the right track now. i think i can figure out a way to manipulate this to my liking.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Where to learn about Pivot Tables

    Might as well learn from the ranking expert on Pivot Tables: Debra Dalgleish.

    See the Pivot Tables section of this website:
    http://www.contextures.com/tiptech.html

    Enjoy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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