PC Review


Reply
Thread Tools Rate Thread

Conditional Format & Default Format Help

 
 
Brian
Guest
Posts: n/a
 
      31st Jan 2008
I have a question about conditional formating. The way I understand CF is
that I can have 3 conditions and a "default." I have set mine up like this:

A1 80%
A2 60%
A3 0%

Condition 1
formula is =A10>=$A$1
Shades the cell Green

Condition 2
formula is =A10>=$A$2
Shades the cell Yellow

Condition 3
formula is =A10<$A$2

This works fine when the formula in A10 returns a number (most cases), but I
use the ISERROR() function to catch some Div/0 issues and replace them with a
text message (Usually "N/A"). In these situations, excel still formats the
cell Green, instead of the default of no shade, and I don't know why. Thanks
for any help.
 
Reply With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      31st Jan 2008
To tell you why, put some text (any text) in B2 and a number (any number) in
C2, and see what =B2>C2 gives you.
You can, of course, include a condition such as ISNUMBER(A10) in your CF
criteria.

Alternatively, if instead of writing text to A10 you merely write an error
indication such as NA() [or #N/A] or #DIV/0!, then your condition when you
compare with a number in A1 or A2 will return FALSE.
--
David Biddulph

"Brian" <(E-Mail Removed)> wrote in message
news:61526C6B-F619-48DD-8D70-(E-Mail Removed)...
>I have a question about conditional formating. The way I understand CF is
> that I can have 3 conditions and a "default." I have set mine up like
> this:
>
> A1 80%
> A2 60%
> A3 0%
>
> Condition 1
> formula is =A10>=$A$1
> Shades the cell Green
>
> Condition 2
> formula is =A10>=$A$2
> Shades the cell Yellow
>
> Condition 3
> formula is =A10<$A$2
>
> This works fine when the formula in A10 returns a number (most cases), but
> I
> use the ISERROR() function to catch some Div/0 issues and replace them
> with a
> text message (Usually "N/A"). In these situations, excel still formats
> the
> cell Green, instead of the default of no shade, and I don't know why.
> Thanks
> for any help.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format overwrighting previous conditional format davethewelder Microsoft Excel Programming 2 10th Apr 2008 04:01 PM
New Conditional Format Overriding Previous Conditional Format Rene Microsoft Excel Misc 3 27th Feb 2008 06:08 PM
Conditional format : return to default format =?Utf-8?B?YW5keQ==?= Microsoft Excel Programming 5 27th Jun 2007 01:48 PM
make a conditional format the default Fred Evans Microsoft Excel Misc 3 6th Dec 2004 05:01 AM
Keep format after paste from other worksheets - conditional format or EnableControl solution doesn't work Microsoft Excel Programming 0 3rd May 2004 12:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 AM.