Chart & Visualization Issues

Fix Excel Chart Gaps Option Disabled for Empty Cells

Maira MehtabMaira Mehtab Nov 11, 2026 869 views

Question details

The user wants to configure empty chart cells to display as gaps, but the setting is unavailable or greyed out.

How to Fix the Excel Chart Gaps Option Being Disabled
Product
Excel
Device & OS
not provided
Scenario
Attempting to show gaps for missing data or future months in an Excel chart.
Observed behavior
The 'Gaps' setting for empty chart cells is disabled for several stacked and area chart types.
Before you start

Verify your current chart type by right-clicking your chart and selecting 'Change Chart Type', as some specialized charts do not support the gaps feature by design.

Solution 1Recommended

Change to a Regular Line Chart

The Gaps option is disabled by design for Stacked Line and Stacked Area charts. Switching to a standard Line chart enables the feature.

Excel does not support displaying gaps in stacked charts because it disrupts the cumulative plotting logic. To show a line only through the current month with gaps for future months, you must use a regular unstacked chart.

1
Change Chart Type

Right-click your existing chart and select 'Change Chart Type' from the context menu.

2
Select Standard Line

Navigate to the 'Line' category and choose the standard 'Line' chart (avoid Stacked Line or 100% Stacked Line), then click 'OK'.

3
Open Data Settings

Click on your chart, go to the 'Chart Design' tab on the ribbon, and click 'Select Data'.

4
Configure Empty Cells

Click the 'Hidden and Empty Cells' button in the bottom left corner of the dialog box, select 'Gaps', and click 'OK'.

Change to a Regular Line Chart
Chart Updated: Your chart will now properly display gaps where data is missing instead of dropping the line to zero.
Manage Charts Easily

Create and Customize Charts Smoothly with WPS Spreadsheet

WPS Spreadsheet provides a highly compatible and user-friendly interface for handling data visualizations. Easily manage how empty cells and hidden data are displayed without dealing with confusing disabled options.

  1. 1. Insert a Chart: Open your data in WPS Spreadsheet, select your data range, and go to the 'Insert' tab to choose a standard Line chart.
  2. 2. Select Data Source: Right-click the newly inserted chart and choose 'Select Data' from the context menu.
  3. 3. Configure Empty Cells: Click 'Hidden and Empty Cells' in the dialog box and select 'Show empty cells as: Gaps' to apply the setting.
Fully compatible with Microsoft Excel (.xlsx) formatsIntuitive chart design and data selection toolsEasily configure hidden and empty cells displayFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why is the 'Show empty cells as gaps' option greyed out?

Excel disables this option for specific chart types like Stacked Line, 100% Stacked Line, Stacked Area, and 100% Stacked Area charts. It only works with standard unstacked charts like a regular Line or Scatter chart.

How do I stop my Excel line chart from dropping to zero?

If your data source contains formulas returning blank text (""), Excel treats them as zeros. To fix this, change your formula to return NA() instead, for example: =IF(B2="", NA(), B2).

Can I show gaps in a Stacked Area chart?

No, Excel does not support displaying gaps in Stacked Area or Stacked Line charts. You must either change the chart type to a regular Line/Area chart or restructure your data to avoid blank cells entirely.