Automatically alternate row colors (dynamically)

If you wish to set up alternating row colors in Excel, first highlight the rows that you wish to apply the formatting to. In this example, I've selected all rows in the spreadsheet.

Screenshot 1

Under the Format menu, select Conditional Formatting.

Screenshot 2

Then the Conditional Formatting window appears, select "Formula Is" in the drop down. Then enter the following formula:

=mod(row(),2)=1

Next, we need to select the color we want to see in the alternating rows. To do this, click on the Format button.

Screenshot 3

When the Format Cells window appears, select the Patterns tab. Then select the color that you'd like to see. In this example, I've selected a light grey. Then click on the OK button.

Screenshot 4

When you return to the Conditional Formatting window, you should see the following. Next, click on the OK button.

Screenshot 5

Now when you return to the spreadsheet, the conditional formatting will be applied.

As you can see, you now have alternating colors in the rows. You can insert, delete, and move rows, and you don't have to worry about reapplying formatting.

Screenshot 6

Topic: