+ Reply to Thread
Results 1 to 4 of 4

COUNT function not working for value in pivot table

  1. #1
    Registered User
    Join Date
    07-03-2019
    Location
    London, UK
    MS-Off Ver
    Office 365 for Mac
    Posts
    2

    COUNT function not working for value in pivot table

    I have downloaded the results of an online survey and have started building a pivot table to try and make sense of them. I've attempted to attach the spreadsheet to this thread (not sure if it's worked, as the attachment button doesn't seem to do anything!). In the raw data tab, rows are responses and columns are answers.

    There are 3 main formats of question/answer in my survey:

    1. straight single-option multi-choice questions - these are the parameters I’m filtering by (both in the filters at the top of the pivot table and in columns C to I), seems to be working OK. I haven’t used all of them, but enough to show me that it works and I can replicate it.

    2. preference scale questions (rate on a scale of 0 to 4 how interested you are in x). In my pivot table I can see averages for these answers and also filter them by different parameters. I’ve only put the answers to one question in so far (in rows 6-20), but again, that’s enough to show me how it works and that I can replicate it.

    3. multiple-answer multi-choice questions (tick all that apply). In my raw data tab, these are the ones with lots of 1s in the cells. at the bottom of each column you’ll see that I’ve done a count so we can see overall how many respondents selected each response. This is the bit that I am finding tricky to filter. If you look at row 21 you’ll see that I’ve picked a field and put it in the ‘Values’ box where I am attempting to get values for a COUNT (i.e. how many rows had 1s, indicating a tick from a respondent - averages not being relevant in this instance). The problem is that it’s showing as if all respondents had ticked that box (adding up to a total of 159), whereas if I look at the corresponding column in the raw data (AZ), I can see that it only adds up to 80. I’ve tried to get round this by using a SUM instead of a COUNT, but then it just shows zeros for everything.

    I'd be very grateful for any suggestions, better still if they take account of my almost complete ignorance of this subject.
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419

    Re: COUNT function not working for value in pivot table

    You data in column AZ is text and not numeric. In fact all the multicoded responses are text.
    Convert the 1's to being true numbers and the final row in your pivot should read

    Count of Meeting my responsibilities in my current job 7 1 35 27 2 5 3 80
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-03-2019
    Location
    London, UK
    MS-Off Ver
    Office 365 for Mac
    Posts
    2

    Re: COUNT function not working for value in pivot table

    Thanks Andy, that's much appreciated. I'd noticed that about the text/numbers, and I'd converted them, but what I hadn't realised was that I needed to refresh the pivot table after doing so. Sorted now!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: COUNT function not working for value in pivot table

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. No distinct count function in pivot table
    By AS Mcclain in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 09-25-2015, 12:37 PM
  2. Pivot Table select all Pivot Items not working as intended
    By rasonline in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2014, 05:22 PM
  3. Count function in pivot table
    By busybeemg in forum Excel General
    Replies: 0
    Last Post: 02-14-2011, 03:54 PM
  4. Replies: 0
    Last Post: 04-05-2010, 03:38 PM
  5. [SOLVED] Pivot table count function not counting all data.
    By Irma in forum Excel General
    Replies: 3
    Last Post: 05-17-2006, 04:40 PM
  6. Replies: 0
    Last Post: 02-15-2006, 03:47 PM
  7. [SOLVED] count function in pivot table
    By Holly in forum Excel General
    Replies: 1
    Last Post: 08-11-2005, 07:05 PM

Tags for this Thread

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