Skip to main content

How to remove zero values from Office Excel graph / chart?

 

No matter in version of MS Office you are working with, this simple trick will always work. Lets get to the topic straight.

Here is a table I have for which I need to draw a graph. We have zero values for two cities - Narnia and Atlantis (Assuming that everyone is wiped out in zombie apocalypse).

City

Population in Millions

Chennai 243
Bangalore 527
Narnia 0
Atlantis 0
Mumbai 457
Delhi 23
Kolkata 10

Here is the typical graph we generated in excel for the above table. One thing that looks un-presentable in this chart is the zero values at the bottom of the pie chart.

How to remove zero values from Office Excel graph or chart - With Zero Values

Here are the steps to remove the zero values.

  • Right-click on any of the data labels (the numbers representing the population here) and select Format Data Labels.
  • A Pop-Up for Format Data Labels will open. In that navigate to Number tab.

    How to remove zero values from Office Excel graph or chart - Format Data Labels
  • In Number tab under Category, select Custom and enter the Format Code as below

0;;;

How to remove zero values from Office Excel graph or chart - Removing Zero Values

  • Click Add and Close the window. Now your graph will look like this.

How to remove zero values from Office Excel graph or chart - Without Zero Values

The format code we had seen is nothing but of the Syntax as below

Positive Value;Negative Value;Zero Value;Text

By making the negative value, zero value and text as blank we are telling the excel to ignore those type of values.

Hope this post comes handy when you are in urgent need to find the above said solution. If you are in a rush don't forget to bookmark this page and add a comment later. Thanks.

Comments

Post a Comment

Popular posts from this blog

How to use JCalendar date picker in your Java Swing Applications with NetBeans

If you are one of those JAVA beginners like me who wants to implement a datepicker module in your experimental/business critical application developed with NetBeans IDE , then this for you. Let me share how I figured out to do so in simple steps with a sample code. Assuming that you have your Java Swing application ready, you will need to download the JCalendar package from here http://www.toedter.com/en/jcalendar/index.html . The page lists out various modules available with descriptions like JDateChooser, JCalendar, JYearChooser, JMonthChooser, JDayChooser, JSpinField and JLocaleChooser. The one I chose for my app was JDateChooser. After downloading and opening the ZIP file, you can see a whole set of files in it. The one we need is in the folder ‘lib’ with the name jcalendar-1.4.jar (this is the latest version while I was writing this). extract that file to your folder of comfort. The jar file you just extracted contains everything you need to implement the date picker in y

Configuring Google Cardboard to work with Ant VR Headset for Lenovo Vibe K4 Note

Let me make it short. Open the Google Cardboard app from your Lenovo Vibe K4 Note. Go to Switch Viewer option and scan the following QR code. This makes Google Cardboard app to work perfectly with Ant VR Headset. Thanks to this Quora thread . Note : Dont use the inbuilt VR mode and Google Cardboard together. VR mode tries to make the whole android experience viewable through VR headset whereas Google Cardboard only produces VR experience for selective apps with Cardboard compatibility. So they dont work at the same time. Nothing goes wrong even if you activate them together, you only see VRception. Dont use default Ant VR app As mentioned in the Quora thread, dont use Ant VR app. It looks fishy and amateurish. May be its even a spying venture of PLA. who knows. Difference between 360 and 3D videos? If you open 360 videos from Google Cardboard you can watch selected 360 videos (like this one ), where you can rotate your head and look everywhere within t

Honda CB Twister India : A Quick Review

I came across a dozen reviews of Honda CB Twister on web and finally decided to buy it. I owned it on last March, 2012. It costed around ₹63,000 with disc brakes, alloy wheels, road tax and stuffs. The reason why I have included ‘India’ in title is because Twister is also available as Honda CB110 in other countries. Here is my short account on my experience with Twister. Mileage Mileage is a very essential part of my riding experience. I travel around 200 Kms every week, so fuel expenses shouldn't make me bankrupt. Twister’s 60 – 65 KmpL mileage is one of the factors that influenced my choice while buying. Anyway in advertisements its claimed to be 70KmpL.   Engine Nowadays its a increasing trend to see Indians going for high end bikes, but in my case I am good with medium performance engines. Twister’s 110CC engine makes riding smooth up to 55Kmph speed, beyond that Honda Twister turns in to a Honda Vibrator. Considering the fact that I’m not an adrenalized rider,