Conditional colouring of cell

nsman

New Member
Joined
Jul 25, 2010
Messages
26
I have created a resultant excel sheet using macro. In that sheet, if some values are not available, it returns #N/A in the cell. This happens in 2 columns. I want to high light those error boxes by filling them with red color.

Please advise
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Use conditional formatting with a formula of say

=ISNA(A2)

where A2 is the first of your cells.
 
Upvote 0
thanks for the advise xld.

Could you please tell me how and where to use this?

in my sheet i want either the letters or the box to be filled with red if any cell in columns C or E has the value #N/A.

Please advise me the procedure how to use this formula.

Thanks.
 
Upvote 0
is it

"Format - conditional formatting - cell value is - equal to - #N/A - format - Font bold - fill color red"

If it is the same, how do I apply that to columns "E" & "I" through a macro?

If it is not, how is it done?

Thanks for advise
 
Upvote 0
That is the idea, but use a formula.

Just select all of the target cells before you do the Format>Conditional Formatting.

Assuming that you selected column C first. then change the Condition 1 dropdown value to Formula Is, and add a formula =ISNA(C1), thebn set the font and fill colours.
 
Upvote 0

Forum statistics

Threads
1,214,285
Messages
6,118,678
Members
448,845
Latest member
MrEbzz

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