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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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