A reader was asking about whether we know of a method or formula to highlight every other row and column in Excel. Today, we’ll learn how to apply different color schemes to alternate rows or columns in Excel. There are several ways to alternate row colors, but today, we will focus on two main ways to do that: using conditional formats and using table designs.
Using conditional formatting:
- At first we need to select the rows that should be shaded using conditional formatting.
- Now go to the home ribbon, click on the drop down box of conditional formatting and select new rule.
- In select a rule type, hit use a formula to determine which cells to format.
- In the format values where formula is true, enter the formula =mod(row(),2)=0.
- Then click on the format, go to fill and set a background color (I assigned it to green).
- The formula describes when modulus of row (1 to n) divided by two = zero fill the background color green.
- Modulus is the remainder value in a division.
- So from the selected rows 2,4,6 will have the background color green.
- Thus alternate rows shading with conditional formatting can be done.
Fill alternates using Using Table style:
- We can also use table style format instead of using condition formatting.
- To do so, select the cells that has to be formatted and click on Format as table in the home ribbon and select anyone of the needed table format.
- If u already have a header in the selected cells, check on the My table has headers.
- In the table style options, we can check or uncheck on the options provided.
- Filter buttons will provide you with drop down symbol.
- First column will make the fonts bold in the first column.
- Last column will make the fonts bold in the last column.
- Banded columns will make alternate columns shaded.
- Headed Row will make the headed hide or visible.
- Total Row will calculate the total number of rows in the spreadsheet.
- Banded Rows will make alternate rows shaded.