Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to automatically color alternating rows/columns in Excel?

Supposing you have a range of data, now you want to automatically color alternating rows when you add new data at the bottom of the range as below screenshots shown, how can you quickly solve this task? This tutorial can give you some suggestions.


Select Interval Rows & Columns (quickly help you to select every nth row/column in a range.)

doc select interval row
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • 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.

arrow blue right bubble Automatically color alternating rows/columns with formatting as a table


In Excel, if you want to automatically color alternating rows or columns, you can create a table.

Kutools for Excel, with more than 120 handy Excel functions, enhance working efficiency and save working time.

1. Select the range you want to work at, and click Insert > Table, see screenshot:

doc auto color alternating row 3

2. In the Create Table dialog, check My table has headers (If your range has no headers, uncheck this option), and click OK. See screenshot:

doc auto color alternating row 4

3. Then go to Design tab of the Table Tools, and select the table styles you like. See screenshot:

doc auto color alternating row 5

Now, the table will be automatically colored alternating rows when you add new data.

doc auto color alternating row 6

Tip: If you want to automatically color alternating columns, just need to check Banded Columns in the Table Style Options group under Design tab.

doc auto color alternating row 7


arrow blue right bubble Automatically color alternating rows/columns with Conditional Formatting

You also can use Conditional Formatting function to auto color every other rows/columns.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

1. Select the data range you want to color the alternating rows, and click Home > Conditional Formatting > New Rule. See screenshot:

doc auto color alternating row 8

2. In the New Formatting Rule dialog, click Use a formula to determine which cells to format, and type this formula =MOD(ROW(),2) into the Format values where this formula is true textbox. See screenshot:

doc auto color alternating row 9

3. Then click Format, and under Fill tab, select a color you need to shade the alternating rows, see screenshot:

doc auto color alternating row 10

4. Click OK > OK. Now you can see the rows will be automatically shaded when you add new data.

.doc auto color alternating row 11doc arrow rightdoc auto color alternating row 12

Tips:

(1) If you want to color alternating columns, use this formula =MOD(COLUMN(),2).

(2) The fill color will be added to new rows/columns only if the new added data has the same format as its above data.


arrow blue right bubble Automatically color alternating rows/columns with Kutools for Excel

If you neither want to change the range to table, nor remember formulas, you can try to use the Alternate Row/Column Shading function of Kutools for Excel, which also can help you quickly automatically color every other rows or columns while adding new data.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

1. Select the data range you need to color, and click Kutools > Format > Alternate Row/Column Shading. See screenshot:

doc auto color alternating row 16

2. In the popped out dialog, do as below operation:

doc auto color alternating row 14
1) Specify to alternate color by rows or columns;

2) Select one of the shading method: Conditional formatting or Standard formatting (if you have applied conditional formatting in your range, when you want to shade them by every other row/column, please choose Standard formatting option);

3) Select one color you want to shade the range by alternating rows/columns.

4) Type 1 into the Shade every box.

3. Click Ok. And the rows will be auto colored by every other while adding new data.

doc auto color alternating row 1doc arrow rightdoc auto color alternating row 2

Auto color alternating column

doc auto color alternating row 15

Note:

1. If you want to remove all conditional formatting and background color, select the range and check Remove existing alternated row shading option in Alternate Row/Column Shading dialog.

2. The new adding data must be as the same format with its above data, or the alternate shading cannot be automatically added to new added rows/columns.

pay attention1If you are interested in this addi-in, click here to free download Kutools for Excel


You may be interested in these articles:


doc KTE


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    hasansofla · 8 months ago
    با سلام.میخواستم بپرسم ممکنه رنگ یک سطر رو بطور کلی شرطی کنیم ک با وجود یک کلمه تو سر همه یک شکل بشن؟مثلا اگه تو یه سطر کلمه خروج اومد کل سطر قرمز بشن یا اگه ورود اومد همه سبز بشن