ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Can I prevent a #DIV/0! error from plotting on a chart (https://www.excelbanter.com/charts-charting-excel/35510-can-i-prevent-div-0-error-plotting-chart.html)

CTarantino

Can I prevent a #DIV/0! error from plotting on a chart
 
Is it possible to force an error (like #DIV/0!) to plot as if there was no
information in the cell? It seems like the default is to plot the error as a
zero.

Jon Peltier

Text values (including "") and most errors are plotted as zero. If you
can detect the error in a formula, convert it to #N/A, and many chart
types will just interpolate past the missing point.

=IF(ISERROR(A1/A2),NA(),A1/A2)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


CTarantino wrote:

Is it possible to force an error (like #DIV/0!) to plot as if there was no
information in the cell? It seems like the default is to plot the error as a
zero.


curious

But what if I want gaps instead of interpolation? Please advise. Thanks.

"Jon Peltier" wrote:

Text values (including "") and most errors are plotted as zero. If you
can detect the error in a formula, convert it to #N/A, and many chart
types will just interpolate past the missing point.

=IF(ISERROR(A1/A2),NA(),A1/A2)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


CTarantino wrote:

Is it possible to force an error (like #DIV/0!) to plot as if there was no
information in the cell? It seems like the default is to plot the error as a
zero.



Andy Pope

Hi,

You have to use a work around to mask the gaps.
http://www.andypope.info/charts/brokenlines.htm

Cheers
Andy

curious wrote:
But what if I want gaps instead of interpolation? Please advise. Thanks.

"Jon Peltier" wrote:


Text values (including "") and most errors are plotted as zero. If you
can detect the error in a formula, convert it to #N/A, and many chart
types will just interpolate past the missing point.

=IF(ISERROR(A1/A2),NA(),A1/A2)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


CTarantino wrote:


Is it possible to force an error (like #DIV/0!) to plot as if there was no
information in the cell? It seems like the default is to plot the error as a
zero.



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info


All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com