How to Alternate Row Colors in Excel: The Complete Guide to Banded Rows
Learn how to alternate row colors in Excel using tables, conditional formatting, and formulas. Make spreadsheets easier to read in minutes.

Knowing how to alternate row colors in Excel is one of the most practical formatting skills you can develop as a spreadsheet user. Whether you are managing a budget, tracking inventory, or presenting data to a team, banded rows dramatically improve readability by giving the eye a clear visual lane to follow across wide tables. Just as guests at excellence playa mujeres rely on clear signage to navigate a sprawling resort, your spreadsheet readers rely on visual structure to navigate dense data without losing their place.
Excel offers three primary methods for creating alternating row colors: converting your data range to a formal Excel Table, applying conditional formatting with the MOD and ROW functions, or manually painting rows with fill colors. Each approach has trade-offs in flexibility, maintenance burden, and dynamic behavior when rows are added or deleted. Understanding which method fits your situation will save you from reformatting entire sheets every time the data changes.
The Table method is the fastest starting point for most users. When you insert a table via Insert › Table or press Ctrl+T, Excel automatically applies a banded-row style and updates the pattern as rows are added. You can also browse dozens of built-in color schemes under Table Design › Table Styles, making it easy to match corporate colors or align with a professional theme. This approach requires almost no formula knowledge, which is why it is the most commonly recommended technique in beginner guides.
Conditional formatting with the MOD and ROW functions is the more powerful alternative. It works on any range regardless of whether it has been converted to a table, and it lets you apply banding to specific columns, skip header rows precisely, or even alternate colors every two or three rows instead of every one. If you already use conditional formatting for data validation highlights or color scales, adding a banding rule fits naturally into your existing workflow and keeps everything managed in one dialog.
Manual fill coloring is the simplest but least maintainable option. You select every other row, apply a background color from the Home ribbon, and move on. The problem emerges the moment someone inserts a new row in the middle of the data — the pattern breaks immediately and must be reapplied by hand. For static reports that will never change, manual coloring is acceptable, but for living datasets it quickly becomes a liability rather than an asset.
Beyond the three core methods, Excel also supports banding via VBA macros, Power Query output formatting, and PivotTable styles. These are niche approaches suited to advanced automation scenarios, but they reinforce the same principle: visual structure in a spreadsheet is not cosmetic. Studies on data presentation consistently show that formatted tables are read faster and with fewer errors than raw unformatted grids, which is why skills like how to alternate row colors in excel appear on Microsoft Office certification exams and corporate onboarding checklists alike.
This guide will walk through every method step by step, covering the exact clicks, formulas, and settings you need. You will also find tips for choosing colors that remain readable when printed in grayscale, advice on handling merged cells and filtered data, and a comparison of banding approaches across Excel versions including Excel 365, Excel 2021, Excel 2019, and Excel for Mac. By the end, alternating row colors will be a technique you can apply in under two minutes on any dataset.
Alternating Row Colors in Excel: By the Numbers

