Alternate row colors in Excel

Contents
Introduction
Alternate row colors

In this article, you will learn how to highlight every second row of an Excel table.

Alternate row colors

1. Select the range you want to format. In this example, the entire table is selected.

Selected Excel table

2. Choose Home → Conditional Formatting → New Rule.

Conditional Formatting menu

3. Choose Use a formula to determine which cells to format and enter:

=MOD(ROW(),2)=0

The formula selects rows whose row number is divisible by two. To highlight every tenth row, replace 2 with 10. Next, choose the formatting style.

New formatting rule

4. Choose how to format the cells. This example uses a gray fill.

Format cells dialog

5. Click OK to apply the changes.

Confirm the new rule

6. Check the result.

Table with alternating row colors

If the selected range includes cells with drop-down lists, the rule may not work as expected. Try selecting a different range or use another method, such as formatting the table with a built-in style.

Article author: Andrei Olegovich

Related articles
Microsoft Office
Microsoft Excel
Alternate row colors
Enable the Developer tab
VBA examples
Sort numbers correctly
Paste Special shortcuts
VBA examples
Alternate row colors
Enable the Developer tab
Color a drop-down list
Sort numbers correctly
Everything disappeared
Insert a line break in a cell
Fix an Excel filter
Microsoft Word
Microsoft PowerPoint

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: