ExcelRibbon.Tips.Net ExcelTips (Ribbon Interface)

Shading a Cell Until Something is Entered

Please Note: This article is written for users of the following Microsoft Excel versions: 2007 and 2010. 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: Shading a Cell Until Something is Entered.

When creating a worksheet in which information must be entered into specific cells, you may find it helpful to shade the cells if they are blank, but have the shading removed if something is entered into the cell. You can easily accomplish this task by using the conditional formatting feature in Excel. Follow these steps:

  1. Select the cells to which the conditional formatting should apply.
  2. Display the Home tab of the ribbon.
  3. Click the Conditional Formatting tool in the Styles group. Excel displays a list of conditional formatting options.
  4. Choose New Rule. Excel displays the New Formatting Rule dialog box.
  5. In the list of rule types, select Use a Formula to Determine which Cells to Format. (See Figure 1.)
  6. Figure 1. The New Formatting Rule dialog box.

  7. In the formula area, enter the following formula, replacing A1 with the address of the active cell selected in step 1:
  8.      =ISBLANK(A1)
  9. Click Format to display the Format Cells dialog box.
  10. Click the Fill tab. (See Figure 2.)
  11. Figure 2. The Fill tab of the Format Cells dialog box.

  12. Select the color you want used for shading the cell if it is blank.
  13. Click OK to dismiss the Format Cells dialog box. The shading color you selected in step 9 should now appear in the preview area for the rule.
  14. Click OK.

All the empty cells among those selected in step 1 should now appear shaded. When you enter something into one of the shaded cells, the shading should disappear.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6867) applies to Microsoft Excel 2007 and 2010. You can find a version of this tip for the older menu interface of Excel here: Shading a Cell Until Something is Entered.

Related Tips:

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!


Comments for this tip:

Antony    09 Oct 2014, 05:44
Thanks for the answer...!
Bryan    01 May 2013, 07:49
As you point out on <a href="http://excelribbon.tips.net/T007131_Conditional_Formats_that_Distinguish_Blanks_and_Zeroes.html">this tip</a>, Excel already has a built-in way to highlight blank cells without needing to resort to a formula (New Rule > Format only cells that contain > Blanks).

Leave your own comment:

  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*What is 4+5 (To prevent automated submissions and spam.)
          Commenting Terms

Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us


Advertise with Us

Our Privacy Policy

Our Sites


Beauty and Style




DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2013)



Home Improvement

Money and Finances


Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2013)

Our Products

Premium Newsletters

Helpful E-books

Newsletter Archives


Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2015 Sharon Parq Associates, Inc.