To work around this behavior, use the appropriate method.
Method 1: All Y-Values Are Empty
To make the series visible on the chart, follow these steps:
- On the Tools menu, click Options.
- Click the Chart tab. Under Plot empty cells as, verify that the Zero check box is selected, and then click OK.
With the
Zero check box selected, empty cells are plotted as zeros.
Method 2: All Y-Values Are #N/A
To work around this behavior, use a formula in the y-axis value cells that
returns blank data instead of an error. For example, if the #N/A is the
result of the following formula
=VLOOKUP(C1,D2:E5,2)
modify the formula to the following:
=IF(ISERROR(VLOOKUP(C1,D2:E5,2)),"",VLOOKUP(C1,D2:E5,2))
This causes any errors (#N/A, #REF!, and so on) to be returned as blanks.
Data points that contain blanks for the y-axis values are displayed as
zeros on the chart, and the series is visible. The run-time error does not
appear when you access the series programmatically.