How to Hide Zero Values in Excel Pie Chart (3 Simple Methods)

In the sample dataset, we have a list of major subjects and the number of students who have taken them. No students have taken Human Resources and Accounting. We’ll prepare a pie chart which hides these values.

hide zero values in excel pie chart


Method 1 – Use the Filter Feature to Hide Zero Values in a Pie Chart

Steps:

  • Select the entire dataset.
  • Go toData.
  • Select Filter.

  • Excel has added drop-down lists for each column.

hide zero values in excel pie chart

  • Go to Insert.
  • Select pie charts.
  • Select the 2-D Pie Chart.

  • Human Resources and Accounting subjects are still there in the Legend.

hide zero values in excel pie chart

  • Select the drop-down box for the column % of Students.

  • Uncheck the box for 0.

hide zero values in excel pie chart

  • Excel will hide the zero values from the pie chart.

Read More: Excel Pie Chart Labels on Slices: Add, Show & Modify Factors


Method 2 – Create a Table to Hide Zero Values in a Pie Chart

Steps:

  • Select the entire dataset.
  • Press Ctrl + T to bring up Create Table.
  • Check the box for My table has headers since there are headers in the columns.
  • Click OK.

hide zero values in excel pie chart

  • Excel will create a table and has applied the Filter option in the table.

  • Go to Insert.
  • Select the pie charts. We picked a 2D Pie Chart for convenience.

hide zero values in excel pie chart

  • Human Resources and Accounting subjects are still there in the Legend.

  • Select the drop-down box for the column % of Students.

hide zero values in excel pie chart

  • Uncheck the box for 0.

  • Excel will hide the zero values from the pie chart.

hide zero values in excel pie chart

Read More: Add Labels with Lines in an Excel Pie Chart


Method 3 – Format the Data Labels to Hide Zero Values in a Pie Chart

Steps:

  • Insert a pie chart.

  • Right-click on the chart.
  • Select Add Data Labels.

hide zero values in excel pie chart

  • Excel will add data labels.

  • Select the data labels.
  • Change the Fill color.

hide zero values in excel pie chart

  • Notice that there are two 0% values.

  • Select the Data labels.

hide zero values in excel pie chart

  • Right-click on the labels.
  • Select Format Data Labels.

  • Go to Label Options.
  • Select the Number Category as Custom.

hide zero values in excel pie chart

  • Use the following format:
0.00%;;;
  • Click Add.

  • Excel will hide the zero values.

hide zero values in excel pie chartRead More: How to Edit Pie Chart in Excel


Things to Remember

  • You have to filter the dataset. Otherwise, Excel will not hide the zero values.
  • You can even draw a 3D pie chart if you wish.
  • When you format data labels, the categories having zero values will remain in the Legend.

Download the Practice Workbook


Related Articles


<< Go Back To Edit Pie Chart in Excel | Excel Pie Chart | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo