Shade alternate VISIBLE rows only in EXCEL

MJL

New Member
Joined
Nov 7, 2003
Messages
1
I have been trying for a while to crack this problem and so far I have been able to shade alternate rows using conditional formatting. However, my spreadsheet has a filter attached to it and I only need the alternate shading to be applied to the VISIBLE rows (after the filter has been applied).
The current result gives me a barcode affect where shading of the VISIBLE rows are not alternate and appear random.

I hope I have explained myself well enough for you to understand my problem.

I appreciate any help

Thank you
 
fairwinds said:
Somewhere in your filter range you need a column with entries in all rows. Then you let your formula refere to that column.

If column A has items in every row the formula becomes
=EVEN((SUBTOTAL(3,$A$1:$A1)))=SUBTOTAL(3,$A$1:$A1)

note the $A1 reference.
 
Upvote 1

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
This works like a charm! I would love to understand better what it is that the formula does. And how do you end up with two "="s, what does that mean/do?

=EVEN((SUBTOTAL(3,A$1:A1)))=SUBTOTAL(3,A$1:A1)

EVEN - Rounds a positive number up and negative number down to the nearest even integer
SUBTOTAL option 3 - COUNTA function... it is counting filled in cells (A1:A1)... When copied down the reference changes to A$1:A2 and A$1:A3....etc...

=

SUBTOTAL option 3 - Same thing as above... totals the number of filled in cells with COUNTA

So this formula would calculate to FALSE... 2 = 1
=EVEN((SUBTOTAL(3,A$1:A1))) = 2
=SUBTOTAL(3,A$1:A1) = 1
 
Upvote 0
How could I adapt this formula to change the row color whenever there's a group (value) change, e.g. in column A?
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,393
Members
449,446
Latest member
CodeCybear

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