Show a No Data Message in an Excel Pie Chart When Values Are Zero
Question details
Display a message instead of an empty pie chart when its source values are zero or blank.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A pie chart uses a range that may contain no nonzero values, and the user wants to avoid displaying an empty chart.
- Observed behavior
- When all source values are zero or blank, the desired display is a No Data to Display message rather than an empty pie chart.
Identify the numeric range used by the pie chart and an unused cell for the message formula. Pie charts are intended for nonnegative values, so check that the source range does not contain negative numbers.
Link a No Data message to a helper cell and hide the empty chart
Use a formula to update the message automatically, then manually hide or show the chart as the data changes.
In an unused cell such as E1, enter =IF(SUM(B2:B5)>0,"","No Data to Display"). Replace B2:B5 with the pie chart's nonnegative numeric source range.
On the Insert tab, choose Text Box and draw it on the worksheet outside the chart object, where it can remain visible when the chart is hidden.
Select the text box border, click the formula bar, and enter =Sheet1!$E$1. Replace Sheet1 and E1 with the actual sheet name and helper cell, then press Enter.
When the source values are all zero or blank, select the chart and use Home > Find & Select > Selection Pane. Select the visibility icon next to the chart to hide it; leave the linked text box visible.
When a positive value appears, the message becomes blank. Open the Selection Pane again and select the chart's visibility icon to show it.

Show a No Data message in WPS Spreadsheets
In WPS Spreadsheets, replace an empty pie chart with a text box when the source values are zero or blank. Recreate the chart when positive data returns.
- 1. Open the workbook: Open WPS Spreadsheets and use File > Open to select your workbook.
- 2. Check the source values: Review the cells used by the pie chart. If every value is zero or blank, select the empty chart and press Delete.
- 3. Add the message: Choose Insert > Text Box, draw a text box in the chart area, and type No Data to Display.
- 4. Recreate the chart when needed: When positive values return, delete the text box, select the source data, and choose Insert > Chart > Pie to create the chart again.

Frequently Asked Questions
Why does my Excel pie chart show no slices?
A pie chart needs positive values to display slices. Check its source cells for positive numbers; a range containing only zeros or blanks has no proportions to plot.
Can the No Data message update automatically?
Yes. Enter =IF(SUM(B2:B5)>0,"","No Data to Display") in a helper cell and link a worksheet text box to that cell through the formula bar. Adjust the range to match your nonnegative source values.
Will the formula also hide the pie chart?
No. Use Home > Find & Select > Selection Pane to hide or show the chart manually, or use VBA to automate its visibility.
Why should the message text box be outside the chart?
A text box inside the chart may be hidden with the chart. Insert the text box on the worksheet and link it to the helper cell so it remains visible when you hide the chart.




