Conditional Formatting question

Salar

Board Regular
Joined
Mar 19, 2008
Messages
122
I have a spreadsheet with is approx. 10000 row by12 cloums wide and I am trying to colour band each alternative row for eay reading. The formula I am using, which allows filtering is;

PHP:
=MOD(SUBTOTAL(3,$A1:$A1),2)

I can insert this in row A and using the format painter I can copy this conditional format down. I have tried to select the whole spreadsheet ctrl "A" and inserting the CF formula but this doesn't seem to work.

Can someone advise an easier way to do this?


Thanks

Salar
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,

Highlight all of your data, go to CF and use the following formula:

Code:
=MOD(ROW(),2)

This should apply colour to alternative rows of highlighted selection area:)

Cheers,
Ian.
 
Upvote 0
Hi,

Highlight all of your data, go to CF and use the following formula:

Code:
=MOD(ROW(),2)

This should apply colour to alternative rows of highlighted selection area:)

Cheers,
Ian.

Thanks for this Ian, unfortunately this formula does not maintain the format when the data is filtered. Hence my formula whch does not like to be entered using highlighted rows and columns.

Cheers

S
 
Upvote 0
With no CF applied, I would do it this way:

1. Select all the data (or as much of the sheet as you want the CF applied to) with A1 being the active cell.

2. Use this CF formula: =MOD(SUBTOTAL(3,$A$1:$A1),2)
 
Upvote 0
Thank you Peter this work perfectly.


With no CF applied, I would do it this way:

1. Select all the data (or as much of the sheet as you want the CF applied to) with A1 being the active cell.

2. Use this CF formula: =MOD(SUBTOTAL(3,$A$1:$A1),2)
 
Upvote 0

Forum statistics

Threads
1,216,082
Messages
6,128,713
Members
449,464
Latest member
againofsoul

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