Results 1 to 2 of 2

sum rows based on sub-total

Threaded View

  1. #1
    Registered User
    Join Date
    05-01-2015
    Location
    Vancouver, BC
    MS-Off Ver
    2010
    Posts
    35

    sum rows based on sub-total

    Hello Excel Gurus,

    I'm looking for a formula or vba code that will calculate a total (or sub-total to be more precise) for rows that are constantly changing (i.e. dynamic range).

    I have attached a spreadsheet for more information which is like a payroll time sheet.

    In it, I have to go to each 'sub-total' row to calculate the sum for the activity for that particular location. As there are hundreds/thousands of rows I have to repeatedly hit the sum function for every sub-total line.

    I've currently done this in cells:

    F9 and G9
    F20 and G20
    F24 and G24
    F32 AND G32

    I'm wondering if there is an easier way to calculate all the rows that have a sub-total as an identifier. Either in the form of a formula/vba-code?

    Any help would be appreciated.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. randomized rows based on percentage of total rows
    By Uwantachat in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 03-22-2021, 01:52 PM
  2. Replies: 1
    Last Post: 05-13-2015, 12:52 PM
  3. Delete Duplicate Rows based on one duplicating value- and keep total at the top the same.
    By jeremynorthwestern in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2014, 01:32 AM
  4. Replies: 1
    Last Post: 01-30-2013, 12:12 PM
  5. [SOLVED] Copy data to different sheet based on filter and add total rows
    By ravibemail in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2012, 07:25 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