How to Alternate Row Colors in Excel: Step-by-Step Methods
Method 1 — Convert Range to an Excel Table
Method 2 — Apply Conditional Formatting with MOD and ROW
Method 3 — Manual Fill Color for Static Reports
Method 4 — Banding Every N Rows with MOD Formula
Method 5 — PivotTable Banded Row Style
The conditional formatting approach using MOD and ROW is the most versatile method, and understanding how it works gives you the power to customize banding in ways the Table method cannot match. The ROW() function returns the current row number of the cell being evaluated. The MOD function divides that number by 2 and returns the remainder — either 0 for even rows or 1 for odd rows. By writing =MOD(ROW(),2)=0, you create a logical test that evaluates to TRUE for every even-numbered row, triggering the fill color you selected in the Format dialog.
To apply this rule, start by selecting your data range. If your data begins in row 2 and extends to row 100 across columns A through F, select A2:F100. Navigate to Home › Conditional Formatting › New Rule. In the dialog that appears, choose 'Use a formula to determine which cells to format.' Type the formula =MOD(ROW(),2)=0 in the formula box. Then click the Format button, go to the Fill tab, select your desired background color, and click OK twice to confirm both dialogs. The alternating pattern will appear immediately across the selected range.
One important nuance: if your headers are in row 1 and your data starts in row 2, even rows in the spreadsheet (2, 4, 6…) will be highlighted. This usually produces the effect you want because row 2 — the first data row — gets the color, making the data feel organized from the top. However, if your layout shifts (for example, if you add a second header row or move your table down by a row), you may need to adjust the formula to =MOD(ROW()-headerOffset,2)=0 to keep the banding aligned visually with your first data row.
Adding a second rule lets you color both sets of alternating rows rather than just one. After creating the first rule, return to Conditional Formatting › Manage Rules. Add a second rule using =MOD(ROW(),2)=1 with a different (or white) fill color. With two rules defined, every row in your range has an explicit fill color assigned by conditional formatting, which means Excel will not fall back to any manual cell formatting underneath — giving you complete visual control over the entire range.
Conditional formatting banding also works well alongside other rules. For example, you might have an existing rule that highlights cells containing values above a threshold in red or green. Banding rules should be placed below data-driven rules in the Manage Rules priority list (rules at the top of the list override those below). This ensures that a threshold alert overrides the banding color on a specific cell while the rest of the banded pattern remains intact. Managing rule priority is a key skill for anyone building dashboard-quality Excel reports.
When you filter your table, conditional formatting banding misbehaves in one specific way: the visible rows may no longer alternate correctly because hidden rows still occupy their row numbers. If filtered banding consistency matters — for example, in a report where end users will frequently filter by region or product — consider converting the range to an Excel Table instead. Tables reapply banding only to visible rows during a filter, making the visual pattern stay correct no matter how the data is filtered or sorted.
For users who frequently need banding on new sheets, consider saving a conditional formatting rule inside a custom Excel template (.xltx file). Create a blank workbook, apply the MOD/ROW banding rule to a large default range like A1:Z1000, and save the file as a template. Every new workbook created from that template will have the banding rule pre-loaded, eliminating the need to re-enter the formula each time. This is particularly useful in team environments where spreadsheet consistency is a priority and the institute of creative excellence in presentation quality is expected across all shared files.
How to Merge Cells, Freeze Rows, and Create Drop Down Lists Alongside Banding
Freezing the header row ensures that column labels remain visible while you scroll down through hundreds of banded rows. Click on row 2 — the first data row beneath your headers — then go to View › Freeze Panes › Freeze Panes. Excel draws a horizontal line under row 1, and the header stays locked in place no matter how far you scroll. This technique works seamlessly with Table banding and conditional formatting banding, since freezing affects only the display, not the underlying format rules.
When working with wide datasets that also have many columns, you may want to freeze both a row and a column simultaneously. Click the cell that is one row below and one column to the right of the headers and labels you want to lock — for example, cell B2 if column A contains row labels and row 1 contains column headers. Then apply Freeze Panes. Excel will freeze everything above and to the left of that cell, creating a locked pane in both directions. Banded rows in the scrollable area will still display correctly as you pan through the data.

