To shade every other row in Microsoft Excel, the fastest method is to convert your data range into a Table by pressing Ctrl + T and ensuring the "Banded Rows" option is checked. This automatically applies alternating colors that stay in place even if you sort or filter your data. For those who prefer not to use the Table feature, Conditional Formatting with a simple MOD formula is the best alternative for maintaining dynamic shading across a standard spreadsheet range.

What You'll Need

  • A computer with Microsoft Excel installed (works on Windows and macOS).
  • An existing set of data or a blank worksheet where you want the shading applied.
  • Basic knowledge of selecting cell ranges.

Step-by-Step

Depending on your goals, you can choose between the Table method (easiest and most functional) or the Conditional Formatting method (most customizable). Note that menu labels may differ slightly based on your version of Excel or region.

Method 1: Using Excel Tables (The Fastest Way)

  1. Select your data: Click and drag your mouse to highlight the cells you want to shade. Alternatively, click any single cell within your data set.
  2. Create the 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 Cmd + T (Mac).
  3. Confirm the range: A dialog box will appear asking "Where is the data for your table?" Ensure the range is correct. If your data has headers (like "Name", "Date", "Amount"), make sure the My table has headers checkbox is checked. Click OK.
  4. Verify Banded Rows: Once the table is created, the Table Design tab will automatically appear in the ribbon (this tab only shows when a cell inside the table is selected). In the Table Style Options group, ensure the Banded Rows checkbox is checked.
  5. Change the color: To change the shade, look at the Table Styles gallery on the Table Design tab. Hover over the different styles to see a live preview of different colors and shading patterns, then click the one you prefer.

Method 2: Using Conditional Formatting (The Custom Way)

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

  1. Select the range: Highlight the specific area of the spreadsheet you want to shade. For example, select cells A2 through G100.
  2. Open Conditional Formatting: Go to the Home tab, click on Conditional Formatting in the Styles group, and select New Rule... from the dropdown menu.
  3. Enter the formula: In the "New Formatting Rule" window, click the bottom option: Use a formula to determine which cells to format.
  4. Type the MOD formula: In the box labeled "Format values where this formula is true:", type exactly the following: =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 color: Click the Format... button. Go to the Fill tab, select the light gray or color of your choice, and click OK.
  6. Apply the rule: Click OK again to close the New Formatting Rule window. Your selected range will now have every other row shaded.

Common Mistakes

Many users encounter issues because they attempt to shade rows manually using the Fill bucket tool. Manual shading is a common mistake because it is static; if you delete a row or sort your data, the alternating pattern is broken, leaving you with two white rows or two shaded rows next to each other. This requires the user to manually re-shade the entire sheet, which is time-consuming and prone to error.

Another frequent error occurs during the Conditional Formatting process when users include the header row in their selection. If your headers are in Row 1 and you want the shading to start on Row 2, ensure your selection starts at Row 2. If you apply =MOD(ROW(),2)=0 to a range starting at Row 1, Row 1 (odd) will be white, Row 2 (even) will be shaded, and so on. If you want the odd rows shaded instead, you must change the formula to =MOD(ROW(),2)=1.

Users also often forget that Table Styles are tied to the Table object. If you convert a range to a table to get the shading, but then later convert the table back to a normal range (using Table Design > Convert to Range), the shading colors may remain, but the "dynamic" nature of the banded rows disappears. Any new rows added after converting back to a range will not be automatically shaded.

Tips

To make your data even more readable, consider combining Banded Rows with Banded Columns. In the Table Design tab, checking the Banded Columns box will create a grid-like shading effect, which is helpful for extremely wide datasets where it is easy to lose your place while scanning horizontally.

If you are using Conditional Formatting, you can make the shading apply to every third or fourth row instead of every second. To do this, change the number in the MOD formula. For example, =MOD(ROW(),3)=0 will shade every third row. This is useful for grouping data into sets of three.

For professional presentations, avoid using dark, saturated colors for your shading. High-contrast colors (like dark blue or bright red) can make the black text difficult to read and can be visually exhausting for the viewer. Stick to light grays, pale blues, or very light greens to ensure the data remains the primary focus.

Troubleshooting

If the shading does not appear after following the steps, first check if you have any existing manual fill colors applied to the cells. Manual formatting takes precedence over Conditional Formatting. To fix this, select your data, go to the Home tab, click the Fill Color (bucket icon) dropdown, and select No Fill. This clears the manual colors and allows the automated shading to show through.

If you are using a Table and the shading disappears when you filter your data, check your Table Style settings. Some custom styles may not support banded rows during filtering. Try switching to one of the default "Medium" styles in the Table Design gallery to see if the issue persists.

If the Conditional Formatting formula is not working, double-check the syntax. A common error is adding extra spaces or forgetting the equals sign at the beginning of the formula. Ensure the formula is =MOD(ROW(),2)=0. Also, verify that you are not in "Formula View" (which shows formulas instead of results), which can be toggled by pressing Ctrl + ` (the grave accent key).

Frequently Asked Questions

Will the shading stay if I sort my data?

If you use the Table method or the Conditional Formatting MOD formula, yes. The shading is tied to the row position or the table structure, not the specific data in the cell, so it will remain perfectly alternating regardless of how you sort.

Can I remove the shading quickly?

For Tables, go to the Table Design tab and uncheck Banded Rows. For Conditional Formatting, go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells.

Does this work in Excel Online?

Yes, the Table method works identically in the web version of Excel. Conditional Formatting is also supported, though the menu layout may be slightly simplified compared to the desktop application.

How do I shade only specific rows based on a value?

You cannot use Banded Rows for this. You must use Conditional Formatting. Instead of the MOD formula, enter a formula based on a cell value, such as =$C2="Complete", to shade every row where the status in column C is marked as "Complete".

Why is my shading not applying to new rows I add?

If you used a Table, new rows added directly below the table will automatically be incorporated. If you used Conditional Formatting, you must either select a very large range initially (e.g., A2:G1000) or go to Conditional Formatting > Manage Rules and expand the "Applies to" range to include your new rows.