Chart & Visualization Issues

How to Create an Excel Chart from Non-Empty Cells Only

Rana GarciaRana Garcia Nov 3, 2026 869 views

Question details

The user needs to generate a chart using only the populated numeric cells within a dataset, avoiding the inclusion of thousands of blank rows.

How to Create an Excel Chart from Non-Empty Cells Only
Product
Excel
Device & OS
not provided
Scenario
Creating a clean, accurate chart from a large dataset that contains numerous empty rows interspersed with valid data.
Observed behavior
The goal is to prevent the chart from rendering gaps, dropping to zero, or displaying thousands of blank spaces, ensuring only valid data points are plotted.
Before you start

Ensure your dataset is organized with clear column headers. It is recommended to format your data range as an Excel Table so that any future data additions or removals can update your chart dynamically.

Solution 1Recommended

Filter Source Data to Exclude Blank Values

The most straightforward method to exclude blank cells from your chart is to apply a data filter to your dataset before generating the visualization.

By filtering out the blank cells, Excel automatically hides those rows. When you create a chart from filtered data, Excel's default behavior is to plot only the visible cells.

1
Apply a filter to your data

Highlight your data headers, navigate to the 'Data' tab on the ribbon, and click the 'Filter' button.

2
Exclude blank cells

Click the drop-down arrow on the column containing your numeric data. Uncheck the box labeled '(Blanks)' at the bottom of the list, then click OK.

3
Insert the chart

Select the newly filtered, visible data. Go to the 'Insert' tab and choose your preferred chart type (e.g., Column, Line, or Scatter).

4
Verify hidden cell settings

Right-click the generated chart and choose 'Select Data'. Click the 'Hidden and Empty Cells' button at the bottom left, and ensure 'Show data in hidden rows and columns' is unchecked.

Filter Source Data to Exclude Blank Values
Chart Adjustments: If you change your filter settings later, the chart will automatically update to reflect the newly visible data.
Create Dynamic Charts in WPS Spreadsheet

Easily Filter and Plot Data Using WPS Spreadsheet

WPS Spreadsheet provides robust charting and data filtering tools that make it incredibly easy to exclude blank cells and present your data clearly without rendering empty zero values.

  1. 1. Open Your Data: Launch WPS Spreadsheet and open the document containing your dataset.
  2. 2. Apply a Filter: Navigate to the Data tab, click the Filter icon, and uncheck 'Blanks' in your target column's drop-down menu.
  3. 3. Insert Chart: Highlight the visible, filtered data, go to the Insert tab, and select a chart type that suits your needs.
  4. 4. Configure Empty Cells: Right-click the chart, choose 'Select Data', and adjust the 'Hidden and Empty Cells' settings to ensure hidden blank rows are ignored.
Fully compatible with Microsoft Excel (.xlsx and .xls) file formats.Intuitive data filtering and dynamic chart plotting capabilities.Lightweight software with fast processing for large datasets with blank rows.Advanced chart customization, including precise handling of hidden and empty cells.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my Excel chart showing zero for blank cells?

By default, Excel might treat empty cells as zero depending on your chart's specific configuration. You can correct this by right-clicking the chart, selecting 'Select Data', clicking the 'Hidden and Empty Cells' button, and changing the 'Show empty cells as' setting to 'Gaps'.

Can I use formulas to ignore blank cells in a chart without filtering?

Yes, you can use the NA() function in an adjacent helper column to replace blank cells with an #N/A error (e.g., =IF(A2="", NA(), A2)). Most line and scatter charts naturally ignore #N/A values and bridge the gap between valid data points automatically.

Will my chart update automatically if I add new data later?

If you convert your source data into an Excel Table (using the Ctrl+T shortcut) before creating the chart, it will automatically include newly added rows. If the new rows contain blanks, you simply need to refresh your column filter to hide them.

How do I plot hidden data on an Excel chart?

If you prefer to keep data filtered and hidden in the spreadsheet but still want it plotted on the chart, right-click the chart, choose 'Select Data', click 'Hidden and Empty Cells', and check the box that says 'Show data in hidden rows and columns'.