Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Converting to Octal

Filtering Columns for Unique Values

Printing Multiple Worksheets on a Single Page

Changing the Default Font

Creating a Drawing Object

Determining a Value of a Cell

Understanding Macros

 

Shading a Cell Until Something is Entered

Summary: Conditional formatting provides the opportunity to get very creative with your formatting. One such creative urge can be satisfied by formatting an input cell so that it shows up in a desired color until someone enters something in it. This can make it easier for users to see where they need to enter information. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

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 if you are using Excel 2007:

  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. (Click here to see a related figure.)
  6. In the formula area, enter the following formula, replacing A1 with the address of the active cell selected in step 1:
  7.      =ISBLANK(A1)
    
  8. Click Format to display the Format Cells dialog box.
  9. Click the Fill tab. (Click here to see a related figure.)
  10. Select the color you want used for shading the cell if it is blank.
  11. 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.
  12. Click OK.

Follow these steps, instead, if you are using an older version of Excel:

  1. Select the cell or cells that you want shaded if they are empty.
  2. Choose Conditional Formatting from the Format menu. Excel displays the Conditional Formatting dialog box.
  3. Use the Condition drop-down to choose Formula Is.
  4. In the formula area, to the right of the drop-down list used in step 3, enter the following formula, replacing A1 with the address of the active cell selected in step 1:
  5.      =ISBLANK(A1)
    
  6. Click Format to display the Format Cells dialog box.
  7. Click the Patterns tab.
  8. Select the color you want used for shading the cell if it is blank.
  9. Click OK to dismiss the Format Cells dialog box. The shading color you selected in step 7 should now appear in the preview area for the condition.
  10. 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 (2800) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Step Up and Take Control! Subscribers to ExcelTips know just how valuable a resource it is. ExcelTips Premium provides twice the number of exceptional, easy-to-understand tips every week in an ad-free newsletter, as well as substantial discounts on ExcelTips archives and e-books.
 
Check out ExcelTips Premium today!