Help with conditional formatting a cell

Kiwi den

Board Regular
Joined
Feb 17, 2014
Messages
143
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet with multiple formulas in it, working well.

Cell C6, and D6 both require amounts added to complete the calculation into N6 (N6 has a formula in it the captures other cells to calculate a total.

I would like the following if possible
that if either C6 or D6 is empty the cell N6 will show with a yellow background, but if the both have a value the N6 will have no coloured background

I believe conditional formatting may be able to achieve this, but have no history in using it
Any help appreciated
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Select N6 & in conditional formatting select new rule > Use a formula > & enter this

=OR(C6="",D6="")
Then select your format.
 
Upvote 0
Select N6 & in conditional formatting select new rule > Use a formula > & enter this

=OR(C6="",D6="")
Then select your format.
Thanks, sort of works as I want, however I would still want N6 to be yellow if c6 is empty but D6 has a value or visa versa
 
Upvote 0
That's what the formula does. If either C6 or D6 are blank, then N6 will be yellow.
Do you have a formula in C6 & D6?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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