Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Alternate Row Colours: How to Use Banded Rows

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create alternate row colours in Excel, the fastest method is to convert your data range into an official Excel Table by selecting your data and pressing Ctrl + T, then ensuring the Banded Rows option is checked in the Table Design tab. This automatically applies a professional, alternating colour scheme that persists even when you sort, filter, or add new rows to your dataset.

Alternating row colours, often referred to as "banded rows," are a critical tool for data visualization. When dealing with large spreadsheets containing dozens or hundreds of entries, the human eye can easily slip from one line to another, leading to data entry errors or misread values. By creating a visual distinction between every other row, you create a horizontal guide that allows the reader to track information across a wide set of columns without losing their place. This improves the overall readability of the document and makes the spreadsheet look more polished and professional for presentations or reports.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • A dataset consisting of at least two columns and several rows of data.
  • A basic understanding of how to select a range of cells.

Step-by-Step

There are two primary ways to achieve alternate row colours: the Table Method (fastest and dynamic) and the Conditional Formatting Method (highly customizable). Labels and menu paths may differ slightly depending on your version of Excel or operating system.

Method 1: The Table Method (Recommended)

  1. Select your data: Click and drag your mouse to highlight the entire range of cells you want to format. Alternatively, click any single cell within your data set and press Ctrl + A (Windows) or Command + A (Mac) to select the current region.
  2. Convert to Table: Go to the Insert tab on the top ribbon and click the Table button. You can also use the keyboard shortcut Ctrl + T (Windows) or Command + T (Mac).
  3. Confirm Range: A dialog box will appear asking "Where is the data for your table?" Excel will automatically suggest the range it detected. If your data has headers (e.g., Name, Date, Amount), make sure the checkbox My table has headers is checked. Click OK.
  4. Customize the Style: Once the table is created, a new tab called Table Design (or Design) will appear in the ribbon. Click this tab to see the Table Styles gallery.
  5. Choose a Colour Scheme: Browse the gallery of Light, Medium, and Dark styles. Hover over a style to see a live preview of how the alternating colours will look on your data. Click the one you prefer.
  6. Toggle Banding: In the Table Style Options group of the Table Design tab, ensure the Banded Rows checkbox is checked. If you prefer vertical stripes instead, you can uncheck Banded Rows and check Banded Columns.

Method 2: The Conditional Formatting Method (Manual Control)

Use this method if you do not want to convert your data into a formal Table object but still want the colours to update automatically when you insert new rows.

  1. Select your range: Highlight the cells you wish to colour. Avoid selecting the entire worksheet (by clicking the top-left corner) as this can slow down your computer; only select the actual data area.
  2. Open Conditional Formatting: On the Home tab, click Conditional Formatting in the Styles group, then select New Rule from the dropdown menu.
  3. Use a Formula: In the New Formatting Rule dialog, select the option Use a formula to determine which cells to format.
  4. Enter the MOD Formula: In the formula box, type the following exactly: =MOD(ROW(),2)=0. This formula tells Excel to check the row number; if the row number divided by 2 has a remainder of 0 (meaning it is an even row), it will apply the formatting.
  5. Set the Colour: Click the Format button. In the Format Cells dialog, go to the Fill tab. Select the light grey or light blue colour you want for your alternate rows. Click OK.
  6. Apply the Rule: Click OK again to close the New Formatting Rule window. Your selected range will now have alternating colours based on the row number.

Common Mistakes

One of the most frequent errors is manually colouring rows using the Paint Bucket tool (Fill Colour). While this works for a tiny list, it is a major mistake for larger datasets. If you manually colour row 2, 4, and 6, and then you insert a new row at position 3, your pattern is broken. You would then have to manually recolour every single row below the insertion point to fix the sequence. Using Tables or Conditional Formatting prevents this entirely.

Another common mistake is selecting the entire column (e.g., clicking the 'A' or 'B' header) when applying Conditional Formatting. Because Excel treats every single row in the spreadsheet (over a million rows) as part of the rule, it can cause significant lag or "calculation freezing" in your workbook. Always limit your selection to the specific range where your data exists.

Users also often forget to check the "My table has headers" box during the Table conversion process. If this is missed, Excel will treat your column titles as the first row of data and apply a banded colour to them, which usually looks incorrect and makes the headers harder to read.

Tips

For maximum professional impact, avoid using high-contrast or dark colours for your banded rows. A very light grey, pale blue, or soft mint green is best. If the background colour is too dark, you may find yourself having to change the font colour to white for every other row, which creates more work and can make the document look cluttered.

If you are using the Table Method, you can quickly change the entire look of your spreadsheet by switching Table Styles. Instead of manually changing colours, just pick a different preset from the Table Design tab. This ensures that the shades of colour are mathematically balanced and aesthetically pleasing.

To make your data even more readable, consider adding a "Freeze Panes" setting to your top row. Go to the View tab > Freeze Panes > Freeze Top Row. When combined with alternate row colours, this ensures that as you scroll down through your banded data, you always know exactly what each column represents.

Troubleshooting

The colours didn't appear: If you used the Table method and see no colours, check the Table Design tab and ensure Banded Rows is checked. If you used Conditional Formatting, double-check your formula. A common error is a missing equals sign at the start or a typo in the word ROW().

The banding is uneven: This usually happens if you have manually applied fill colours to some cells in the past. Manual formatting takes priority over Table Styles and Conditional Formatting. To fix this, select your data, go to the Home tab, click the Fill Colour (paint bucket) dropdown, and select No Fill. This clears the manual overrides and allows the automated banding to show through.

The colours don't shift when I sort: If you used manual filling, the colours stay with the cell, not the row. If you used the Table method or the =MOD(ROW(),2) formula, the colours should remain perfectly alternating regardless of how you sort the data. If they aren't, ensure you haven't accidentally converted the Table back to a "Range" (Convert to Range tool in the Table Design tab).

Excel is running slowly: If your workbook becomes sluggish after applying alternating colours, you likely applied a Conditional Formatting rule to too many cells (e.g., the entire sheet). To fix this, go to Conditional Formatting > Manage Rules, change the "Show formatting rules for" dropdown to This Worksheet, and delete any rules that apply to massive ranges like =$A:$Z.

Frequently Asked Questions

Can I use different colours for every third row?

Yes, but you must use Conditional Formatting. Instead of the formula =MOD(ROW(),2)=0, use =MOD(ROW(),3)=0. This will apply the colour to every third row (3, 6, 9, etc.) instead of every second row.

How do I remove alternate row colours?

If using a Table, go to the Table Design tab and uncheck Banded Rows. If you used Conditional Formatting, go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells.

Will banded rows print correctly?

Yes, banded rows will print exactly as they appear on your screen. However, if you are using a very light colour, ensure your printer settings are not set to "Draft" or "Ink Saver" mode, as very pale greys can sometimes disappear on a physical printout.

Does this work in Excel Online?

Yes. The Table method (Insert > Table) works identically in the web version of Excel. Conditional Formatting is also supported, though the interface for entering formulas may look slightly different than the desktop application.

Can I have different colours for the odd and even rows?

The Table method does this automatically (white and a chosen colour). To do this with Conditional Formatting, you would need to create two separate rules: one using =MOD(ROW(),2)=0 for the even rows and another using =MOD(ROW(),2)=1 for the odd rows, assigning a different colour to each.