Microsoft KB Archive/191968

= XL98: Area Charts Ignore "Empty Cells Plotted As" Setting =

Article ID: 191968

Article Last Modified on 9/11/2002

-

APPLIES TO


 * Microsoft Excel 98 for Macintosh

-



This article was previously published under Q191968





SYMPTOMS
In Microsoft Excel, an area series in a chart ignores the "Empty cells plotted as" setting on the Chart tab of the Preferences dialog box.



CAUSE
The options under the "Empty cells plotted as" setting are designed to be used with line, x-y (scatter), and radar charts. Chart types such as pie, doughnut, column, and bar do not usually benefit from these settings. Also, even though area charts are very similar to line charts, changing these settings has no effect on the appearance of an area series in a chart.



WORKAROUND
To work around this behavior, you can interpolate missing data points and format the area chart; the result is similar to the way the Interpolated option works with other charts.

To see an example that demonstrates the workaround, follow these steps:

 Type the following data in a new worksheet:

A1: 1

A2: 2

A3:

A4:

A5: 5

 Create an area chart based on the data in step 1.

Your area chart drops off to the x-axis between the third and fourth data points. In cell B1, type the following formula:

=($A$5-$A$2)/(ROW($A$5)-ROW($A$2))

This formula calculates the interpolation step value between the two known values that lie at the ends of the missing value (2 and 5). In cell A3, type the following formula:

=A2+$B$1

 Use the fill handle to fill the formula down to cell A4.</ol>

The resulting filled data is: <pre class="fixed_text">  A1: 1 A2: 2 A3: 3 A4: 4 A5: 5 Your area chart does not drop down to zero for the missing data points.

<div class="moreinformation_section">

MORE INFORMATION
The "Empty cells plotted as" setting on the Chart tab in the Preferences dialog box allows you to determine how Excel handles empty cells that are contained within a range of data. For example, if you create a line chart using the following data <pre class="fixed_text">  A1: 1 A2: 2 A3: A4: A5: 5 the empty cells are plotted according to the option that you specify.

The following table explains how Excel plots the example range A1:A5 for each option that you can choose. <pre class="fixed_text">  This setting   Has this result

Not Plotted   The line exists from 1 to 2 and a single point exists at 5. There is a gap in the line where the values from A3 and A4 would normally appear.

Zero          The line proceeds from 1 to 2, and then to zero (A3 and                  A4 are interpreted as zero). The line then proceeds to 5.

Interpolated  The line proceeds from 1 to 2, "bridges" the gap at 3 and 4, and then proceeds to 5.

Additional query words: XL98

Keywords: kbnofix kbchart kbprb KB191968

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.