bottom
Great ExcelTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > ExcelTips Home > Formatting > Conditional Formatting > Shading Rows with Conditional Formatting

Shading Rows with Conditional Formatting

Summary: Conditional formatting can be used to shade every other row in a data table. This is handy for those times when it may not be that easy to follow the lines on a printout. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)

If you haven't tried out the conditional formatting features of Excel before, they can be quite handy. One way to use this feature is to cause Excel to shade every other row in a table. This is great when you have a particularly wide table, and you want to make it a bit easier to read on printouts. Simply follow these steps:

  1. Select the table whose alternate rows you want to shade.
  2. Choose Conditional Formatting from the Format menu. Excel displays the Conditional Formatting dialog box. (Click here to see a related figure.)
  3. Using the pull-down condition, select Formula Is. Excel changes the dialog box controls to reflect your choice.
  4. In the formula box, enter the following:
     =MOD(ROW(),2)=0
  1. Click on the Format button. Excel displays the Format Cells dialog box.
  2. Make sure the Patterns tab is selected. (Click here to see a related figure.)
  3. Select the color you want used for the row shading.
  4. Click on OK to close the Format Cells dialog box.
  5. Click on OK to close the Conditional Formatting dialog box.

Tip #2799 applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003


Save Time! ExcelTips has been published weekly since late 1998. Past issues of ExcelTips are available in convenient ExcelTips archives. Have your own enhanced archive of ExcelTips at your fingertips, available to use at any time!
 
Check out ExcelTips Archives today!

Helpful Links

Ask an Excel Question
Make a Comment

Tips.Net Home
Vital News Home

ExcelTips FAQ
ExcelTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

 

Great Info!

Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)