Conditional Formatting Question

JoshYoung81

New Member
Joined
Dec 21, 2017
Messages
5
Given the Cell set in columns A to C, I want each of the first 5 rows to be shaded and the next 8 not to be (or shaded differently), and so on, alternating by date.
[TABLE="width: 181"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[/TR]
[TR]
[TD="align: right"]2/19/18[/TD]
[TD]0730[/TD]
[TD]0830[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0830[/TD]
[TD]0900[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0900[/TD]
[TD]0930[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0930[/TD]
[TD]1200[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1230[/TD]
[TD]1630[/TD]
[/TR]
[TR]
[TD="align: right"]2/20/18[/TD]
[TD]0730[/TD]
[TD]0830[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0830[/TD]
[TD]1100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1100[/TD]
[TD]1200[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1300[/TD]
[TD]1330[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1330[/TD]
[TD]1400[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1400[/TD]
[TD]1430[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1430[/TD]
[TD]1530[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1530[/TD]
[TD]1630[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Select the columns you want to shade, say A:C. Then click Conditional Formatting > New Rule > Use a formula > and enter:

=MOD(COUNTIF($A$1:$A1,">0"),2)

click Format and choose a fill color.
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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