PC Review


Reply
Thread Tools Rate Thread

Conditoinal formatting

 
 
Chad
Guest
Posts: n/a
 
      31st Aug 2010
Hi

I was wondering if someone could help with this conditional formatting
problem. Here is the formula which I would like to split into three
conditional formatting criteria. It works well in cell but does not
work when I split it into a condition. Is there a reason for this or
am I doing something wrong.


=IF((B2/B1)-1>-5%,"Red",IF((AND((B2/B1)-1>-10%,(B2/
B1)-1<=-5%)),"Orange",IF((B2/B1)-1<=-10%,"Green",0)))

Any help or pointing in the right direction would be of great
assistance.

Chad
 
Reply With Quote
 
 
 
 
Chad
Guest
Posts: n/a
 
      31st Aug 2010
OK I have solved it. Here is how it is done for anyone who may
search this topic in futute.

Condition 1 Red

=IF(B2>=B1*0.95,TRUE,FALSE)

Condition 2 Yellow

=IF(B2>=B1*0.9,TRUE,FALSE)

Condition 3 Green

=IF(AND(ISNUMBER(B2),B2>0),TRUE,FALSE)


Take it easy

Chad
 
Reply With Quote
 
IanC
Guest
Posts: n/a
 
      2nd Sep 2010
I'm offline at the moment so by the time I reconnect someone may already
have posted something similar

You can shorten the conditional formulae as follows:

Red
=B2>=B1*0.95
Yellow
=B2>=B1*0.9
Green
=AND(ISNUMBER(B2),B2>0)

This is because conditional formatting is looking for a satisfied condition
(ie a "TRUE" state) so there's no need to give an "If" condition in this
case.

--
Ian
--

"Chad" <(E-Mail Removed)> wrote in message
news:16753274-8ad8-49e9-a74c-(E-Mail Removed)...
> OK I have solved it. Here is how it is done for anyone who may
> search this topic in futute.
>
> Condition 1 Red
>
> =IF(B2>=B1*0.95,TRUE,FALSE)
>
> Condition 2 Yellow
>
> =IF(B2>=B1*0.9,TRUE,FALSE)
>
> Condition 3 Green
>
> =IF(AND(ISNUMBER(B2),B2>0),TRUE,FALSE)
>
>
> Take it easy
>
> Chad
>



 
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
Conditoinal Row Delete Stephen Microsoft Excel Programming 2 25th Jan 2010 08:18 PM
contain option in conditoinal formating Vijay Microsoft Excel Misc 2 11th Jun 2009 09:30 AM
format color without conditoinal formating WT Microsoft Excel Worksheet Functions 3 6th Aug 2008 12:19 AM
Conditoinal format trouble bludovico Microsoft Excel Misc 3 16th Jun 2006 04:35 PM
TODAY fucntion in a formula / conditoinal format? bludovico Microsoft Excel Misc 2 30th Sep 2004 02:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:04 PM.