Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Controlling the Plotting of Empty Cells.
by Allen Wyatt
(last updated December 19, 2015)
When you create a chart from a data table, Excel does its best to translate the numeric values into data points on a chart, according to the specifications you provide. One area where Excel doesn't quite know what to do, however, is empty cells. If a cell is empty, it could be for any number of reasons—the value isn't available, the value isn't important, or the value is really zero.
You can instruct the program how you want it to treat empty cells by following these steps:
Figure 1. The Select Data Source dialog box.
Figure 2. The Hidden and Empty Cells dialog box.
The option buttons at the top of the Hidden and Empty Cell Settings dialog box (step 5) provide the following three settings:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6289) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Controlling the Plotting of Empty Cells.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Need to change the color of different parts of your chart? It's easy to do when you apply the technique described in this ...Discover More
If you need to create a chart that uses logarithmic values on both axes, it can be confusing how to get what you want. This ...Discover More
A common place to use Excel charts is in your PowerPoint presentations. How you paste those charts into the presentation can ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.