How to Create an Excel Chart from Non-Empty Cells Only
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.

- 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.
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.
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.
Highlight your data headers, navigate to the 'Data' tab on the ribbon, and click the 'Filter' button.
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.
Select the newly filtered, visible data. Go to the 'Insert' tab and choose your preferred chart type (e.g., Column, Line, or Scatter).
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.

Use an Excel Table for Dynamic Updating
Converting your dataset into an Excel Table before filtering ensures that your chart automatically accommodates new non-empty data added at the bottom.
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. Open Your Data: Launch WPS Spreadsheet and open the document containing your dataset.
- 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. Insert Chart: Highlight the visible, filtered data, go to the Insert tab, and select a chart type that suits your needs.
- 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.

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'.




