empower® Blog: We love Microsoft 365

Excel tables with alternating row colors

Written by Tobias Kablitz | November 24, 2022

Virtually every person knows them, but hardly anyone knows how to create them in a fixed way: Excel tables with alternating line color.

5 steps to alternating row colors in Excel

Table templates in Excel already offer some useful variants, but there is no simple tool for defining colors and another formatting yourself. This can be remedied with a simple Excel formula and conditional formatting:

  1. Select the area to which you want to apply the formatting.

  2. Then click on "Conditional Formatting" in the "Start" tab.


  3. Click “New Rule” in the menu that appears.


  4. In the opened window, select the last entry "Use formula to determine cells to format" and insert the following formula in the input field under "Format values for which this formula is true: =REST(ROW();2)=1 (each row with odd row number will be formatted).

    By changing the numbers in the formula, different formatting can be achieved: For example, the setting can be applied to every even line by using a 0 as a remainder, or the divisor in the formula (in the example "2") can be replaced by any other number, so that instead of every second line, for example, every third line can be formatted differently.

  5. Clicking on "Formatting" in the same window will take you to the area where you can specify the desired formatting.


  6. In the "Fill" tab, select the color you want your rows to be colored in.
  7. After confirming with "OK" in both windows, the defined formatting is applied to the previously selected area.


Are you looking for ways to work in Excel while adhering to your company's corporate design? Excel is difficult enough to handle and all the formatting to adjust the design takes a good portion of your workday?

Our Brand Control solution helps employees adhere to the corporate design. Our Office Add-Ins make the formatting easy and quick, enabling employees to focus on their really important tasks. 

Contact us for more information! Our experts are looking forward to improving your company's efficiency with you!