Jump to content


Can chart display specified text instead of zero?

  • Please log in to reply
2 replies to this topic

#1 LMoran



  • Members
  • Pip
  • 2 posts

Posted 12 December 2016 - 08:11 PM

I have a compliance spreadsheet that feeds into a bar chart that sums the total number of observations and the number of compliant observations. I divide these to get a compliance %. On the spreadsheet, I have specified that I want to see the words "no data", rather than the error message, when the 'Observed' field equals zero. On my chart, that data point still shows as 0%. What I would like to see on the chart is "no data" if there are zero observations, and 0% only if there are observations but none are compliant.


The reason that I am asking is that I want to be able to distinguish between no data being submitted and a lack of compliance. Perhaps there is a better way to do that...so any and all suggestions are welcome!

I have attached a sample of my data.





#2 Jonathan


    Forums Administrator

  • Administrators
  • 888 posts

Posted 14 December 2016 - 12:30 PM

Hi LMoran,


I think you will be able to do this by enabling data labels on your chart and setting them to display a Value from cells. If you choose the same cells that contain your "No Data" text, it should appear on the chart as required.


You can see how to enable data labels in the video lesson: Essential Skills Lesson 5-18 Add data labels to a chart.

For a walkthrough of how to set data labels from a range of cells, see the video tutorial: Essential Skills Lesson 5-19 Add data labels from a range.


I have attached an example workbook:


Attached File  DataLabels.xlsx   14.42KB   154 downloads



If you would prefer to hide the numbers for the bars that do have values, you could do this by placing the 'No Data' text in a separate column and using that for the labels.


I hope this is what you were looking for, but feel free to reply if you need any more help with this.

Jonathan is part of the professional team who answer Excel-related questions posted on the ExcelCentral.com forums.
Jonathan also tests our courses prior to publication and has worked on all of our ten world bestselling Excel books for Excel 2007, Excel 2010, Excel 2013, Excel 2016 for Windows and Excel 2016 for Apple Mac. Jonathan has also worked on over 850 video lessons for or video courses covering Excel 2007, Excel 2010 and Excel 2013.
As well as extensive Excel knowledge, Jonathan has worked in the IT world for over thirteen years as a programmer, database designer and analyst for some of the world's largest companies.

#3 LMoran



  • Members
  • Pip
  • 2 posts

Posted 14 December 2016 - 08:18 PM

Perfect! I had no idea it was so simple. Thank you!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users