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?
 

Some videos you may like

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.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,388
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,499
Messages
5,596,515
Members
414,074
Latest member
Matthew Kakde

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
Top