+ Reply to Thread
Results 1 to 3 of 3

Stop Line Graph From Showing 0 When Cell is Blank

  1. #1
    Registered User
    Join Date
    10-07-2022
    Location
    Pennsylvania
    MS-Off Ver
    2207
    Posts
    1

    Stop Line Graph From Showing 0 When Cell is Blank

    Good evening,

    I have a multiple weeks of data that I am plugging into a line graph. I wish for the graph to ignore any blank cells but it continues to plot them as 0's. IFBLANK and the Hidden and Empty Cells routes will not work.

    They will not work because my data comes from an average (8 points, averaged out, copied onto a new sheet, then placed into the graph). I have hidden the #DIV/0 error but, I assume, since the cell is not technically empty, Excel believes there is some data there and places it as zero.

    Screenshot 2022-10-07 190522.png

    Screenshot 2022-10-07 190708.png

    Screenshot 2022-10-07 190747.png

    Does anyone know how to work around this? I want my data to look nice (not with all the errors) and the graph to not show 0's where there is no data available. Thank you.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,869

    Re: Stop Line Graph From Showing 0 When Cell is Blank

    The most thorough essay I'm aware of is this one from Jon Peltier: https://peltiertech.com/plot-blank-c...-excel-charts/
    The only thing I might add relates to your desire to have both a nice looking table and a nice looking chart. After applying Peltier's principles, you may find it preferable to have two tables -- an ugly (hidden?) table for the chart to look at and a nice table for you to look at.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,070

    Re: Stop Line Graph From Showing 0 When Cell is Blank

    Change your formula to:=IFERROR(AVERAGE(C3:C10),NA()), then use conditional formatting to hide the #N/A values in table:=ISERROR([1st cell in range]).

+ 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] Showing data as a line graph
    By Marvo in forum Excel Charting & Pivots
    Replies: 17
    Last Post: 12-28-2021, 12:32 PM
  2. [SOLVED] Data showing as blank in line graph while replacing with new values
    By Pankaj jaswani in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2021, 02:20 PM
  3. Line Graph Showing Two Revenue Streams on the same line
    By Cowboys9 in forum Excel General
    Replies: 0
    Last Post: 08-12-2013, 11:23 AM
  4. Replies: 1
    Last Post: 02-18-2012, 03:20 AM
  5. Line Graph showing wrong data
    By kevin2184 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-01-2011, 10:59 AM
  6. Showing average on line graph
    By Gadgetman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2007, 04:46 PM
  7. to stop zero from showing on graph
    By natash@ in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-18-2005, 03:07 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