Conditional formatting when cell is empty and another is not

USAMax

Well-known Member
Joined
May 31, 2006
Messages
855
Office Version
  1. 365
Platform
  1. Windows
I need to highlight cells that must be filled in. It is easy to do when you are only looking at the ActiveCell but I need several cell to be highlighted if they are blank and the main Category has been filled in.

Example:
A1 = Main Category
B1 to E1 are sub categories.

If there is nothing in A1 then all the cells should be xlNone or white.
If A1 has been filled in then these cells must be highlighted if they are blank.

I do not want to do this through VBA.

Thank you,
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Select B1:E1 then Conditional Formatting>New Rule>Use Formula

Formula is: =AND(NOT(ISBLANK($A1)),ISBLANK(B1))
set the format and click OK
 
Last edited:
Upvote 0
Thank you JoeMo, you sure have your mojo working today!

I was what you were doing and I was able to take it the rest of the way thanks to you.

=AND(NOT(ISBLANK(RC" & Target.Column & ")),ISBLANK(RC))

I thought I tried IsBlank but I spent too much time with IsEmpty!

Thank you for bring it home for me!
 
Upvote 0
Thank you JoeMo, you sure have your mojo working today!

I was what you were doing and I was able to take it the rest of the way thanks to you.

=AND(NOT(ISBLANK(RC" & Target.Column & ")),ISBLANK(RC))

I thought I tried IsBlank but I spent too much time with IsEmpty!

Thank you for bring it home for me!
You are welcome - thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,464
Members
453,725
Latest member
cvsdatreas

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