Excel Table Banding vs. Conditional Formatting Banding: Which Is Better?
- +Excel Tables update banding automatically when rows are added or deleted — zero manual maintenance
- +Table Styles offer 60+ built-in color themes accessible in two clicks without any formula knowledge
- +Conditional formatting banding works on any range, including non-table data and PivotTable-adjacent areas
- +MOD/ROW formula banding allows banding every 2, 3, or N rows for grouped data layouts
- +Table banding respects filtered rows, showing correct alternation even when rows are hidden by a filter
- +Conditional formatting rules can coexist with other rules (thresholds, duplicates) using priority stacking
- −Excel Tables disable certain worksheet features like merged cells and some array formulas
- −Conditional formatting rules can slow down large workbooks with 50,000+ rows if applied to entire columns
- −Table Styles cannot easily produce banding every two rows — you need conditional formatting for that
- −Manual fill coloring breaks immediately when rows are inserted, requiring full reapplication
- −Conditional formatting banding does NOT update correctly during filtering — visible rows may mismatch
- −Table styles may revert to defaults when copying sheets to workbooks with different themes
Banding Checklist: 10 Things to Verify Before Sharing Your Spreadsheet
- ✓Confirm banding starts from the first data row, not the header row, so the pattern aligns correctly.
- ✓Test the sheet with a filter applied to verify banding still looks correct on visible rows.
- ✓Check that inserting a new row mid-table preserves the alternating color pattern automatically.
- ✓Print preview in black and white to ensure banded rows remain distinguishable in grayscale.
- ✓Verify that any conditional formatting rules for data alerts are listed above banding rules in priority.
- ✓Confirm that merged cells, if any, do not break the MOD/ROW conditional formatting logic.
- ✓Ensure column widths are wide enough that banded row colors are visible rather than obscured by long text.
- ✓Check that the band color meets WCAG contrast standards if the spreadsheet will be shared publicly.
- ✓Test the drop-down lists in banded rows to confirm Data Validation still fires correctly.
- ✓Save a backup copy before converting a plain range to an Excel Table to preserve reversibility.
Use Light Gray or Pale Blue for Maximum Readability and Print Compatibility
The most universally recommended alternating row color is a light gray (hex #F2F2F2 or Excel's 'White, Background 1, Darker 5%'). It provides just enough contrast to guide the eye without overpowering data, and it prints correctly in both color and grayscale. Pale blue (#DDEEFF) is the second most popular choice for corporate reports. Avoid dark colors like navy or forest green for banding — they force white text that reduces legibility and prints as solid black in monochrome output.
Once you have the basics of alternating row colors in place, there are several common mistakes that trip up even experienced Excel users. The first and most frequent error is applying banding to entire columns rather than a defined data range. When you select a full column (like column A by clicking the column header) and apply a conditional formatting rule, Excel must evaluate the formula for every one of the 1,048,576 rows in that column. This creates an enormous number of conditional format evaluations and can cause significant slowdowns, especially when combined with complex formulas elsewhere in the workbook.
The fix is straightforward: always define a finite range for your banding rule. If your data currently spans rows 1 through 200 but may grow to 500 rows, set the range to A1:Z1000 — large enough to accommodate growth without covering the entire column. For Table-based banding, Excel manages the range automatically, so this issue does not apply. But for conditional formatting, being disciplined about range selection is essential for maintaining workbook performance as file size grows.
A second common mistake is forgetting to exclude the header row from the banding formula range. If your headers are in row 1 and your conditional formatting rule is applied starting from A1, the header row may receive the banding color and look indistinguishable from a data row. The cleanest solution is to start your conditional formatting range from A2, leaving the header unaffected. If you want the header to have its own distinct background color — a best practice for readability — apply a separate manual fill to row 1 that is not governed by conditional formatting.
Color blindness affects approximately 8% of men and 0.5% of women, and one of the most common forms is red-green color blindness. If you choose red and green as your alternating row colors thinking they create a clear visual distinction, a significant portion of your audience may perceive both rows as nearly identical shades of brown. For accessible spreadsheet design, use colors that differ in both hue and lightness. A combination of white and light blue, or white and light gray, is universally readable and recommended by accessibility guidelines.
Banding also interacts unexpectedly with Excel's Sort feature when you use manual fill coloring. When you sort banded data by a column, the row colors travel with the rows — they do not re-sort to maintain the alternating pattern. After sorting, your banding will be scrambled. This is another reason why Table banding and conditional formatting banding are strongly preferred over manual coloring for any dataset that will ever be sorted. Both dynamic methods evaluate banding based on the current row position after sorting, so the alternating pattern is automatically correct regardless of how the data is rearranged.
When working across multiple sheets or preparing a workbook that others will edit, it is worth adding a note in a comment or a separate 'README' tab explaining how the banding is applied. If a colleague opens the file, deletes what they think is an unused conditional formatting rule, and suddenly the entire sheet loses its coloring, the process of re-creating the rule from memory is frustrating and error-prone.
Documenting the technique also helps when excellence resorts and corporate clients request that their branded colors be applied consistently across all deliverable spreadsheets — the recipient can maintain the style without guesswork.
Finally, be aware that pasting data from external sources can overwrite conditional formatting rules if you paste with full formatting (the default Ctrl+V behavior). To avoid this, use Paste Special › Values (Ctrl+Alt+V, then V) when importing data from another spreadsheet, database export, or web copy. This pastes only the data values, leaving your banding rules intact. Similarly, when copying a banded table to a new sheet, right-click the sheet tab and choose 'Move or Copy' — this preserves all conditional formatting and Table styles without the risk of partial paste corruption.

When you apply a filter to a range with conditional formatting banding, hidden rows still count toward the ROW() calculation. This means the visible alternating pattern may appear inconsistent — two consecutive visible rows might both be even-numbered after filtering. If correct banding during filtered views is a requirement, convert your data range to an Excel Table, which redraws banding only for visible rows and maintains the alternating pattern accurately through any filter combination.
Advanced users can push alternating row colors well beyond simple even/odd banding. One powerful technique is grouping banding, where every two rows share the same color before the pattern switches. This is ideal for datasets where each logical record spans two spreadsheet rows — for example, a contact list where the first row holds a name and phone number and the second row holds an address and email. The formula =MOD(INT((ROW()-firstDataRow)/2),2)=0 achieves this effect. Replace firstDataRow with the actual row number of your first data row, and the formula will band rows in pairs automatically.
Another advanced application is column-banded alternating colors rather than row-banded. Instead of highlighting every other row, you highlight every other column — useful for wide financial models where columns represent months or quarters and readers scan vertically rather than horizontally. The conditional formatting formula for column banding is =MOD(COLUMN(),2)=0. Apply it to your data range and even-numbered columns will receive the fill color you specify. The visual effect is similar to the banded-row style used in VLOOKUP Excel reference tables where the lookup column and return columns need visual separation.
Excel 365 users have access to dynamic array functions that open new possibilities for programmatic banding. The SEQUENCE function, for example, can generate a column of row indices that you can use in combination with MOD to create banding logic inside named formulas or LET expressions. While these techniques are more advanced and typically reserved for reporting automation scenarios, they illustrate how the underlying MOD/ROW pattern is extensible to nearly any banding requirement you might encounter in professional spreadsheet development.
For users who manage large teams or distribute Excel templates across an organization, VBA macros offer a way to apply banding programmatically with a single button click. A simple macro loops through the used range, checks whether each row index is even or odd using the Mod operator in VBA, and applies a specific interior color.
The advantage over manual coloring is speed — a macro can band a 10,000-row table in under one second — and repeatability. The macro can be assigned to a keyboard shortcut or a button on the ribbon, making it accessible to non-technical team members who need to reapply banding after major data imports.
Power Query is another route to consistently formatted outputs. When you load a query result into Excel, you can apply a Table style to the output table in the query settings, and that style — including banding — persists every time the query refreshes. This is particularly useful for reports connected to live data sources like SQL Server, SharePoint lists, or Excel workbooks on SharePoint. The banding is refreshed along with the data, meaning no manual formatting is ever needed after the initial setup. It is a technique worth mastering for anyone who builds recurring reports.
When creating banded Excel reports for clients — especially in fields like finance, legal, or consulting — it is common to align band colors with the client's brand palette. You can define custom Table styles in Excel by going to Table Design › Table Styles › New Table Style. In the dialog, you can specify fill colors for the 'First Row Stripe' and 'Second Row Stripe' elements individually, as well as header row and total row colors.
Save the custom style with a descriptive name and it becomes available in all future workbooks created on that machine, streamlining the process of delivering branded deliverables to clients who expect excellence el carmen-level attention to visual detail in every document.
Banding techniques also translate to Word and PowerPoint through copy-paste. When you copy a banded Excel table and paste it into Word using Paste Special › Microsoft Excel Worksheet Object, the banding is preserved as part of the embedded object and can be updated by double-clicking to re-enter Excel editing mode.
For PowerPoint presentations, pasting as an Enhanced Metafile or Picture captures the banding visually, which is often sufficient for slide decks. These cross-application workflows are especially relevant for analysts who need to maintain a consistent visual standard — the kind of inner excellence book authors describe as professional craft — across all client-facing materials.
Mastering alternating row colors in Excel is ultimately about building a habit of structured, readable spreadsheet design. The technique itself takes minutes to learn, but the downstream benefits compound over every report, dashboard, and dataset you produce afterward. When colleagues open your files, they spend less time deciphering which row they are on and more time engaging with the data. When you print a banded table in a meeting, rows are easy to follow across the page without a ruler. These small ergonomic gains add up significantly over the course of a career spent in spreadsheets.
The Table method remains the recommended starting point for new Excel users because it requires no formulas and provides instant visual feedback. The conditional formatting approach is the right upgrade for users who need more control — banding every N rows, combining banding with other formatting rules, or applying banding to data that cannot be converted to a table due to worksheet constraints. Understanding both methods gives you the flexibility to choose correctly for each situation rather than defaulting to one approach in every context.
Color selection deserves more deliberate attention than most users give it. A pale gray or light blue alternating row color is almost always the right choice for professional reports because it guides the eye without distracting from the data. Saturated colors — bright yellow, orange, or deep red — draw attention to themselves rather than to the content of the cells, which is counterproductive. If your organization has brand colors, use a very pale tint (10–15% saturation) rather than the full brand color for banding, reserving the full-saturation color for accent rows like totals or highlights.
Print compatibility is a frequently overlooked dimension of row banding decisions. Before distributing any banded spreadsheet that recipients may print, test the print preview in File › Print and look at the grayscale rendering. Light colors like pale gray and pale blue print as very faint shading that still guides the eye.
Medium colors like sky blue and light green print as noticeable gray bands. Dark colors like navy and forest green print as solid black bands that obscure text — a serious usability problem. The two-second print preview check saves significant embarrassment when a client prints your report and finds unreadable rows.
For organizations that use Excel heavily as a reporting tool — particularly in finance, operations, and human resources — establishing a style guide for spreadsheet formatting is a high-leverage investment. The guide should specify which banding method to use (Table vs. conditional formatting), which colors are approved for banding, whether headers should be bold and colored, and how totals rows should be formatted. When everyone on the team follows the same conventions, files are easier to maintain, easier to audit, and present a more professional face to external stakeholders and clients.
Finally, keep in mind that Excel's banding tools are continuously improving. Microsoft regularly adds new Table styles, expands conditional formatting capabilities, and introduces new functions through Excel 365 that interact with formatting logic. Checking Microsoft's official Excel blog and the Excel community forums periodically will keep you current on new techniques as they are released.
The core MOD/ROW pattern has been stable for decades and will remain relevant, but supplementary tools and shortcuts are added regularly — staying current ensures you are always using the most efficient path to a polished, readable spreadsheet. Excellence coral playa mujeres and similar premium brands invest in consistent visual standards as a marker of quality, and your Excel reports deserve the same thoughtful approach to presentation.
Practice is the fastest way to make these techniques automatic. Open any existing spreadsheet you regularly use, apply Table banding using Ctrl+T, browse the Table Styles gallery, then undo and apply the same color effect using the conditional formatting MOD/ROW formula instead. Comparing the two side by side — and noting which is easier to maintain as you add and delete rows — will give you an immediate, practical understanding that no amount of reading can substitute for. With repetition, alternating row colors will become a reflex, not a lookup.
Excel Questions and Answers
About the Author
Business Consultant & Professional Certification Advisor
Wharton School, University of PennsylvaniaKatherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.




