Banded (Alternating) Row Colors

Excel Formulas › Conditional Formatting

All versionsISEVENROW

Zebra striping — shading every other row — makes wide tables far easier to read. A conditional-formatting rule with ISEVEN(ROW()) does it dynamically, so the stripes stay correct even when you insert or delete rows.


Quick formula: select the range and add a formula rule:
=ISEVEN(ROW())
ROW() gives the current row number; ISEVEN is TRUE on even rows, so they get shaded — and the pattern auto-corrects when rows shift.

Functions used (tap for the full reference guide):

How it works

Even rows are shaded. The helper column shows the rule’s result.

ABC
1ItemQtyEven row?
2Apple10TRUE
3Banana8FALSE
4Cherry12TRUE
5Date5FALSE

The formula

The banding rule (applied to the data range):

=ISEVEN(ROW()) // shade even-numbered rows

How it works

The rule keys off the row number, so it’s self-maintaining:

  1. ROW() returns the row number of each cell.
  2. ISEVEN(…) is TRUE on even rows (2, 4, 6…), FALSE on odd ones.
  3. Conditional formatting shades the TRUE rows, producing alternating stripes.
  4. Because it’s based on the live row number, inserting or deleting a row re-stripes automatically — unlike manual fill colors.

Even simpler: a Table. Select your data and press Ctrl+T — Excel Tables come with banded rows built in (toggle it in Table Design). Use the formula rule when you need banding without a Table, or custom stripe logic.

Try it: interactive demo

Live demo

Choose a banding pattern.

Variations

Bands of two (or N) rows

Group rows into stripes of N:

=MOD(ROW()-2, 4) < 2

Banded columns

Stripe vertically instead:

=ISEVEN(COLUMN())

Color only data rows

Combine with a non-blank test:

=AND(ISEVEN(ROW()), $A2<>"")

Pitfalls & errors

The first data row’s parity depends on where it starts. If your table begins on row 2, even rows are shaded; starting on row 3 flips it. Adjust with ROW()+1 if needed.

Manual fill colors override the rule. If some cells were colored by hand, clear that fill so the conditional format shows.

A Table is usually easier. For plain banding, Ctrl+T beats a rule. Reach for the formula when you need custom stripe widths or conditions.

Practice workbook

📊
Download the free Banded (Alternating) Row Colors practice workbook
A list with a live even-row helper, the bands-of-N and banded-columns variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I shade every other row in Excel with a formula?
Select the range and add a conditional-formatting rule =ISEVEN(ROW()). It shades even rows and re-stripes automatically when rows are inserted or deleted.
How do I make bands of two or more rows?
Use MOD: =MOD(ROW()-2, 4)<2 creates stripes two rows tall. Change the numbers for other band widths.
Isn't there an easier way to get banded rows?
Yes, format the data as an Excel Table (Ctrl+T), which includes banded rows by default. Use the formula rule when you need custom banding or no Table.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Highlight rows with a formula · Highlight rows with missing data · Highlight the top N values

Function references: ISEVEN · ROW · MOD