How to Hide Zero Values in Excel Chart (5 Easy Ways)

Zero values often create difficulties while visualizing data in a chart. Here are 5 effective methods to hide these values from Excel charts. We will use the sample dataset below to illustrate the methods.

Sample Data


Method 1 – Using the Filter Command to Hide Zero Values in an Excel Chart

Steps:

  • Select the entire dataset. We will select the cells in the range B4:C9.
  • Go to the Insert tab.
  • From the Chart group, select Recommended Charts.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Select any chart of your preference. We will select the Clustered Column chart.
  • Click OK.
  • The chart will be added to the dataset.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Right-click on the chart.
  • From the available options, select Add Data Labels.

5 Handy Methods to Hide Zero Values in Excel Chart

  • You will find that a zero value is present in your chart.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Go to the Home tab.
  • Navigate to the Editing group.
  • Select Sort & Filter.
  • From the drop-down options, select the Filter command.
  • A filter option will be added to the header rows.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Select the filter option of the header row that contains the zero value.

5 Handy Methods to Hide Zero Values in Excel Chart

  • From the filter dialogue box, go to the Number filters.
  • Uncheck the box beside the Zero option.
  • Select OK.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Our chart is free of zero values.

5 Handy Methods to Hide Zero Values in Excel Chart


Method 2 – Formatting Data Labels to Hide Zero Values in an Excel Chart

Steps:

  • Select the entire dataset. The selected data is in the cell range of B4:C9.
  • Go to the Insert tab.
  • Select the Recommended Charts tab in the Chart group.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Select any chart that suits your needs. We will go with the Clustered Column chart.
  • Click OK.
  • The chart will be included in our dataset.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Right-click the chart.
  • Choose Add Data Labels from the list of options.

5 Handy Methods to Hide Zero Values in Excel Chart

  • There’s a zero value in our chart.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Right-click the zero value.
  • Select Format Data Labels from the available options.
  • The Format Data Labels dialogue box will appear to the right of the screen.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Select the Label Options.
  • Click on the Number option.
  • Under the Category box, change the number category to Custom.
  • Type the following in the Type box
#””

5 Handy Methods to Hide Zero Values in Excel Chart

  • The zero value has been removed from your chart.

5 Handy Methods to Hide Zero Values in Excel Chart


Method 3 – Customizing the Cell Format to Hide Zero Values

Steps:

  • Select the dataset containing the zero value.
  • Go to the Home tab.
  • Go to the Number group.
  • Click on the small arrow sign to the right bottom corner of the group. The Format Cells dialogue box will appear on the screen.

5 Handy Methods to Hide Zero Values in Excel Chart

  • From the Format Cells dialogue box, select the Number tab.
  • Choose the Custom option.
  • Insert the following under Type:
0,0;;;
  • Click OK.

5 Handy Methods to Hide Zero Values in Excel Chart

  • The zero value will vanish from your dataset.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Select the entire dataset.
  • Click on the Insert tab.
  • Navigate down to the Chart option.
  • From the Chart group, click on the Recommended Charts tab.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Choose a chart of your choice. We will select the Cluster Column chart.
  • Click OK.
  • The graph will be included in our dataset.

5 Handy Methods to Hide Zero Values in Excel Chart

  • Right-click on the graph.
  • Pick Add Data Labels from the menu of choices.

5 Handy Methods to Hide Zero Values in Excel Chart

  • The chart does not contain any zero value.

5 Handy Methods to Hide Zero Values in Excel Chart


Method 4 – Applying the Replace Command to Hide Zero Values in an Excel Chart

Steps:

  • Select the dataset containing the zero value.
  • Go to the Home tab and the Editing group.
  • Click on the Find & Select tab.
  • From the drop-down options, select the Replace command. The Find and Replace dialogue box will be on the screen.

5 Handy Methods to Hide Zero Values in Excel Chart

  • In the dialogue box, input 0 in the Find what box.
  • Put the following in the Replace with box:
=NA()
  • Click Replace.
  • Click on the Find Next tab.
  • Continue until the zero value is replaced by the NA function.

5 Handy Methods to Hide Zero Values in Excel Chart

  • The zero value is replaced by #N/A.

Sample Data

  • Choose the entire dataset.
  • Select the Insert tab.
  • Go down to the Chart group and select the Recommended Charts option.

Sample Data

  • Choose the chart of your choice from the recommended charts. We will choose the Cluster Column chart.
  • Click OK.

Sample Data

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

Sample Data

  • The #N/A value is added in place of the zero value.

Sample Data


Method 5 – Use the MIN Function to Hide Zero Values

Steps:

  • Select the D5 cell and insert the following formula
=IF(MIN(C5:C5)=0,NA(),MIN(C5:C5))
  • Hit Enter.

Sample Data

  • The minimum value is added to the cell.

Sample Data

  • Move the cursor down to the last data cell.
  • The #N/A value will be added in place of the zero value.

Sample Data

  • Select the first and the last column of the dataset.
  • Click on the Insert tab.
  • Select the Recommended Charts option from the Chart group.

Sample Data

  • We will select the Custer Column chat. You can choose any chart.
  • Select OK.

Sample Data

  • Right-click on the chart representing our dataset.
  • From the list available, select Add Data Labels.

Sample Data

  • The zero value in our chart is replaced by #N/A.

Sample Data


Download the Practice Workbook


Related Articles


<< Go Back to Customize Excel Charts | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Adnan Masruf
Adnan Masruf

Adnan Masruf, holding a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, plays a pivotal role as an Excel & VBA Content Developer at ExcelDemy. His deep passion for research and innovation seamlessly aligns with his dedication to Excel. In this capacity, Masruf not only skillfully addresses challenging issues but also exhibits enthusiasm and expertise in gracefully navigating intricate situations, underscoring his steadfast commitment to consistently delivering exceptional content. His interests... Read Full Bio

5 Comments
  1. And how to how to hide blank/ zero values from a graph in excel second axis?

  2. I want to how to hide blank/ zero values from a graph in excel but in a serie that is in the second axis. How can I do that?

    • Reply Avatar photo
      Musiha Mahfuza Mukta Jun 21, 2023 at 3:22 PM

      Hello Daniel. You can do this by using the Find & Replace feature of Excel. From the Home tab >> under Editing group >> go to Find & Select option >> choose Replace. Then you will see the Find and Replace dialog box. Write 0 in Find what box >> write =NA() in Replace with box >> press in Find Next button >> if the cell has 0 value then press Replace button >> otherwise press Find Next.
      In this way change all the 0 values into =NA(). Don’t press Replace All as there may have numeric 0 with the numbers.
      Now insert your chart. You will get both the axis have no zero values. Below, I have attached an image where I used two axis and remove zero value from both axis.

      If you still face any problem then please provide us your worksheet in Exceldemy Forum.

  3. No.
    When I choose the data to plot in the secondary axis, the zeros continue appearing.
    See: https://prnt.sc/ZiMHb7ILcOP8

    • Reply Avatar photo
      Musiha Mahfuza Mukta Jun 21, 2023 at 6:02 PM

      Here you must use IFERROR function to get blank cell for null values. Again, you need to apply formula like if there is no data then the date will be blank also.

      You must use Date format as Horizontal axis. Then you will get the chart auto updated up to valued cells. Double-click on Horizontal axis >> from Format Axis window (right side of Excel sheet) >> Axis Options >> Axis Type >> check Date axis.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo