Apply color to alternate rows or columns (2024)

Adding a color to alternate rows or columns (often called color banding) can make the data in your worksheet easier to scan. To format alternate rows or columns, you can quickly apply a preset table format. By using this method, alternate row or column shading is automatically applied when you add rows and columns.

Apply color to alternate rows or columns (1)

Here's how:

  1. Select the range of cells that you want to format.

  2. Go toHome > Format as Table.

  3. Pick a table style that has alternate row shading.

  4. To change the shading from rows to columns, select the table, under TableDesign, and then uncheck the Banded Rows box and check the Banded Columns box.

    Apply color to alternate rows or columns (2)

Tip:If you want to keep a banded table style without the table functionality, you can convert the table to a data range. Color banding won't automatically continue as you add more rows or columns but you can copy alternate color formats to new rows by using Format Painter.

Use conditional formatting to apply banded rows or columns

You can also use a conditional formatting rule to apply different formatting to specific rows or columns.

Apply color to alternate rows or columns (3)

Here's how:

  1. On the worksheet, do one of the following:

    • To apply the shading to a specific range of cells, select the cells you want to format.

    • To apply the shading to the whole worksheet, select the Select All button.

      Apply color to alternate rows or columns (4)

  2. Go toHome > Conditional Formatting > New Rule.

  3. In the Select a Rule Type box, selectUse a formula to determine which cells to format.

    Apply color to alternate rows or columns (5)

  4. To apply color to alternate rows, in the Format values where this formula is true box, type the formula =MOD(ROW(),2)=0.

    To apply color to alternate columns, type this formula: =MOD(COLUMN(),2)=0.

    These formulas determine whether a row or column is even or odd numbered, and then applies the color accordingly.

  5. SelectFormat.

  6. In the Format Cells box, selectFill.

  7. Pick a color and selectOK.

  8. You can preview your choice under Sample and selectOK or pick another color.

    Tips:

    • To edit the conditional formatting rule, click one of the cells that has the rule applied, go toHome > Conditional Formatting > Manage Rules > Edit Rule, and then make your changes.

    • To clear conditional formatting from cells, select them, go toHome > Clear, and pick Clear Formats.

      Apply color to alternate rows or columns (6)

    • To copy conditional formatting to other cells, click one of the cells that has the rule applied, go toHome > Format Painter Apply color to alternate rows or columns (7), and then select the cells you want to format.

Apply color to alternate rows or columns (2024)

FAQs

How do I alternate rows or columns in Excel with color? ›

Select the range of cells that you want to format. Go to Home > Format as Table. Pick a table style that has alternate row shading. To change the shading from rows to columns, select the table, under Table Design, and then uncheck the Banded Rows box and check the Banded Columns box.

How do you apply color to alternate rows or columns on a Mac? ›

Click the table to select it, then in the Format sidebar, click the Table tab. In the sidebar, select the Alternating Row Color checkbox, then click the color well to select a color.

What applies a fill color to alternating rows or columns making the table easier to read? ›

To alternate row or column colors and make tables easier to read, select Design > Banded Rows or Design > Banded Columns.

How do I remove color to alternate rows or columns? ›

Remove alternate rows color in Excel with a click

If you no longer want to have color banding in your Excel table, you can remove them literally in a single click. Select any cell in your table, go to the Design tab and uncheck the Banded rows option.

How do you alternate row color based on value in Excel? ›

Actually, it is what does the trick and applies formatting to the whole row based on a value in a given cell. Click the "Format…" button and switch to Fill tab to choose the background color. If the default colors do not suffice, click the "More Colors…" button to pick the one to your liking, and then click OK twice.

How to apply conditional formatting to multiple rows and columns? ›

Select Your Range Before You Begin
  1. Highlight all of the cells in the sheet to which you'll apply the formatting rules. ...
  2. Click Conditional Formatting.
  3. Select Highlight Cells Rules, then choose the rule that applies to your needs. ...
  4. Fill out the Less Than dialog box and choose a formatting style from the dropdown.

How to alternate row colors in numbers? ›

Select the table, then in the Format sidebar, click the Table tab. In the sidebar, select the Alternating Row Color checkbox, then click the color well to select a color.

Which option displays fill color in alternate rows in an Excel table? ›

Users can use either of the following 2 formulas for unique formatting of their data: =MOD(ROW(),2)=0: To start highlighting every alternate row starting from the second row. =MOD(ROW(),2)=1: To start highlighting every alternate row starting from the first row.

What is used to arrange in rows and in columns? ›

A table is an arrangement of information or data, typically in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis.

How do you vary the fill colors of the columns by point? ›

On the Format tab, in the Current Selection group, click Format Selection. In the Format Data Series pane, click the Fill & Line tab, expand Fill, and then do one of the following: To vary the colors of data markers in a single-series chart, select the Vary colors by point check box.

How do you alternate row colors in Excel without a table? ›

You can alternate row colors in Excel without using a table by using the Format as Table option. First, select the range of cells that you would like to format. Then, go to the Home tab, select the Format as Table option, and choose the color palette you want.

How to color code rows in Excel? ›

How to color code in Excel
  1. Input your data on an Excel spreadsheet. ...
  2. Select the data you want to color code. ...
  3. Navigate to Conditional Formatting. ...
  4. Select the color coding option you want to use. ...
  5. Apply rules for the conditional formatting.
Aug 8, 2022

How do I make two bars different colors in Excel? ›

In the Format Data Series pane, click the Fill & Line tab, expand Fill, and then do one of the following: To vary the colors of data markers in a single-series chart, select the Vary colors by point check box.

How do I change the color of a column in Excel based on another column? ›

On the Home tab of the ribbon, click Conditional Formatting > New Rule... Select 'Use a formula to determine which cells to format'. Activate the Fill tab. Select a highlight color.

How do you alternate colors in Excel bar chart? ›

Change the color of a chart
  • Click the chart you want to change.
  • In the upper right corner, next to the chart, click Chart Styles .
  • Click Color and pick the color scheme you want.

Top Articles
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 6041

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.