+ Reply to Thread
Results 1 to 10 of 10

Need to sum only already summed cells down a column with constantly changing data

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Need to sum only already summed cells down a column with constantly changing data

    Hi. I am new to this forum, and I am completely lost when it comes to advanced formulas or VBA. I am trying to sum only certain cells in a column, and there will be cells that are added and deleted daily from the column. I'll try to explain:

    In column V, cells V10:V714 all have numbers in them. Currently, there are 68 summed cells that sum the 1 or more cells above them. So there will be something like 5 values then a sum, 2 values then a sum, 10 values then a sum, etc. At the bottom, I want to sum ONLY the summed cells. These small groups that are summed are constantly changing, as in every day, one or more is deleted and every day, 1 or more new groups are added.

    How can I create a formula in the very bottom cell that will sum only the summed cells and update with each change without summing any of the other cells with numeric values in them? I am thinking this is some sort of array thing or VBA deal, but I have never done any of that, and I really don't know much about how... I have seen some examples of similar things here and in other forums, but I can't quite get my head wrapped around my particular issue.

    Thanks so much for any help! By the way, I am using some data that I need to keep private. If I need to attach my file, let me know, and I will manipulate the spreadsheet so that just the stuff I need help with is available.

    Michael

    UPDATE: I attached my file! I am trying to sum the summed cells in column V:Y (v15,v20,v25,v45, etc) down to Row 715. What changes is that I continually am adding new orders and deleting old ones, usually 15-20 changes a day, so it expands and contracts quite a bit.
    Attached Files Attached Files
    Last edited by psgolfer32381; 12-17-2012 at 02:11 PM.

  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

    Re: Need to sum only already summed cells down a column with constantly changing data

    It seems like it would be easier to replace all of your SUM functions with SUBTOTAL functions. Because SUBTOTAL functions ignore cells containing SUBTOTAL, you could use a final SUBTOTAL function to summarize the data.

    Here's one way:
    • Select Col_V
    • CTRL+H...(shortcut for Home.Find&Select.Replace)
    ...Find what: =SUM(
    ...Replace with: =SUBTOTAL(9,
    ...Click: Replace All

    • V1724: =SUBTOTAL(9,V10:V1723)

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to sum only already summed cells down a column with constantly changing data

    Thanks Ron! That does work initially. However, if I go in to add data from a new order, it is not changing the totals at the bottom. Now, I could go and re-sum the column, which is not a big deal at all, but I am trying to automate this as much as possible. Is there a way to make that work using this same solution? Here's what I mean:

    As you can see, the subtotaled groups vary in size. If I have a new group to enter (they are entered alphabetically by client - you can't see that info on the version I uploaded), I insert a group of rows in between the existing groups where it needs to go. I then enter in data for column V and X, and copy the formulas down from the other columns. Then I sum (or now subtotal) V:Y. When I do that, the total at the bottom does not change. In looking at the formula, it appears that Excel is determining which cells to sum based on the fact that I have subtotals in there... Anyway, I'm adding this to try to clear up what I'm doing.

    Any thoughts?

    Thanks
    Michael

  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

    Re: Need to sum only already summed cells down a column with constantly changing data

    It seems like your project is edging into more structured Excel model territory.
    Some suggestions:
    • Remove all of the subtotals
    • Inserted a column at the beginning to flag groups.
    Example:
    For the B121:C129 section, put a label in A121:A129....Group 20 (or whatever)
    Assign a category for every other group.

    • Whenever needed, have Excel automatically insert the subtotals, breaking on those groups.

    • When it's time for more inputs...Have Excel automatically remove those subtotals.

  5. #5
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to sum only already summed cells down a column with constantly changing data

    I'm sorry... I'm not really understanding what you mean there. I'm fairly novice overall with Excel.

    Thanks
    Michael

  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

    Re: Need to sum only already summed cells down a column with constantly changing data

    OK...Here's an example, using your posted workbook as a base.
    • I assigned a Group label to each row in Col_A
    • I assigned generic column headings to give the next section more meaning.
    • I removed all subtotal and blank rows

    Now, here's what I want you to do:
    • Open the attachement
    • Select A10:Y1099
    • Data.Subtotal
    ...At each change in: Group
    ...Use: Sum
    ...Add subtotal to: (check: Item_01 through Item_05)
    ...Click: OK

    Excel will insert a subtotal row at each break in Group

    Then you can work on formatting, etc.

    If you ever want to remove the subtotals...
    • Data.Subtotal...Click: Remove All

    Is that something you can work with?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to sum only already summed cells down a column with constantly changing data

    The problem I run into there is that I am adding and deleting groups daily, sometimes adding 10-20 groups whiled deleting about the same number of different groups. So while that works if it is static, it almost creates more work than I have now just using the basic SUM function and control clicking each subtotal.

    What I am doing now is just typing =SUM( and then clicking each subtotal cell all the way down column V and then copying that across the bottom row. It works, but I am just looking for a more automatic way to do it. I am starting to think I will need to use a more advanced function with VBA. Does that sound right or do you have any other solutions?

    Thanks again!
    Michael

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

    Re: Need to sum only already summed cells down a column with constantly changing data

    If every data cell is included in a subtotal, couldn't you just sum the entire range and divide by 2?

  9. #9
    Registered User
    Join Date
    12-17-2012
    Location
    Carrollton, TX
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to sum only already summed cells down a column with constantly changing data

    Oh my God!!! I feel extremely dumb right now ... In my defense, the spreadsheet has evolved, and it wouldn't have worked initially, which is when I first started looking at that.

    I have asked several other people, and nobody has come up with that... Wow. I think I need a break after that revelation!

    Anyway, thank you so much! Sometimes, it is the simplest answer right in front of you when things seem complicated.

    Michael

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

    Re: Need to sum only already summed cells down a column with constantly changing data

    Glad I could help
    ...Please be sure to mark this thread as SOLVED...(Click the Thread Tools dropdown and select "Mark this thread as solved"

+ 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