Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a column with function values of True or False:

=IF(ISNA(A1), false, true)

from row 1 to 5000+ rows. I would like to mark all the False as red background color or text as red. Is there any function available?

share|improve this question

2 Answers 2

First, you change your formula to

=ISNA(A1)

you don't need the IF part. Then use conditional formatting. First Select B1:B5000 (or whatever column your formula is in. Next Format - Conditional Formatting. Then choose Cell Values Is and type False into the box. Click the Format button to set the Pattern to red. Click OK.

Worksheet formulas can only return values. They cannot change other properties of the cell (like colors). Conditional Formatting is the way to go here.

share|improve this answer
    
OK. I see your point. Another option may be to write a snip of VBA macro to loop the range to change cell or row color (text or background). By the way, I prefer True and False values. In the example, A1 actually contains another formula so ISNA() will always returns False. –  David.Chu.ca Mar 31 '10 at 22:11

I'm not very familiar with Excel but have you tried Conditional Formatting?
You can find it under

Toolbar->Format->Conditional Formatting

(Translated. I have a non english version of Office)

share|improve this answer
    
Is is nice. However, I have to apply the style to 5000+ rows. Not sure if there is function available to do it so that I can copy and paste. –  David.Chu.ca Mar 31 '10 at 21:42
    
OK. I can do copy first and then select a range, right click, and finally select Paste Special->Format. –  David.Chu.ca Mar 31 '10 at 21:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.