+ Reply to Thread
Results 1 to 16 of 16

Insert Subtotals Command

  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

    Please Login or Register  to view this content.
    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

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

    Use the grouping in excel or create an outline in excel 2003 to avoid mistake as what VBA Noob suggested.

    Attached is the file.
    Attached Files Attached Files
    Last edited by corinereyes; 10-21-2007 at 12:42 PM.

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

    Use the grouping in excel or create an outline in excel 2003 to avoid mistake as what VBA Noob suggested.

    Attached is the file.
    Hi Corine and VBA Noob
    I did try to grouping it before but wouldn't let me see pic. i can't click it.
    Attached Images Attached Images

  11. #11
    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
    Could be because you have a cell still selected by double clicking it. Try pressing return

    VBA Noob

  12. #12
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Im using xl 2007.

    Try the following if VBA Noob's suggestion didn't worked.

    1. Copy the data into another sheet and Paste Special Values (to clear all formats done.)

    2. Select the whole data, then go to Subtotal.
    In the subtotal ->

    At each change in: Select "Sales person"
    Use function: Sum
    Add subtotal to: Select " Total"

    mark or check the Summary below data.

    3. Click ok

  13. #13
    Registered User
    Join Date
    10-19-2007
    Posts
    47
    it state "The Command could not be completed by using the range specified. Select a sing cell with the range and try the command again"

    but when i click the single cell the subtotal is not available like in that picture wouldnt let me click.

    its not the freeze panel, i try to unfreeze it and still doesnt work. dunno where the problem. please check what i did wrong i had the file attach it. thanks
    Attached Files Attached Files

  14. #14
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Im using xl 2007.

    Try the following if VBA Noob's suggestion didn't worked.

    1. Copy the data into another sheet and Paste Special Values (to clear all formats done.)

    2. Select the whole data, then go to Subtotal.
    In the subtotal ->

    At each change in: Select "Sales person"
    Use function: Sum
    Add subtotal to: Select " Total"

    mark or check the Summary below data.

    3. Click ok
    or you can try to pratice with the xl file i attached and follow the procedure above.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    10-19-2007
    Posts
    47
    Thank You so much both of you, finally it works out and get my total right thank you a bunch

  16. #16
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    I'am glad we helped you.

+ 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