Conditional Formating - question...

dunmore83

Well-known Member
Joined
Aug 24, 2011
Messages
540
Hi,

I am trying to apply a conditional format to a cell in excel 2007.

I would like to fill the cell with a chosen colour (yellow), but only apply the fill based on the following formula;

=IF(AND(R10="YES",OR(R21="N/A",R21="NO"),OR(R24="N/A",R24="NO"))

Very much appreciated if you can provide any assistance.

Cheers!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Use the Use a Formula... option with the formula

AND(R10="YES",OR(R21="N/A",R21="NO"),OR(R24="N/A",R24="NO")
 
Upvote 0
Thanks for the replies.

I have not used CF formulas often.

Which option do I choose to apply this formula in the CF area so that the end result is the cell being filled with yellow if true, or white if false??

Thanks
 
Upvote 0
It is the bottom option: Use a formula to decide which cells to format.
 
Upvote 0
Ok i found the location. Do I need to put = infront of the forumla??

Also do i simply go into Format near preview & select my fill colour as yellow? Then if the formula is correct the cell will be yellow & if incorrect it will be white??

Thanks for help!
 
Upvote 0
Yes, sorry in the formula box enter

=AND(R10="YES",OR(R21="N/A",R21="NO"),OR(R24="N/A",R24="NO")

then click the Format button, on the Fill tab click on yellow then OK your way out.
 
Upvote 0
When I enter the formula below;

=AND(R10="YES",OR(R21="N/A",R21="NO"),OR(R24="N/A",R24="NO")

.... i get the following message;

"your formula is missing a parenthesis --) or (Check the formula, and then add the parenthesis in the appropriate place."

Do you know why this is??

Cheers.
 
Upvote 0
Yes, because I stupidly omitted it

=AND(R10="YES",OR(R21="N/A",R21="NO"),OR(R24="N/A",R24="NO"))
 
Upvote 0
Thanks. Is there a way to check the CF formula??

It would be handy so I could then copy it to other cells.

Cheers
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,921
Latest member
BBQKING

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