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:

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!


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 5+3 (To prevent automated submissions and spam.)
           Commenting Terms

Comments for this tip:

Mohammed Mirghani Othman     08 Sep 2015, 07:52
You can do this task more easier by choosing the Command Conditional Formatting-Format only cells that contain and from drop list below choose Blanks
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).

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–2016)



Home Improvement

Money and Finances


Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Our Products

Helpful E-books

Newsletter Archives


Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2016 Sharon Parq Associates, Inc.