+ Reply to Thread
Results 1 to 16 of 16

Insert Subtotals Command

Hybrid View

  1. #1
    Registered User
    Join Date
    10-19-2007
    Posts
    47

    Insert Subtotals Command

    Hi I ran into a problem, it state "Use the subtotals command to sum the totals for each sales person) *Hint: convert the list to a normal range before calculating the subtotals.

    I highlight Sales person and click Date but subtotals key is not showing up. dunno why? can some one help, i have attach the file its in the Subtotals worksheet. thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526
    Subtotal adds only what you have filtered
    example
    =SUBTOTAL(9,J5:J79)

    enter
    =subtotal(
    then hit the function wizard the fx beside the formula bar, then click on help with this function to see what you can do with subtotal function

  3. #3
    Registered User
    Join Date
    10-19-2007
    Posts
    47
    Hi Dave I try your fomula but the grand total doesn't add up right
    The grand total suppose to be $8003.77 but i got $6290.82 dunno what i did wrong? can you check for me. i have attach the file thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Use excel built in subtotal to avoid human errors. e.g

    your formula should being J82 not J81

    =J23+J39+J56+J67+J82
    http://www.bettersolutions.com/excel...A823711331.htm



    VBA Noob
    Attached Files Attached Files
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi nicolachen,

    Where did you get your total "8003.77", the total (correct me if im wrong) is "7707.96" in your spreadsheet when i used grouping for the subtotals.

    See the attached file, then select J83 of sheet named Subtotal.
    Attached Files Attached Files
    Corine

  6. #6
    Registered User
    Join Date
    10-19-2007
    Posts
    47
    Quote Originally Posted by corinereyes
    Hi nicolachen,

    Where did you get your total "8003.77", the total (correct me if im wrong) is "7707.96" in your spreadsheet when i used grouping for the subtotals.

    See the attached file, then select J83 of sheet named Subtotal.
    Hi Corinereyes
    I look over the sheet there's missing data i just correct it, I got my PivotTable Grand Total $8003.77 but I still can't get the subtotal Grand Total. I try your formula but i got ##### what i did wrong???? please help....


    VBA Noob (I try your formula i got $2535.35 wasn't even close to the Total show in the book $8003.77 ) u sure its the right formula?
    Attached Files Attached Files
    Last edited by nicolachen; 10-21-2007 at 12:22 PM.

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your calc of $8003.77 is wrong. Both corinereyes and my total is $7,707.96 as per my attachment. The formula was your formula showing you that you had referenced a cell wrong.

    As I said use excel built in function to avoid these mistakes as per my example

    VBA Noob

  8. #8
    Registered User
    Join Date
    10-19-2007
    Posts
    47
    the attach file above is the wrong one, here's the right one
    Attached Files Attached Files

+ 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