EDUCBA

EDUCBA

MENUMENU
  • Blog
  • All Courses
  • All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Shade Alternate Rows in Excel

Shade Alternate Rows in Excel

Madhuri Thakur
Article byMadhuri Thakur

Updated August 22, 2023

Shade Alternate Rows in Excel

Shade Alternate Rows in Excel (Table of Contents)
  • Introduction to Shade Alternate Rows in Excel
  • Methods to Shade Alternate Rows in Excel

Introduction to Shade Alternate Rows in Excel

Whenever you are working with large datasets in Excel, it is a practice that is common, and you must follow to shade the alternate rows with different colors. It makes the spreadsheet easy to read and visually appealing to the user. Showing alternate rows in a relatively small dataset is comparatively easy and can be done manually. However, manual shading will never work when you have data as large as billions and trillions of entries. In this article, we will inform you of ways to shade alternate rows with different colors in Excel.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

We can usually do this task in three different ways:

  • Using Excel’s Insert Table utility which automatically shades the alternate row.
  • With the help of Conditional formatting without using Helper Column.
  • With the help of Conditional formatting and using Helper Column.

Methods to Shade Alternate Rows in Excel

Let’s understand how to Shade Alternate Rows in Excel with some methods.

You can download this Shade Alternate Rows Excel Template here – Shade Alternate Rows Excel Template

Method #1 – Shade Alternate Rows in Excel using Table Utility

Suppose we have data of 1000 rows, as shown in the screenshot below. It is hard to shade each alternate row which consumes ample time manually. See the partial screenshot below:

Shade Alternate Rows in Excel 1-1

Step 1: Select all the rows where you want to shade every alternate row.

Shade Alternate Rows in Excel 1-2

Step 2: Navigate towards the Insert tab on Excel Ribbon and click on the Table button present under Tables group. You also can do this by hitting Ctrl + T simultaneously.

Shade Alternate Rows in Excel 1-3

Step 3: As soon as you click the Table button, the Create Table window will pop up with the rows selection. Click the OK button to apply the table format on the selected rows.

Shade Alternate Rows in Excel 1-4

Note: Make sure My Table has a headers option checked, as this option lets Excel know that the first row from your data is a row of headers. You can see a table output below, with alternate rows shaded.

Shade Alternate Rows in Excel 1-5

Step 4: You also have the option to design your table in shades through the Design tab. You can navigate to more designs and create your own custom design.Shade Alternate Rows in Excel 1-6

Method #2 – Conditional Formatting without Helper Column

We also can use conditional formatting to shade every alternate row in Excel. Follow the steps below:

Step 1: Highlight all non-empty rows by selecting them without a header (because we want the header color to be different, It will help recognize the headers).

Conditional Formatting without Helper Column 2-1

Step 2: Select the Home tab from the Excel ribbon and click the Conditional Formatting dropdown under the Styles group.

Conditional Formatting without Helper Column 2-2

Step 3: Select New Rule… option from the Conditional Formatting dropdown.

Conditional Formatting without Helper Column 2-3

As soon as you click it, you will see a new window named New Formatting Rule popping up.

Conditional Formatting without Helper Column 2-4

Step 4: Inside the New Formatting Rule window, select Use a Formula to determine which cell to format the rule under. Select a Rule Type: option.

Conditional Formatting without Helper Column 2-5

Step 5: Use formula as =MOD(ROW(),2)=1 under Formal Values, where this formula is a true box.

Conditional Formatting without Helper Column 2-6

Step 6: Click the Format button to add the color shades for the alternate rows.

Conditional Formatting without Helper Column 2-7

Step 7: When you press the Format button, you’ll see a Format Cells window popping up. Navigate to the Fill option and change the background color, as shown in the screenshot below. Once done, press the OK key.

Conditional Formatting without Helper Column 2-8

You can see an output as shown below. Each cell with an Odd number is shaded through the Excel sheet.

Conditional Formatting without Helper Column 2-9

MOD() is a modulo function that can be used to find the modulus of a reminder when one number is divided by the other. For example, if we use MOD(3, 2), it means dividing the number 3 by the number 2 will give a reminder as 1. The ROW() function gives the row number for each cell the formula runs on. The combination MOD(ROW(),2) = 1 checks only those rows where a reminder is equaled to 1 (meaning odd cells). Therefore, you can see all the odd rows are shaded.

Similarly, you can shade all even rows. All you need to do is, tweak the formula as MOD(ROW(),2) = 0. This means all the rows are divisible by 2 (in other words, all even rows will be selected and shaded).

Method #3 – Conditional Formatting with Helper Column

Step 1: Insert a helper column named S.NO. In the table and add the serial numbers for each row in it.

Insert a helper column 1

Follow the steps as same from Step 1 to Step 4 as we used in the previous example.

Step 2: Use the formula as =ISODD(A2) under Formal Values, where this formula is a true box. This formula works similarly; the previous one works in Example 1. It captures whether the value in cell A2 is odd or not. If it is odd, it performs the operation we perform on that cell.

Insert a helper column 2

Step 3: Again, do the same procedure as in the previous example. Click the Format button and select the appropriate color as a shade under the Fill section. Once done, press the OK button.

Insert a helper column 3

You can see an output as shown in the screenshot below.

Insert a helper column 4

These are the three easy methods to shade the alternate rows in Excel. Let’s wrap things up with some points to be remembered.

Things to Remember About Shade Alternate Rows in Excel

  • The easiest way to shade every alternate row in Excel is by using the Insert Table option. It is simple, versatile, time-saving, and has different designs that give you different layouts.
  • It is also possible to shade every 3rd, every 4th, or so row. All you need to do is change the divisor from 2 to the respective number (3, 4, etc.) under the MOD formula, which we use to define the row selection and formatting logic.
  • ISODD and ISEVEN functions can also be used. ISODD shades all the odd-numbered rows, and ISEVEN shades all the even-numbered rows.
  • You also can shade even and odd cells with different colors. For that, you need to apply two conditional formatting.

Recommended Articles

This is a guide to Shade Alternate Rows in Excel. Here we discuss the Methods to Shade Alternate Rows in Excel and the downloadable Excel template. You can also go through our other suggested articles –

  1. Alternate Row Color Excel
  2. Add Rows in Excel Shortcut
  3. Color in Excel
  4. Excel Freeze Rows
All in One Excel VBA Bundle
500+ Hours of HD Videos
15 Learning Paths
120+ Courses
Verifiable Certificate of Completion
Lifetime Access
Financial Analyst Masters Training Program
2000+ Hours of HD Videos
43 Learning Paths
550+ Courses
Verifiable Certificate of Completion
Lifetime Access
All in One Data Science Bundle
2000+ Hour of HD Videos
80 Learning Paths
400+ Courses
Verifiable Certificate of Completion
Lifetime Access
All in One Software Development Bundle
5000+ Hours of HD Videos
149 Learning Paths
1050+ Courses
Verifiable Certificate of Completion
Lifetime Access
Primary Sidebar
All in One Excel VBA Bundle500+ Hours of HD Videos | 15 Learning Paths | 120+ Courses | Verifiable Certificate of Completion | Lifetime Access
Financial Analyst Masters Training Program2000+ Hours of HD Videos | 43 Learning Paths | 550+ Courses | Verifiable Certificate of Completion | Lifetime Access
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

Download Shade Alternate Rows Excel Template

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Shade Alternate Rows Excel Template

EDUCBA

डाउनलोड Shade Alternate Rows Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more