Conditional Formatting of empty cells

rookie7

New Member
Joined
Nov 5, 2003
Messages
14
Is there anyway to use conditional formatting to do the following:

If a cell has value and a cell below it doesn't have value, then highlight both cells. However, as soon as the blank cells are not blank, then both cells would clear the highlight.

In the example below, cells A1 and A2 on column A would be highlighted. Cells B3 and B4 on column B would be high lighted. Whenever cell A2 is filled in, then the highlight would clear. This logic would apply from column A through column Z.

Rich (BB code):
A1 Description 1         B1 Description 8
A2 blank cell           B2 Description 9
A3 Description 3         B3 Description 10
A4 Description 4         B4 blank cell

I tried using two conditional formattings (one to high light and one to clear) but doesn't seem to work. Any help would be appreciated.

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi,
Single conditional format should work.

1. Select all the cells you want to format, making sure that A1 is active cell.
2. Conditional Format-->"Formula is" --> =OR(A1="",A2="")
3. Format-->Patterns-->Some light pastel background color would do.


Note:
All last cells in rows will be per-force be highlighted!
 
Upvote 0
Hi,
Single conditional format should work.

1. Select all the cells you want to format, making sure that A1 is active cell.
2. Conditional Format-->"Formula is" --> =OR(A1="",A2="")
3. Format-->Patterns-->Some light pastel background color would do.


Note:
All last cells in rows will be per-force be highlighted!
 
Upvote 0
Thank you for your reply. Sorry for not being clear, but A1 and A2 (or A3 and A4, or B5 and B6, etc.) will always be a pair. So, if A1 and A2 have values, then both will not be highlighted. Using what you suggested would always highlight A2 if A3 is empty. I hope I make sense...I don't know how to add the table lines on here like some did.
 
Upvote 0

Forum statistics

Threads
1,203,696
Messages
6,056,764
Members
444,891
Latest member
MelissaBr

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