Chart & Visualization Issues

How to Connect Chart Lines Across Missing Data in Excel

Nimra MalikNimra Malik Oct 22, 2026 873 views

Question details

The user wants to connect a chart line across blank cells without calculating missing values manually, and needs a way to visually mark the generated line segments bridging the data gaps.

How to Connect Chart Lines Across Missing Data in Excel
Product
Excel
Device & OS
not provided
Scenario
Creating a continuous line chart when the primary data series contains intermittent gaps or missing values.
Observed behavior
The chart naturally breaks at missing data points, but the goal is to span the known points automatically and highlight the bridged sections with a distinct color.
Before you start

Verify that your chart is configured as a line chart or scatter plot with straight lines, and ensure the missing values in your dataset are truly empty cells.

Solution 1Recommended

Connect Data Points Using Hidden and Empty Cells Settings

Use the built-in chart settings to automatically bridge gaps caused by empty cells, creating a continuous line.

Excel provides an integrated setting to handle missing data without requiring you to manually estimate or type in values. By adjusting how the chart processes empty cells, you can force the line to connect the points that exist on either side of the gap.

1
Select the chart

Click anywhere on your line chart to activate the Chart Tools on the ribbon.

2
Open Select Data Source

Navigate to the Chart Design tab at the top and click on the 'Select Data' button.

3
Access Hidden and Empty Cells

In the Select Data Source dialog box, locate and click the 'Hidden and Empty Cells' button in the lower-left corner.

4
Choose to connect points

Select the radio button labeled 'Connect data points with line' and click OK to apply the changes to your chart.

Connect Data Points Using Hidden and Empty Cells Settings
Continuous Line Achieved: Your chart will now seamlessly draw a line across the blank cells spanning from the last known point to the next available point.
Efficient Data Visualization

Bridge Chart Data Gaps Seamlessly in WPS Spreadsheet

WPS Spreadsheet offers intuitive chart configuration tools to effortlessly handle missing data in line charts. You can directly connect data points across empty cells in just a few clicks.

  1. 1. Open your workbook: Launch WPS Office Spreadsheet and open the document containing your broken line chart.
  2. 2. Activate Chart Tools: Click on the chart to bring up the Chart Tools tab on the top menu ribbon.
  3. 3. Open the Select Data menu: Click on 'Select Data' and then select the 'Hidden and Empty Cells' option located in the dialog box.
  4. 4. Connect the missing points: Choose 'Connect data points with line' and click OK to instantly fix your line chart.
100% compatible with Microsoft Excel (.xlsx) file formats and chart elements.Intuitive chart tools specifically designed for quick and seamless data visualization.Lightweight, fast, and completely free alternative for your daily office tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel line chart drop to zero for blank cells?

By default, Excel may treat empty cells as zero values depending on your chart configuration. To fix this, click the chart, go to 'Chart Design' > 'Select Data' > 'Hidden and Empty Cells', and change the setting from 'Show empty cells as: Zero' to 'Connect data points with line' or 'Gaps'.

Can I use #N/A to bridge gaps in an Excel line chart?

Yes, if a cell evaluates to the #N/A error (for instance, by inputting =NA() in the cell), Excel line charts will automatically connect the points on either side of it rather than dropping the line to zero or leaving a blank space.

How do I show missing data as a dashed line?

You can achieve this by creating a secondary data series that includes only the points immediately surrounding the missing data. Once added to the chart, right-click this specific segment, choose 'Format Data Series', and change the 'Dash type' to a dashed line.