How to Create an Excel Scatterplot with Empty or Formula-Based Cells
Question details
The user needs to create an accurate scatterplot from a dataset where some seemingly blank cells contain formulas, preventing the chart from plotting them as zero values.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a scatterplot from filtered or pivot-based data where some cells use formulas to return an empty text string when data is missing.
- Observed behavior
- Excel interprets the formula-generated empty strings as text, plotting them as unexpected zero points on the scatterplot instead of ignoring them.
Verify your data range to identify which cells use formulas that output empty strings ("") instead of actual numeric values.
Use the NA() Function to Exclude Data Points
Replace empty strings in your formulas with the #N/A error so the scatterplot correctly skips plotting those missing values.
Cells containing formulas are never truly blank, even if they return an empty string (""). Because Excel treats this empty string as text, the scatterplot plots it as a zero, skewing your visualization. By forcing the formula to return an #N/A error, Excel recognizes the data is missing and safely excludes it from the chart.
Select the first cell in your data column that uses an IFERROR or IF statement returning an empty string (e.g., =IFERROR(B2, "")).
Click into the formula bar and change the empty quotes "" to the NA() function. Your new formula should look like this: =IFERROR(B2, NA()).
Press Enter, then click and drag the fill handle at the bottom-right corner of the cell to apply this updated formula to the rest of your data column.
Check your scatterplot. Excel will automatically exclude the rows returning the #N/A error, ensuring only valid X and Y data points appear on the chart.

Create Professional Scatterplots Seamlessly in WPS Spreadsheet
WPS Spreadsheet provides powerful data processing and charting capabilities that handle complex formula outputs perfectly. You can manage missing data and create accurate scatterplots with ease.
- 1. Open data in WPS Spreadsheet: Launch WPS Office and open your .xlsx data file containing the formula-based dataset.
- 2. Apply the NA() adjustment: Update your data formulas to return NA() for missing values instead of empty strings.
- 3. Insert the scatter chart: Highlight your data range, navigate to the Insert tab on the ribbon, and click on the Scatter Chart icon.
- 4. Customize your visualization: Use the Chart Elements menu to adjust titles, axes, and legends for a professional finish.

Frequently Asked Questions
Why does my Excel scatterplot drop to zero when a cell looks blank?
If a cell appears blank but contains a formula returning an empty string (""), Excel treats it as a text value and plots it as a zero. You must alter the formula to return #N/A to prevent this.
Can I hide the #N/A error in my worksheet cells while keeping the chart accurate?
Yes. You can use Conditional Formatting to hide #N/A errors. Highlight your data, create a Conditional Formatting rule for errors, and set the text color to match the cell's background color (e.g., white).
Does replacing empty strings with NA() work for line charts too?
Yes, using the NA() function prevents data points from dropping to the zero axis in line charts just as it does for scatterplots.




