Alternate coloring of cell rows with twist?

GLOpro

Board Regular
Joined
Jul 30, 2005
Messages
116
Hi,

I am looking for a method that would alternately color the rows but if the cell value was identical it would be the same.

ie:

1
2
2
3
4
5
5

Row 1 would be white
Row 2 & 3 would be grey (since they are the same cell value)
Row 4 would be white
Row 5 would be grey
Row 6 & 7 would be white



Part 2 of this:
Is there a formula that will calculate the sum of cells (for each series of same color rows?)
ie
Row 1 sum=1
Row 2&3 sum=4
Row 4 sum=3
Row 5 sum=4
Row 6 & 7 sum=10

Thanks in advance.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,203,542
Messages
6,056,012
Members
444,840
Latest member
RazzelDazel

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