+ Reply to Thread
Results 1 to 3 of 3

Pivot table not showing correct values

  1. #1
    Registered User
    Join Date
    02-27-2021
    Location
    Baltimore, Maryland
    MS-Off Ver
    MS 2019
    Posts
    19

    Pivot table not showing correct values

    Hello. I have been working on my first pivot table ( with dynamic range) and it is not showing correct values as well as values I can't figure out where it comes from. This is how my pivot table should work.... when you enter a "Food ID" found on Food List sheet into Diet Log sheet "Food ID" cell all the nutrient values for that food fill the appropriate cells in that row. Then when you refresh the pivot table found in Summary sheet, the nutrient columns fill in with appropriate values.

    However, when you look at the pivot table, some of the values for a food are correct and some are not. For example, the food Water shows a value of 1 for the proteins, fibers and sugar. It should be 0. The Yogurt shows some correct values and some that are not correct. I can't figure out why.

    Also, not sure what the "blank" means. Also, not sure why and where the 291s come from although the columns correspond with the incorrect values for proteins, fiber and sugar.

    Any help and guidance is greatly appreciated

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Pivot table not showing correct values

    Hi Kozz,

    In your pivot table, you had the 'Value Field Settings' set to 'COUNT' instead of 'SUM' for a couple of items,
    hence got incorrect figures (the count of rows in your table is 291).
    The range should be dynamic, however, the formula used in the Names Range is using a
    COUNTA formula for column A. Problem here is that in column A they look emplty, but contain a formula,
    hence count expanding the table. This then also gives you the empty rows in the pivot table.
    I have updated your named range to count cell C instead from row 7 down.

    Refer to the attached file and let me know if that works for you.
    Attached Files Attached Files
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Registered User
    Join Date
    02-27-2021
    Location
    Baltimore, Maryland
    MS-Off Ver
    MS 2019
    Posts
    19

    Re: Pivot table not showing correct values

    Hello ORoos:

    Thanks for the help and especially the pivot table lesson.

+ 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] Need correct % in pivot table based off values
    By Statz in forum Excel General
    Replies: 5
    Last Post: 11-15-2019, 02:20 PM
  2. Pivot Table Cell not showing the correct count of raw data
    By faisalmit1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-02-2019, 07:21 AM
  3. Showing Values on Pivot table >0
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2018, 08:52 AM
  4. [SOLVED] My pivot table is not showing the same values as the source data
    By heytherejem in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-26-2018, 08:25 AM
  5. [SOLVED] Sumifs formula not showing correct result, one of criteria is from pivot table
    By Ishwarind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2017, 07:59 AM
  6. Pivot Table not retrieving correct values
    By Paul-NYS in forum Excel General
    Replies: 3
    Last Post: 10-08-2012, 02:16 AM
  7. [SOLVED] Pivot table not showing zero values
    By Redder Lurtz in forum Excel General
    Replies: 3
    Last Post: 09-14-2012, 10:01 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