+ Reply to Thread
Results 1 to 5 of 5

Pivot Table - Adding Rows with Zero Values

  1. #1
    Registered User
    Join Date
    05-28-2014
    Posts
    3

    Pivot Table - Adding Rows with Zero Values

    Hello,

    I tried searching around for my issue via google and the forum search and I'm either really bad at searching or nobody has the same problem...

    I have some nominal data that I'd like to get into a pivot table (Excel 2013). For simplicity let's say it's a one-question survey with 6 respondents:

    Q1: Dogs are better than Cats
    Strongly Agree
    Agree
    Neither Agree or Disagree
    Disagree
    Strongly Disagree

    Responses:
    Agree
    Strongly Agree
    Strongly Agree
    Strongly Agree
    Agree
    Strongly Agree

    I can create a pivot table with this data and get the following:
    Row Labels Count of Q1
    Strongly Agree 4
    Agree 2
    Grand Total 6

    This all works nicely, however I require that the other options ("Neither Agree or Disagree", "Disagree", and "Strongly Disagree") be present, even if their values are 0, like the following:
    Row Labels Count of Q1
    Strongly Agree 4
    Agree 2
    Neither Agree or Disagree 0
    Disagree 0
    Strongly Disagree 0
    Grand Total 6

    What I tried doing was adding a new column and calling it something like Ratings with the following:
    Ratings
    Strongly Agree
    Agree
    Neither Agree or Disagree
    Disagree
    Strongly Disagree
    Then I set the Ratings column in the "Rows" section of the pivot table and the Count of Q1 column in the Values section. This is what happened:
    Row Labels Count of Q1
    Strongly Agree 1
    Agree 1
    Neither Agree or Disagree 1
    Disagree 1
    Strongly Disagree 1
    Grand Total 6

    Can anyone point me in the right direction?
    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Pivot Table - Adding Rows with Zero Values

    Create Pivot table
    Click the pivot table
    Drag Row labels to Row Lables
    Drag Count of Q1 to the Values
    Click on Count of Q1 drop down arrow (under values) > Click Value field settings > Click Sum, Click OK

    0 values are showing for me. Example Atatched
    Attached Files Attached Files
    Last edited by playaller; 05-29-2014 at 01:24 AM. Reason: Attached example


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Registered User
    Join Date
    05-28-2014
    Posts
    3

    Re: Pivot Table - Adding Rows with Zero Values

    Thanks for the reply, Playaller, but your example isn't my situation. I don't have counts of each value, I just have the value themselves. (Taking the counts would be difficult as the real data I'm trying to use is huge.

    Attached is an example of my data using your method. It doesn't work ):

    Attachment: Example.xlsx

  4. #4
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Pivot Table - Adding Rows with Zero Values

    Okay I get your point. It's possible but in this situation it was just easier to create a cell area with formulas that look like a pivot table. It will sum everything matching in each column. You can just duplicate the code as it is just simple countif formula, just edit the code for agree and pull down to the rest for each quarter.

    Example attached:
    Attached Files Attached Files
    Last edited by playaller; 05-29-2014 at 07:15 PM.

  5. #5
    Registered User
    Join Date
    05-28-2014
    Posts
    3

    Re: Pivot Table - Adding Rows with Zero Values

    I was afraid that doing countif's would be the only solution... ): Oh well.

    Thank you for your help and patience

+ 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. [SOLVED] Rows with zero values in Pivot table.
    By johnE in forum Excel General
    Replies: 1
    Last Post: 02-26-2021, 02:40 PM
  2. Adding Rows of Data (And Calculations) to a Pivot Table
    By rjbinney in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-29-2013, 12:26 PM
  3. Pivot Table; adding rows to complete a sequence
    By gyrfalcon09 in forum Excel General
    Replies: 3
    Last Post: 05-17-2011, 09:43 AM
  4. [SOLVED] How do I hide rows in a pivot table with zero values?
    By fs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-22-2006, 04:15 PM
  5. adding rows to pivot table
    By cwinters in forum Excel General
    Replies: 2
    Last Post: 06-06-2005, 02:05 PM

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