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
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
Use conditional formatting with a formula of say

=ISNA(A2)

where A2 is the first of your cells.
 

nsman

New Member
Joined
Jul 25, 2010
Messages
26
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.
 

nsman

New Member
Joined
Jul 25, 2010
Messages
26

ADVERTISEMENT

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
 

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,483
Messages
5,596,405
Members
414,064
Latest member
Duncthegreat

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
Top