We are in the process of updating the site, so some pages still have the older design.
How to make Excel automatically add row shading to every other row when you add data to the spreadsheet.
This does NOT use the Table feature in Excel. This tutorial will show you how to use a formatting method to achieve automatically alternating row colors.



=AND(MOD(ROW(),2)=0,A2<>"")




You won't see anything until you add data.

In the example above, if we go to add data to the data set, the row shading will only work on the cells that have data.
Look at this example:

If a cell in the data set is left empty, that particular cell will be void of shading.
Let's change this so that, as soon as you type something into column A, the entire row for the data set will be shaded.
Follow the same steps as above except that in step 4, use this formula:
=AND(MOD(ROW(),2)=0,$A2<>"")
The only difference between this formula and the other one is that this one has a dollar sign $ in front of A2. This means that the column reference will not change when the conditional formatting is applied.
Look at the example now:

This way, our data set is much more readable.
If you need to edit the formula that we used for the conditional formatting, go to the Home tab > Conditional Formatting > Manage Rules > click the desired rule from the list > hit Edit Rule and you can change the formula from the small window that opens.
This is one of my favorite "tricks" in Excel and it allows you to make workbooks that feel interactive without having to do much at all.
This is a sure way to impress many of your colleagues and, maybe more important, it will allow you to create easy-to-read spreadsheets with little effort.
Make sure to download the accompanying spreadsheet so you can see this feature in action.
Follow along with the tutorial by downloading the files used in it. (Completely Free)
Phone number is optional - we use it to send course discounts and weekly updates via SMS.