Format
alternate rows in a worksheet
(97-2007)
Conditional formatting is a
Microsoft Excel feature that sets a
cell's format according to
conditions that you specify.
Conditional formatting allows you to
present numeric data in different
colors; for example, you can shade
data depending on whether the value
is greater, equal to, or less than
zero. You can also present list data
against a background pattern of
alternating shades, as in the
following example.
To apply alternating shades to the
rows of your worksheet, follow these
steps:
-
Select the range of cells.
-
From the Format menu
select Conditional Formatting.
(2007 - Select the Home
tab and click on the
Conditional Formatting
button, and select Manage
Rules. Click on the
New Rule button. From
the Rules Type select
Use a formula to determine which
cells to format.)
-
Under Condition 1, select
Formula Is.
(2007 - Format Values where
this formula is true)
-
In
the data entry box, type
=MOD(ROW(),2)=1.
-
Click on the Format
button.
-
In
the Format Cells dialog
box, click the Patterns
(2007 - Fills) tab.
-
Select a colour, and then click
OK.
-
In
the Conditional Formatting
dialog box, click OK.

For
alternate columns, change the text
ROW to COLUMN.