+ Reply to Thread
Results 1 to 4 of 4

Incorrect data in Pivot table

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    Russian Federation
    MS-Off Ver
    Excel 2010
    Posts
    2

    Incorrect data in Pivot table

    Hello all!
    I have a question. Due to my work I have to analyze quite big excel files, create pivot table and analyze them. Recently I encountered this feature:
    Suppose I have this sample table:
    No. Qty
    0
    1 10
    1 10

    If I create pivot table, it will show that Sum for "Qty" for No. 1 is 2.
    If I remove the line with null Qty and refresh pivot table, it will again show that Sum for "Qty" for No. 1 is 2.
    If I create new pivot table then it will show that Sum for "Qty" for No. 1 is 20 (the right one).

    I attached sample Excel file with two kinds of pivot tables.

    Is it a normal bevaviour of Excel or this is a bug? Does anyone encounter it before? Why there is no error messages or warning, I thought I could trust Excel pivot tables, now it seems that it can distort results without any warnings in some case.

    Maybe somewhere is written that I cannot use pivot table for null data, if it is the case, where can I find it and all restrictions like that?

    Thanks in advance!
    Last edited by JBeaucaire; 02-16-2013 at 09:54 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Incorrect data in Pivot table

    Hi
    in sheet 2 the field setting for the data field is set to "Count" instead of Sum. Just change this and it will be OK

    BTW your sheet triggers a Security error relating to Data Connections. I didn't enable this for Security reasons

  3. #3
    Registered User
    Join Date
    02-14-2013
    Location
    Russian Federation
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Incorrect data in Pivot table

    Pepe Le Mokko, thank you for your respond, it now works just fine!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Incorrect data in Pivot table

    For safety, the attachment in post #1 that was generating security alerts was removed.

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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