If you want to apply color in alternate rows and columns in an Excel spreadsheet, here is what you need to do. It is possible to show the desired color in every alternate row or column with the Conditional Formatting. This functionality is included in Microsoft Excel, and you can make use of it with the help of this tutorial.
Let’s assume that you are making a spreadsheet for your school or office project, and you have to colorize every alternate row or column. There are two ways to do that in Microsoft Excel. First, you can select particular rows or columns and change the background color manually. Second, you can use the Conditional Formatting functionality to apply the same in automation. Either way, the result will be the same, but the second method is more efficient and time saving for any user.
How to alternate row colors in Excel
To apply color in alternate rows or columns in Excel, follow these steps-
- Open the spreadsheet with Excel.
- Select the rows and columns that you want to colorize.
- Click the Conditional Formatting in the Home tab.
- Select New Rule from the list.
- Select Use a formula to determine which cells to format.
- Enter
=MOD(ROW(),2)=0 or =MOD(COLUMN(),2)=0
in the Format values box. - Click the Format button.
- Switch to the Fill tab.
- Select a color that you want to use.
- Click the OK button twice.
Let’s check out these steps in detail.
At first, open the spreadsheet with Excel. In case, you do not have the spreadsheet, create it first so that you can understand whether you want to colorize the rows or columns. Once done, use your mouse to select all the cells (rows and columns). If you’re going to apply the color scheme to the entire spreadsheet, click the arrow icon that allows you to select the spreadsheet from top to bottom.
Now make sure that you are in the Home tab. If so, click on the Conditional Formatting in the Styles section, and select the New Rule option from the list.
Following that, select the Use a formula to determine which cells to format option, and write down one of these in the Format values box-
- =MOD(ROW(),2)=0
- =MOD(COLUMN(),2)=0
The first one will colorize the desired color in alternate rows and the second one is for columns. After that, click the Format button.
Now, switch to the Fill tab, select a color that you want to use, and click on the OK button.
Then, you will have to click the OK button again to apply the change.
How to apply shading to alternate rows and columns in Excel?
In order to apply shading to alternative rows and columns in Excel, you need to use Conditional Formatting. It is required to use this function: =MOD(ROW(),2)=0 or =MOD(COLUMN(),2)=0. Then, you can switch to the Format menu and Fill tab to choose the color as per your requirements.
How to set color to alternate rows and columns in Excel?
As said earlier, you need to use a function to set colors to alternative rows and columns. First, you need to open the Conditional Formatting section and set a new rule. Then, select the Use a formula to determine which cells to format and use this formula: =MOD(ROW(),2)=0 or =MOD(COLUMN(),2)=0. Next, you can fill the rows and columns with your desired color.
That’s all! Now you can see the selected color in every alternate row or column.