How to Color Every Other Row in Excel (Easy Guide)

Frances Jun 02, 2026
How to Highlight Every Other Row in Excel
How to Highlight Every Other Row in Excel

Coloring every other row in an Excel worksheet, often called zebra striping, is one of the simplest ways to improve readability. This visual technique reduces eye strain when scanning large datasets and helps you maintain your place across columns. While it may look complex at first, the process is straightforward and can be accomplished in several ways.

How to Highlight Every Other Row in Excel
How to Highlight Every Other Row in Excel

Using Conditional Formatting with a Formula

Change the Gridline Color in Excel Spreadsheets - 2 Ways!
Change the Gridline Color in Excel Spreadsheets - 2 Ways!

The most flexible and recommended method uses Conditional Formatting with a specific formula. This approach dynamically colors rows even if you sort or filter your data, ensuring the pattern remains consistent. It works by applying a rule that checks the row number of each cell and applies color based on whether it is odd or even.

Step-by-Step Guide

Color-Coded Drop-Down Lists in Excel – Make Data Entry Smarter
Color-Coded Drop-Down Lists in Excel – Make Data Entry Smarter

To implement this technique, first select the range of cells you want to format, starting from the top-left corner of your table. It is usually best to select the entire data range, such as A2:Z100, rather than just a single column. Next, navigate to the Home tab on the Ribbon and click on Conditional Formatting, then choose New Rule to open the dialog box.

Creating the Rule

How To Shade Every Other Line in Excel with Conditional Formatting
How To Shade Every Other Line in Excel with Conditional Formatting

In the New Formatting Rule window, select the option "Use a formula to determine which cells to format." In the formula field, you will enter a specific expression that evaluates the row number. For coloring all even rows, the formula is =EVEN(ROW())=ROW(). To color odd rows instead, which is often preferred for headers starting at row 1, you would use =MOD(ROW(),2)=1.

Formatting the Visual Output

After entering the correct formula, you must define how the rule should look. Click the Format button to choose a fill color that provides enough contrast for your text without being too harsh on the eyes. Many professionals opt for a soft blue, gray, or green shade that subtly highlights the row without overwhelming the data itself.

Highlight EVERY Other ROW in Excel (using Conditional Formatting)
Highlight EVERY Other ROW in Excel (using Conditional Formatting)

Managing Rule Precedence

If you have multiple rules applied to the same range, you might need to adjust their order. Excel applies rules from top to bottom in the Conditional Formatting Rules Manager. Ensure your row-specific formula is at the top of the list if you want it to take precedence over other rules that might change the cell color.

Applying a Solid Color Fill Manually

5 rules for a dashboard color palette - Excel Off The Grid
5 rules for a dashboard color palette - Excel Off The Grid

For static reports where the data will not be sorted or filtered, a manual approach using fill color is the fastest solution. This method involves coloring the rows by hand, which is perfectly acceptable for small ranges or one-time exports that will not be reused.

Quick Steps for Manual Coloring

Excel's Color Palette Compatibility Solution
Excel's Color Palette Compatibility Solution
Excel Color Coded Dropdown‼️Use Amazing Excel Features #excel #exceltips #shorts #exceltricks
Excel Color Coded Dropdown‼️Use Amazing Excel Features #excel #exceltips #shorts #exceltricks
How to Highlight Every Other Row in Excel (3 Easy Methods) - ExcelDemy
How to Highlight Every Other Row in Excel (3 Easy Methods) - ExcelDemy
excel create color - coded drop - down menu
excel create color - coded drop - down menu
Defining and Using Custom Colors (Microsoft Excel)
Defining and Using Custom Colors (Microsoft Excel)
How to alternate row color based on group in Excel?
How to alternate row color based on group in Excel?
Automatically highlight rows and columns in Excel
Automatically highlight rows and columns in Excel
an excel chart with the words change gridlines color in green and white on it
an excel chart with the words change gridlines color in green and white on it
How to highlight row if cell contains text/value/blank in Excel?
How to highlight row if cell contains text/value/blank in Excel?
Change Background Color in Excel
Change Background Color in Excel
How to Shade or Color Alternate Rows in Excel?
How to Shade or Color Alternate Rows in Excel?
Color Coding Drop-down list in Excel l Drop down list in cell #excelshorts #ytshorts #shorts
Color Coding Drop-down list in Excel l Drop down list in cell #excelshorts #ytshorts #shorts
El color de Relleno de Celdas
El color de Relleno de Celdas
How to Shade Every Other Row in Excel / Google Sheets
How to Shade Every Other Row in Excel / Google Sheets
Change gridline | grid color in Excel sheet (using settings and using VBA)
Change gridline | grid color in Excel sheet (using settings and using VBA)
How to highlight your rows in excel
How to highlight your rows in excel
Auto Highlight Row in Excel 🌟 EASY Tutorial 🔥 || Excel Tips
Auto Highlight Row in Excel 🌟 EASY Tutorial 🔥 || Excel Tips
How to highlight certain rows in your data.
How to highlight certain rows in your data.
Highlight All Excel Formula Cells | MyExcelOnline
Highlight All Excel Formula Cells | MyExcelOnline
Colorer automatiquement une ligne sur deux - Excel
Colorer automatiquement une ligne sur deux - Excel
  • Select the entire row by clicking the row number on the left side of the sheet.
  • Hold the Ctrl key and select every other row number to create a non-adjacent selection.
  • Right-click on one of the selected numbers and choose Format Cells.
  • Pick a color on the Fill tab and click OK to apply the background.

Leveraging the Table Feature

Converting your data range into an Excel Table offers the most elegant solution for automatic striping. Once a range is formatted as a Table, Excel automatically applies banded rows, eliminating the need for complex formulas or manual adjustments.

Benefits of Using a Table

When you convert data to a Table (using Ctrl+T), the banded rows style is applied instantly. As you add new rows of data below the table, Excel automatically extends the formatting to include them. This ensures your document maintains a professional appearance without constant maintenance.

Advanced Customization with ROW Function

For users who need precise control over which rows are colored, combining the MOD function with conditional formatting provides granular customization. This allows you to start the striping pattern on a specific row, which is useful if your table does not start on row 1 or if you have a header row that should remain uncolored.

Custom Formula Logic

By adjusting the formula to =MOD(ROW(),2)=0, you target even rows specifically. If your table starts on a different row, you can modify the formula to =MOD(ROW()+N,2)=1, where N is the offset number. This level of detail ensures the formatting logic aligns perfectly with your specific data layout.