Conditional formatting and highlight every other row AND hide specific values.

grooves12

New Member
Joined
Mar 5, 2013
Messages
5
I have a LARGE array. I want to do a couple of things to make it easier to read. First I want to make it highlight every other row in GREY.

I found I could do this using conditional formatting using the formula=MOD(ROW(),2)=1

Second, if the cell value equals "0" I want to hide the value. So, it will need to alternate rows making all cells that match "0" white on the first row, grey on the second.

I haven't figured out how to make this work.

Any ideas?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Might be easier to custom format all the cells in the array so 0 doesn't show.
For example, suppose you want to have numbers in the array show to the second decimal place. Then using custom format, enter: 0.00;-0.00;
Zeros will not appear with this format.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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