Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Kutools for Excel 22.00 HOT

300+ Powerful Features You Must Have in Excel

Kutools-for-Excel

Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!

Read More Download Buy now

Office Tab 14.00HOT

Adding Tabbed Interface for Office

Office Tab

It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo

Read More Download Buy now

Kutools for Outlook 13.00NEW

100+ Powerful Features for Outlook

Kutools-for-Outlook

Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!

Read More Download Buy now

Kutools for Word  9.00NEW

100+ Powerful Features for Word

Kutools-for-Word

Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!

Read More Download Buy now

Classic Menu for Office

Bringing Back Your Familiar Menus

Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.

Read More Download Buy now

How to alternate row color based on group in Excel?

In Excel, to color every other row may be easier for most of us, but, have you ever tried to color the rows alternately based on a column value changes – Column A as following screenshot shown, in this article, I will talk about how to alternate row color based on group in Excel.

Color the rows alternately based on value changes with helper column and Conditional Formatting

Color the rows alternately based on value changes with a useful feature

Color the rows alternately with two colors based on value changes with helper column and Conditional Formatting


Insert page breaks, blank rows, bottom lines or background color into a range of data when value changes

Kutools for Excel's Distinduish differences feature helps you to insert page breaks, blank rows, bottom lines or background color into a range of data when value changes as you need. Click to download Kutools for Excel!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


Color the rows alternately based on value changes with helper column and Conditional Formatting

To highlight the rows alternately based on group, there is no direct way for you, so you need to create a helper column and then apply the conditional formatting function to color them. Please do as follows:

1. In cell D1, the same row of the headers, enter the number 0.

2. And in cell D2, type this formula: =IF(A2=A1,D1,D1+1) , and then drag this formula down to the cells that you want to apply it, see screenshot:

Note: In the above formula, A1, A2 are the first and second cell of the column which value changes, D1 is the cell that you entered the helper number 0.

3. Then select the data range A2:D18 which including the helper formula column, and click Home > Conditional Formatting > New Rule, see screenshot:

4. In the New Formatting Rule dialog box, select Use a formula to determine which cells to format under the Select a Rule Type section, and enter this formula =AND(LEN($A2)>0,MOD($D2,2)=0) into the Format values where this formula is true text box, see screenshot:

Note: A2 is the first cell of your column which you color based on, and D2 is the first cell of the helper column you created of the selected range

5. Then click Format button to go to the Format Cells dialog, and select one color you like under the Fill tab, see screenshot:

6. Then click OK > OK to close the dialogs, and the rows have been highlighted alternately based on the specific column which value changes, see screenshot:


Color the rows alternately based on value changes with a useful feature

If the above method is difficult for you, you can use a useful tool-Kutools for Excel, with its Distingush differences feature, you can quickly color the rows based on the group alternately in Excel.

Tips:To apply this Distingush differences feature, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Click Kutools > Format > Distingush differences, see screenshot:

2.In the Distingush differences by key column dialog box, please do the following operations as you need. See screenshot:

3.After finishing the settings, click Ok button to close the dialog, and you will get the following result as you need:

Click to Download Kutools for Excel and free trial Now!


Color the rows alternately with two colors based on value changes with helper column and Conditional Formatting

If you want to shade the rows with two different colors alternately based on value changes as following screenshot shown, this also can be solved in Excel with Conditional Formatting.

1. First, you should create a new helper column and formula as first method from step 1 to step 2, you will get the following screenshot:

2. Then select the data range A2:D18, and then click Home > Conditional Formatting > Manage Rules, see screenshot:

3. In the Conditional Formatting Rules Manager dialog box, click New Rule button, see screenshot:

4. In the popped out New Formatting Rule dialog, click Use a formula to determine cells to format under the Select a Rule Type, and then enter this formula =ISODD($D2) (D2 is the first cell of the helper column you created the formula), and then click Format button to choose the filling color you like for the odd rows of the group, see screenshot:

5. Then click OK to exit this dialog to return back the former Conditional Formatting Rules Manager dialog box, please click New Rule button again to create another rule for the even rows of the group.

6. In the New Formatting Rule dialog box, click Use a formula to determine cells to format under the Select a Rule Type as former, and then enter this formula =ISEVEN($D2) (D2 is the first cell of the helper column you created the formula), and then click Format button to choose another background color for the even rows of the group, see screenshot:

7. Then click OK to return the Conditional Formatting Rules Manager, and you can see the two rules are created as follows:

8. Then click OK to close this dialog, and you can see your selected data range has been shaded with two different colors alternately based on the column value changes.

  • Notes:
  • 1. After coloring the rows alternately, you can hide the helper column as you need, but you can’t delete it.
  • 2. If there are no headers in your data range, you just enter 1 as the first number in the helper column, and then apply the helper formula as usual.

More articles:

  • Increment Numbers When Value Changes In Another Column
  • Supposing, you have a list of values in column A, and now you want to increment number by 1 in column B when the value in column A changes, which means the numbers in column B increment until the value in column A changes, then the number increment starts from 1 again as left screenshot shown. In Excel, you can solve this job with following method.
  • Insert Blank Rows When Value Changes In Excel
  • Supposing you have a range of data, and now you want to insert blank rows between the data when value changes, so that you can separate the sequential same values in one column as following screenshots shown. In this article, I will talk about some tricks for you to solve this problem.
  • Sum Cells When Value Changes In Another Column
  • When you work on Excel worksheet, sometime, you may need to sum cells based on group of data in another column. For example, here, I want to sum the orders in column B when the data changes in column A to get the following result. How could you solve this promblem in Excel?
  • Insert Page Breaks When Value Changes In Excel
  • Supposing, I have a range of cells, and now, I want to insert page breaks into the worksheet when values in column A changes as left screenshot shown. Of course, you can insert them one by one, but are there any quick ways to insert the page breaks at once based on the changed values of one column?

The Best Office Productivity Tools

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. 60-day money back guarantee.
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
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Feature Tutorials