Tricks for MS Excel: Add a frozen header row and set alternate background colors for rows
Here are couple of tricks for MS Excel users.
First we take a look at how to add a “Frozen” header row. Frozen header row is the one you could have for a very long worksheet. This row will be frozen (to act as the column header) and rest of the rows will scroll. Here’s how to do this.
1. Select the row below the one you want to be the header (or be frozen)
2. From Window menu select Freeze Panes (for MS Excel 2007 click on the View tab and inside Window panel click on Freeze Panes and pick the first option which is also Freeze Panes)
The frozen row will have a border at the bottom. Simple but an essential option for MS Excel users.
Second trick is the alternate background color for rows in the MS Excel worksheet.
1. Select the rows
2. From the Format menu go to Conditional Formatting (or in MS Excel 2007 under Home tab click on Conditional Formatting from Styles panel and click on New Rule)
3. When the window appears select Formula Is… (or on MS Excel 2007 select the last option Use a Formula to Determine Which Cells to Format)
4. Add this formula: =mod(row(),2)=1
5. Then click on Format button and go to Fill tab
6. Pick the color that will be used as the alternate color
7. Hit OK and go back to the worksheet
You will see the worksheet has alternate background colors.