Conditional formatting empty cells based on full cells

kellem80

Board Regular
Joined
Apr 2, 2008
Messages
95
Hi,
Working in Excel 2007.
I am using excel for a data log (basically) and want it to format all empty cells in a row yellow if there is data in column A

Basically, If i have a value in A2, I want any empty cell between B2-G2 to be filled in yellow (as an idicator to the inputter that the cell needs to be completed).

there is already conditional formatting on these cells, which i want to maintain for the non-empty cells. I also have "0" as a value, so I couldn't use the basic conditional formatting setting it =0, it highlighted cells with $0.00, which i do not want.

Thanks in advance!!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Thanks, it works initially, but when I enter data in the cell, it keeps the formatting (I want it to revert back to another already set conditional formatting based on a value in another cell). I tried changing the order of the rules and no order change gave me back my original formatting.

Thoughts on getting around this?
 
Upvote 0
Give this a try.

Add this rule to the conditional formatting for Cell B2 to G2.

=AND($A$2<>"",B$2<>"")
 
Last edited:
Upvote 0
If you are using this over multiple rows, I think you will want to remove the $ from in front of the 2. Also, guessing a bit, but possibly this for the 'yellow' rule, select B2:Gxx and apply one of these rules.

=AND($A2<>"",B2="")
This should make a cell yellow if it is blank but column A is not

=AND($A2<>"",COUNTA($B2:$G2)=0)
This should make the cell yellow if column A is not blank and columns B:G are all blank in that row.


If none of the suggestion do what you want, please be more specific about what this means "I want it to revert back to another already set conditional formatting based on a value in another cell"
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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