+ Reply to Thread
Results 1 to 5 of 5

Sum in a pivot table of blank cells returns zero and not blank ... bad in pivot chart

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    Nowhere
    MS-Off Ver
    Excel 2016
    Posts
    4

    Sum in a pivot table of blank cells returns zero and not blank ... bad in pivot chart

    Hello

    We use a pivot chart to display the forecast with the achieved sells.
    Obviously for the future quarters there is no achieved sells yet and therefore the cells in the table are empty.
    But the "SUM" function in the pivot table convert the sum of blank cells into a zero.
    The bad is when you plot it on a chart, actually we would like to don't have any value on the chart for the achieved sells for the future quarters but just the forecast.
    Until now I couldn't find any solution and just to prevent it, we don't look for a solution of the type: "Copy paste your date in another spread sheet, correct the data and create a plain excel chart", this isn't a solution, this is more work every time that we want to check this chart. The solution must work directly in the excel table, pivot table and pivot chart.

    SumOfBlanksToZero.png
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Sum in a pivot table of blank cells returns zero and not blank ... bad in pivot chart

    I would hardcode your pivot with sumifs formulas and turn 0 into #n/a
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-01-2013
    Location
    Nowhere
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Sum in a pivot table of blank cells returns zero and not blank ... bad in pivot chart

    Thank for the reply, this was exactly what I didn't want as mentioned in the original post:
    Quote Originally Posted by spamme View Post
    "Copy paste your date in another spread sheet, correct the data and create a plain excel chart"

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Sum in a pivot table of blank cells returns zero and not blank ... bad in pivot chart

    If you never actually have a 0 achieved value, you could use a simple calculated field using =if(achieved=0,"",achieved) and then set the pivot table option to show error values as blank.
    Rory

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Sum in a pivot table of blank cells returns zero and not blank ... bad in pivot chart

    Rory's solution is probably better however

    "Copy paste your date in another spread sheet, correct the data and create a plain excel chart"

    1) my solution does not copy or paste, it takes the data from the table and analyses it.
    2) The chart would just redraw itsself once it got refreshed.
    3) If future quarters were required , it coul dhave the ranges change dynamically to accomodate this, although quarters without years would make this impossible.

    So exactly what was wrong with the solution, I do not see that it is exactly what you didn't want?


    I think that your reply is a little rude!

+ 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. Pivot table shows my blank cells as 0, how do i leave them blank
    By ACrossley1 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 08-21-2019, 03:07 AM
  2. Removing Blank Cells in the Pivot Table. (Blank) - Out of Range Cells
    By satishmen in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-09-2019, 06:30 AM
  3. [SOLVED] Pivot Table / Chart Ignore / Exclude blank "" cells created using IF formula
    By randomreflex in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-23-2018, 08:59 AM
  4. Pivot table in blank cells it says blank.... i want it empty
    By appell in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-27-2014, 09:43 AM
  5. Pivot table picks up empty cell from formula which returns BLANK
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2013, 08:37 PM
  6. Pivot Table Field - Blank Cells without text "(blank)"
    By WRX in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-19-2013, 12:10 PM
  7. How to deal with blank cells for Pivot Chart
    By DKDiveDude in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-03-2005, 08:08 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