Conditional Highlight two rows at a time

wmtsub

Active Member
Joined
Jun 20, 2018
Messages
322
Similar to a table where it highlights every other row, I need to highlight two rows, then leave two blank and then highlight two etc - for the whole sheet. Any ideas?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Use this Conditional Formatting formula:
Code:
=ISEVEN(INT((ROW()-1)/2))
 
Upvote 0
Select the columns you want to highlight. Click Conditional Formatting > New Rule > Use a formula > and enter:

=MOD(ROW()-1,4)>1

Click Format... and choose your fill color.
 
Upvote 0
Thanks guys, sadly neither of these worked.
They do, you must not be applying it correctly.

Follow these steps:
1. Select the entire range you want to apply this to
2. Go to Conditional Formatting
3. Select "New Rule"
4. Select "Use a formula to determine which cells to format"
5. Enter in the following formula:
=ISEVEN(INT((ROW()-1)/2))
6. Click the "Format" button, go to the Fill tab, and select your highlighting color
7. Click OK twice.

This will do the highlighting (2 rows on, 2 rows off, etc).
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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