How to apply shading to odd or even (alternative) rows/columns in Excel?
While designing a worksheet, many people tend to apply shading to odd or even (alternative) rows or columns in order to make the worksheet more visual. This article will show you two methods to apply shading to odd or even rows/columns in Excel.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
You can create a Conditional Formatting rule to apply shading to odd or even rows/columns in a worksheet. Please do as follows.
1. Select the range which you want to apply shading to, then click Conditional Formatting > New Rule under the Home tab. See screenshot:
2. In the New Formatting Rule dialog box, you need finish the following configuration:
2.1 Select Use a formula to determine which cells to format option in the Select a Rule Type box;
2.2 For shading odd or even rows, please enter formula =MOD(ROW(),2) into the Format values where this formula is true box;
For shading odd or even columns, please change the formula to =MOD(Column(),2);
2.3 Click the Format button to specify a shading color for the odd or even rows/colums.
2.4 Click the OK button in this New Formatting Rule dialog box to finish the Conditional Formatting rule. See screenshot:
Then you can see specified shading is applied to alternative rows/columns in selected range as below screenshot shown.
The Alternate Row / Column Shading utility of Kutools for Excel can help you to easily apply shading to odd or even (alternative) rows/columns in Excel.
1. Select the range which you want to apply shading to, then click Kutools > Format > Alternate Row / Column Shading. See screenshot:
2. In the Alternate Row / Column Shading dialog box, please do as follows:
A: Specify a shading color from the Shade color drop-down list;
B: Select Rows or Columns option in the Apply shading to section based on your needs;
C: In the Shading method section, select Conditional formatting or Standard formatting option as you need;
D: Specify the alternate row or column number you will shade in the Shade every box;
E: Click the OK button. See screenshot:
Then you can see the specified shading is applied to alternative rows/columns in selected range as below screenshot shown.