Shade/Band Duplicate Rows Together

canthony24

Board Regular
Joined
Mar 24, 2016
Messages
70
I am trying to figure out how to band similar rows together and alternate the color. I would like it to looks like this example...

T1jiyUc
https://imgur.com/a/LK4jA7o

As you can see, each row is alternating color based on the name. Some are duplicates.

Ideas?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
The easiest is with a extra column (which you can hide) with the formula (assuming your example)

in column F, cell F7

=IF(AND(A7=A6,B7=B6,C7=C6,D7=D6,E7=E6),F6,NOT(F6))

and copy this down.

Highlight the range A7:Exx, and give it one of the two background colours.
Then in conditional formatting, with the range still selected, select from Formula and enter:

=$F7=TRUE

Then select the other colour for background. Press enter a few times and you should have the banded sets.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top