+ Reply to Thread
Results 1 to 16 of 16

Pivot Tables: Adding a Table with percentage

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Pivot Tables: Adding a Table with percentage

    Okay, so I have a table with labels and numbers
    One column is labeled Product
    The other is labeled Count

    I want to add a column where it displays the percentage right beside the Count and refreshes wherever I add a new product or when an existing product is sold.

  2. #2
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Re: Pivot Tables: Adding a Table with Percentage

    Bring up my post

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot Tables: Adding a Table with percentage

    You get better help if you add an excel-file, without confidential information.

    Please also add the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Re: Pivot Tables: Adding a Table with percentage

    Here's a sample.
    SampleBook1.xlsx

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    Put this in F4 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It does this.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    1
    Product Name Qty Sold
    2
    A
    45
    Row Labels Sum of Qty Sold Desired Result
    3
    B
    12
    A
    45
    Qty Sold/Grand Total in Percetage that updates wit hthe Pivot table
    4
    C
    64
    B
    12
    14%
    5
    D
    87
    C
    64
    4%
    6
    E
    15
    D
    87
    21%
    7
    F
    88
    E
    15
    28%
    8
    F
    88
    5%
    9
    Grand Total
    311
    28%
    10

  6. #6
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Re: Pivot Tables: Adding a Table with percentage

    This, unfortunately does not update with the table. I changed the table data and refreshed the table. Here's what happened: Oh and also, I forgot to mention this: the values will be sorted

    SampleBook2.xlsx
    Last edited by Volle12; 02-24-2015 at 12:48 AM.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    I don't understand. It updates when the pivot table is refreshed at my end. What am I missing?

  8. #8
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Re: Pivot Tables: Adding a Table with percentage

    What's missing at my end is that if the order changes, the formula doesn't change properly and I can't quite figure out why. Is there a way to add a column to a pivot table?

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    What are the specific steps you take to refresh? I keep trying to duplicate problem you

    describe and can't. Perhaps I am missing the point entirely.
    Last edited by FlameRetired; 02-24-2015 at 01:19 PM.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    Found it.

    The formula used in the upload post #6 should be =$E3/SUM($E$3:$E$11)

    What it has is =$E3/SUM($E$3:$E$8) which I had used in the original

    upload.

    Does this fix it?
    Last edited by FlameRetired; 02-24-2015 at 01:29 PM.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    Quote Originally Posted by Volle12 View Post
    What's missing at my end is that if the order changes, the formula doesn't change properly and I can't quite figure out why. Is there a way to add a column to a pivot table?
    I've added a percentage column to the pivot table. Does the attached do what you want?
    Attached Files Attached Files
    Last edited by FlameRetired; 02-24-2015 at 02:26 PM. Reason: clarity / afterthoughts

  12. #12
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Re: Pivot Tables: Adding a Table with percentage

    Thanks but when I put it in F4 it didn't "merge" with the pivot table. I tried it on a different table, it doesn't work for me.

    Capture.PNG
    Last edited by Volle12; 02-25-2015 at 08:57 AM.

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    I don't understand. In the last upload I worked the percentages out next to the source ...... in column C.

    Then I changed the source data for the pivot table from the Sheet1!$A:$B that you had to Sheet1!$A:$C.

    This added the column in the pivot table......which is what I understood you to want in post #8. F4 is in that pivot table. It is blank....because the source references whole columns not just the used range.

    By-the-way I cannot read the attached picture. Many of us can't.....company firewalls and other limitations.

    That said would you re-upload a WB that describes what your pic shows? If there is a way that you can

    hand type results and point to what you want and where within that WB it might clarify.
    Last edited by FlameRetired; 02-25-2015 at 01:12 PM.

  14. #14
    Registered User
    Join Date
    06-18-2014
    Location
    Ph Is
    MS-Off Ver
    2007
    Posts
    30

    Re: Pivot Tables: Adding a Table with percentage

    I changed the source data and it worked. Thanks a lot

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pivot Tables: Adding a Table with percentage

    Glad to hear it works. Thank you for the feedback.

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

    Re: Pivot Tables: Adding a Table with percentage

    Hi guys,

    I really like Pivots and after reading this post very fast it looks like it is in need of three things.
    1. A Dynamic Named Range of data for the Pivot that grows when you add data.
    2. The Pivot data is based off the Dynamic Named Range instead of a fixed range.
    3. An event macro that will automatically refresh the Pivot Table if any cells are changed.

    Find the attached where I've included all 3 things above. See it work by adding data to the table. It also works if you change any of the numbers in the table.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Percentage Change and Pivot Tables
    By hokkaido19 in forum Excel General
    Replies: 2
    Last Post: 01-17-2015, 12:11 AM
  2. Replies: 1
    Last Post: 12-23-2010, 08:44 AM
  3. Replies: 12
    Last Post: 05-15-2010, 03:02 AM
  4. Percentage of Subtotal in Pivot Tables
    By incognitos in forum Excel General
    Replies: 1
    Last Post: 06-25-2009, 04:42 AM
  5. Replies: 3
    Last Post: 02-23-2009, 10:07 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