+ Reply to Thread
Results 1 to 5 of 5

Summing a worksheet with Subtotals

Hybrid View

  1. #1
    rwab
    Guest

    Summing a worksheet with Subtotals

    I have a worksheet with roughly 1000 rows and about 20 subtotals of departments within the 1000 rows.

    How can I easily total the 1000 rows, or 20 subtotals?

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    =SUM(A1:A1020)/2 would be one way.

  3. #3
    rwab
    Guest
    Good one, also when I performed the subtotal, it totaled automatically, with =SUBTOTAL(9,K2:K163).

    What does the 9 represent?

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Subtotal encompasses a range of functions, 9 represents the sum function. To see them all, type =Subtotal( in the function bar and the drop-down help should give you a list of options denoted by numbers.

  5. #5
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    If you used the actual Subtotal tool, then there should be a grand total at the end. Otherwise, if you used the Subtotal worksheet function in a formula, then you can use the same formula, but for the range select the entire range the list encompasses, including the other subtotals. The total will ignore all of the other subtotals.

    For example, if your data is in A1:A100, and you have subtotals throughout this range, you can still use:

    =SUBTOTAL(9,A1:A100)

    and it will ignore the other subtotals.

    HTH

    Jason

+ 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