Method 1: Use the "Conditional Formatting" option
To use the Conditional Formatting option to shade rows in a worksheet, follow these steps:
- Open the worksheet.
- Select the cell range that you want to shade, or press Ctrl+A to select the whole worksheet.
- Click theHometab.
- In theStylesgroup, clickConditional Formatting, and then clickManage Rules.
- ClickNew rule.
- ClickUse a formula to determine which cells to format.
- In theFormat values where this formula is truebox, type=MOD(ROW(),2)=1, and then clickFormat.
- On theFilltab, click the color that you want to use to shade every other row, and then clickOK.
- ClickOKto close theNew Formatting Ruledialog box.
- ClickApply, and then clickOKto close theConditional Formatting Rules Managerdialog box.
Method 2: Use the "Format as Table" option
To use the Format as Table option to shade rows in a worksheet, follow these steps:
- Open the worksheet.
- Select the cell range that you want to shade, or press Ctrl+A to select the whole worksheet.
- Click the Home tab.
- In the Styles group, click Format as Table, and then click the style of formatting that you want.
- In the Format as Table dialog box, click OK.