Learning how to Alternate Colors In Google Sheets is one of the fastest ways to make dense spreadsheets easier to scan, read, and present. Adding visual row or column banding prevents your eyes from losing track across wide tables—whether you use the built-in alternating colors tool for static reports or custom conditional formatting formulas for dynamic tables that expand automatically.

How To Alternate Colors In Google Sheets Rows
Applying clean zebra-striping to a static table takes just three steps using Google’s native formatting sidebar:
Step 2:
Navigate to the top menu and select Format > Alternating colors.
Step 1:
Highlight your entire data table, including any header or footer rows.

Step 3:
Select one of the default styles and click Done:

Custom Colors And StylesInside the Google Sheets Alternating colors panel, you can tailor your table design further:
- Toggle the Header and Footer checkboxes on or off to assign distinct accent colors to your top and bottom summary rows.
- Customize Color 1 and Color 2 using brand or theme shades, then click the + icon under Custom styles to save your palette for reuse across your spreadsheet.

Dynamic Alternating Rows
Because the standard Alternating colors menu applies to a fixed cell range, empty rows remain shaded even when your table shrinks or grows. To create dynamic shading that automatically adjusts as new entries arrive, use conditional formatting:

Unfortunately, you can’t use the alternating rows tool because it gets applied to a static range. The alternating color bands are left in place whether there is data or not.
But the good news is that you can use regular conditional formatting to achieve the dynamic alternating colors.
Highlight your data range, open the conditional formatting sidebar, and set the custom formula rule to:
=AND(NOT(ISBLANK($B16)),ISODD(ROW()))
Notice the $ sign in front of the A, so that the conditional formatting is applied to the whole row.
Also, this rule is operating on a range that starts from cell B16 (see the GIF above). You’ll want to change this to match the top-left cell of your range.
This formula works by checking that the row is an odd-numbered row AND not blank in column B, i.e. the row has data.
If the row is blank in column B, then the conditional formatting is not applied.
This technique could be adapted to columns by switching the ROW function to a COLUMN function.
How To Alternate Colors In Google Sheets Columns
Unfortunately, there is no equivalent alternating colors option that works on columns. However, since it’s much less common to do this, perhaps that’s no great loss.
But, in case you want to color columns with alternating colors, here’s how:
Step 1:
Highlight your data table.
Step 2:
Go to Format > Conditional formatting
Step 3:
Set the format rule to “Custom formula is”
Step 4:
Enter this custom formula, using the ISODD function and the COLUMN function, if you want the color to start in column A:
=ISODD(COLUMN())
Alternatively, use this formula with ISEVEN to start the colors from column B:
=ISEVEN(COLUMN())
Step 5:
Set the formatting style and click Done.

Also Read : Use The SWITCH Function to Categorize Data Efficiently