+ Reply to Thread
Results 1 to 21 of 21

Pivot table - how to show SUM values from "within" the pivot and not outside.

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Question Pivot table - how to show SUM values from "within" the pivot and not outside.

    I have a pivot table that is showing hours people worked in 3 months (april may june). From left to right I want to sum up all the hours of people worked (sounds simple). But I want to calculate the sum within the pivot table (in column E) and not with for example me manually typing =sum(B5:D5) outside the pivot table. Why?

    1. if I do "=sum..." (outside my pivot) as you see in my F column, then as I bring in more names its going to overwrite my formula. I am only filtering on 3 people right now and will want to bring in more. I will have to manually redo my sum formulas all over. I want where I can add/remove as many people as I want and the sum of all the months show automatically without me having to do it each time I add/remove a person.

    2. I also want to make a pivot chart based on the sum of column E once I figure out my first question above. I currently (not showing in the pic) have manually entered in my sums (with SUM) but as I filter my pivot (for other data as needed) it no longer sees my reference cells and messes up. Which is why I want me SUM data to show in the pivot.

    thank you


    pivot.PNG

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Is modifying your raw data or pivot table columns not an option?
    If I've helped U pls click on d *Add Reputation

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Under (2007 ribbon) Pivot table tools -> Options -> Options dialog -> Totals and filters tab -> Select "show grand totals for rows" check box. I assume the same command is in a similar location in 2010. If not, find where this dialog and option checkbox are located, and you should be able to get your desired grand totals.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    I do have "show grand totals for rows checked" but I dont see them at the row level. This would be a huge help if I can get that to work. I will modify what I ever I need to at this point.. depending how we go about it.


    and by row I mean have the grand total count from left to right...not up and down.


    ----update

    I just inserted a calculated field.. I think I am on the right page.. but how do I tell it to sum up the row?
    Last edited by eeps24; 08-24-2016 at 01:06 PM.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    We may need to see your actual file instead of a picture of the pivot table. I cannot recreate what your picture is showing without deselecting the "grand total for rows" option.

    I have attached a very simple file, showing grand totals for both rows and columns. If you cannot upload a sample of your file, see if you can see what is different about yours and mine.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    yes that is exactly what I want to do, trying to upload my sheet but the upload button is acting weird (maybe I need to update my java)..when I get home i will upload the sheet... if you can please do it that would be great!!! should have it uploaded in a hour or two.

    thank you

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    I know that this site's file uploader works with mixed success. I have always had success by clicking on Reply to Thread or Go Advanced to bring up the main post reply page, then click on "manage attachments" below the post editor. This should bring up the main file uploader that can be used to upload files.

  8. #8
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    cant seem to upload....when i click the attachment button i get a small white box but doesnt show anything.

    ill try to figure something out

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Perhaps it is my script blocker, but I don't see an attachment button. Did you try my suggestion to go through the 'go advanced" button, then click on the "manage attachments" link?

  10. #10
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    im in advanced but i dont see a managed attachments link...i see a paper click icon, isnt that what you used?

  11. #11
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    worst i can share it via dropbox. ill try the attachment again. ill do the dropbox tomorrow early morning if it comes down to it

  12. #12
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    duh i see managed attachments..should be uploaded my friend.

    plz look at sheet 4 ... scroll down
    Last edited by eeps24; 09-01-2016 at 08:22 AM.

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    I am not that skilled at pivot tables, so I do not understand why your pivot table is not including a Grand Total column like mine did.

    One difference I see between your source table and my simple pivot is that your source table has each employee name as a field header across the top. Mine has "name" as a field header, and each employee is listed with each record. This means that I can put "name" as column label in my pivot table, but your "column label" field in the pivot table is blank (sum of values). This difference seems to be what drives the "grand total" column -- having something (other than the Excel generated "sum of values") to put in the column label field.

    Unfortunately, this pivot table question is beyond my knowledge of Excel's pivot tables, so I will seek the assistance of those more knowledgeable than I.

  14. #14
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Hi eeps24,

    Your data could be a lot better. You should fill down those dates and then UnPivot the names. I did those two steps using Power Query with about 5 clicks of the mouse. I give you back a tab called BetterTable that should pivot easily. Now, you can install the Microsoft Add-In called Power Query and do it yourself whenever your data changes.

    Here are the steps.
    Open Power query,
    Get the data from a Table
    Fill down on the date column
    Select the first 3 columns and Unpivot
    Save the Power Query to a sheet.

    I then took the data and did a Pivot on it. I can't see your picture but I think the data in the new format can do what you need. See the attached. Time to learn some easy Power Query steps?

    Power Query Fill Down then Unpivot to Pivot.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  15. #15
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Thank you... It was tough to track my data..I usually like to have the names in one column but it would make tracking my other data difficult. So I had no option but to make them going across. I appreciate your help.

    How about anyone else want to take a try at my issue?

    Thank you

  16. #16
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Hey eeps,

    Play with the pivot table idea using the data on the BetterTable sheet. If you add rows to your original data the Power Query will work with all added or deleted rows. When you get into the format I've given you the problem is very easy (I assume). But while you have it like you "like" it is very hard to work with.

  17. #17
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    i used calculated field to achieve the LOOK of what you are after
    but, it is not dynamic...you would need to create a new field should you change combinations of columns you are after

    ps if your going to go to the effort of doing this...you might as well sum outside the pivot table
    Attached Files Attached Files
    Last edited by humdingaling; 08-24-2016 at 11:28 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  18. #18
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Marvin - I think we posted at the same time lol...your "better table" does look very good (I will save a copy of this) but for now I think I will just my current work sheet because at some point I will hand mine off to someone and they will maintain it. In my sheet the user will only need to fill in the numbers, but on yours they will need to add a new row for each person when they worked... adding total (today hours in a day they worked), worked (worked hours), not worked (given extra hrs as bonus but not actual worked), and whether it was a weekday or weekend. I will have to look in to power query, I have heard of it, but never used it. Thank you so much for this information.

    humdingaling - Awesome, thats what I was trying to achieve...however you mentioned its not dynamic .. thats what I wanted to do (dynamic). So are you saying there is no way correct to make it dynamic? Sucks because if a user decides to add a few people (moves the list to the right) it will wipe out the calculation (which I have a chart using those totals). I guess ill have to make the calculation really far to the right ...OR..i can just make the totals to the left of the pivot...hmmmmmm


    i do have other questions about how to do things... I guess I should make new threads and keep this my current problem only.
    Last edited by eeps24; 08-25-2016 at 08:28 AM.

  19. #19
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    can't attach the sheet but go to Calculated fields then put this in the Formula field:

    =Lehnhoff+'Panchal ' +Saravanan

  20. #20
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Sucks because if a user decides to add a few people (moves the list to the right) it will wipe out the calculation (which I have a chart using those totals). I guess ill have to make the calculation really far to the right ...OR..i can just make the totals to the left of the pivot...hmmmmmm
    just have the sum formula on the left of the pivot table instead then if you choose to add people it will automatically have included those cells
    its much better way of doing it
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: Pivot table - how to show SUM values from "within" the pivot and not outside.

    Quote Originally Posted by humdingaling View Post
    just have the sum formula on the left of the pivot table instead then if you choose to add people it will automatically have included those cells
    its much better way of doing it
    yes, I think that is what I have to do. Thank you guys....thanks bhenlee but I want to avoid manually typing names.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 11-07-2015, 02:03 PM
  2. Display "TEXT" in "Values" field in PIVOT TABLE using VBA!!
    By meus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2015, 09:56 AM
  3. Display "TEXT" in "Values" field in PIVOT TABLE using VBA!!
    By meus in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2015, 06:14 AM
  4. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  5. [SOLVED] Automatically filter pivot table and turn off "show details"
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2013, 01:08 PM
  6. Pivot to show table content in "Values" as-is & not perfrom any Calculation
    By hemantkrishnan in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-30-2013, 08:45 PM
  7. [SOLVED] Pivot table "Group and Show Details" vs. "SubTotals"
    By pgchop in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2006, 03:35 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