Sometimes in excel a formula will turn blank cells into zeros, and this will be plotted in a chart even though its not actual data.
![](https://keatraining.com/wp-content/uploads/2023/05/image-31-1024x445.png)
There are two methods for removing this:
Method 1
Select the whole table and then on the Home tab go to Find & Select > Replace
![](https://keatraining.com/wp-content/uploads/2023/05/image-32-1024x328.png)
Leave the Find what: box empty and in the Replace with: box type #N/A, then click Replace All
![](https://keatraining.com/wp-content/uploads/2023/05/image-33.png)
This will turn all the blank cells in the table into #N/A. The results of the formula instead of being 0 will be #N/A. Excel charts do not plot #N/A so this will stop those values from being plotted in the chart.
![](https://keatraining.com/wp-content/uploads/2023/05/image-34-1024x513.png)
Method 2
Change the formula:
=IF(original_formula=0,NA(),original_formula)
Wrap the original formula inside an IF formula. If the result of the original formula is equal to zero then give an NA() instead, and if not then give the result of the original formula.
![](https://keatraining.com/wp-content/uploads/2023/05/image-35-1024x267.png)
This will turn all the zeros from the formula into #N/A and will stop those values from being plotted in the chart.
![](https://keatraining.com/wp-content/uploads/2023/05/image-36-1024x459.png)
Remove gaps
To remove the gaps in the chart, right click on the chart and go to Select Data…
![](https://keatraining.com/wp-content/uploads/2023/05/image-37.png)
Go to Hidden and Empty Cells
![](https://keatraining.com/wp-content/uploads/2023/05/image-38-1024x659.png)
Change Show empty cells as: to Connect data points with line
![](https://keatraining.com/wp-content/uploads/2023/05/image-39.png)
This removes the gaps and joins the data points on either side of the gap.
![](https://keatraining.com/wp-content/uploads/2023/05/image-40-1024x428.png)