Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore cells on Excel line graph

I am trying to draw a line graph in Excel 2010. The y column data source has some gaps in it and I want these to be ignored for the graph. Seems to default these to zero. I know the "Hidden and Empty Cell Settings" exists, but this is only giving the option to set it to zero. Any other way to get my graph looking the way I want it

Image available once I have enough reputation!

like image 593
t0mmyw Avatar asked Aug 19 '13 15:08

t0mmyw


People also ask

How do I exclude cells in Excel from a graph?

If you want to exclude some data from a chart after it has been created, you can do so by selecting the data that you want to exclude and then deleting it. This will remove the data from the chart, but it will still be present in the worksheet. You can also use filters to hide specific data points from a chart.

Can you skip values on a graph?

No, you can't skip values in an axis. Would a logarithmic scale help?


1 Answers

if the data is the result of a formula, then it will never be empty (even if you set it to ""), as having a formula is not the same as an empty cell

There are 2 methods, depending on how static the data is.

The easiest fix is to clear the cells that return empty strings, but that means you will have to fix things if data changes

the other fix involves a little editing of the formula, so instead of setting it equal to "", you set it equal to NA().
For example, if you have =IF(A1=0,"",B1/A1), you would change that to =IF(A1=0,NA(),B1/A1).
This will create the gaps you desire, and will also reflect updates to the data so you don't have to keep fixing it every time

like image 150
SeanC Avatar answered Sep 22 '22 19:09

SeanC