Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Conditional Formatting problem

My 1st and 2nd cond formula's work fine. I can't get the 3rd to work ?

Here's my 1st for (GREEN)
=IF(AND(M60,N6="Inc"),TRUE, FALSE))

Here's my 2nd for (YELLOW)
=IF(AND(M6<0,N6="Inc"),TRUE,FALSE))


This formula still returns a YELLOW format?
Here's my 3rd for (RED)
=IF(AND(M6<-0.1,N6="Inc"),TRUE,FALSE))


James A
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting problem

You don't need to use the IF function but it'll work as is. Flip the 2nd and
3rd conditions.

Condition 1: (green)

AND(M60,N6="Inc")

Condition 2: (red)

AND(M6<-0.1,N6="Inc")

Condition 3 (yellow)

AND(M6<0,N6="Inc")

Biff

"James A" wrote in message
...
My 1st and 2nd cond formula's work fine. I can't get the 3rd to work ?

Here's my 1st for (GREEN)
=IF(AND(M60,N6="Inc"),TRUE, FALSE))

Here's my 2nd for (YELLOW)
=IF(AND(M6<0,N6="Inc"),TRUE,FALSE))


This formula still returns a YELLOW format?
Here's my 3rd for (RED)
=IF(AND(M6<-0.1,N6="Inc"),TRUE,FALSE))


James A



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting problem

Of course, each formula starts with an equal sign!

Biff

"T. Valko" wrote in message
...
You don't need to use the IF function but it'll work as is. Flip the 2nd
and 3rd conditions.

Condition 1: (green)

AND(M60,N6="Inc")

Condition 2: (red)

AND(M6<-0.1,N6="Inc")

Condition 3 (yellow)

AND(M6<0,N6="Inc")

Biff

"James A" wrote in message
...
My 1st and 2nd cond formula's work fine. I can't get the 3rd to work ?

Here's my 1st for (GREEN)
=IF(AND(M60,N6="Inc"),TRUE, FALSE))

Here's my 2nd for (YELLOW)
=IF(AND(M6<0,N6="Inc"),TRUE,FALSE))


This formula still returns a YELLOW format?
Here's my 3rd for (RED)
=IF(AND(M6<-0.1,N6="Inc"),TRUE,FALSE))


James A





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Conditional Formatting problem

First of all, you can simplify your formulas and eliminate the IF():

=AND(M60,N6="Inc")

Then, just switch condition 2 and 3.

Once the formula evaluates *anything* less then 0, that condition is met
(equates to TRUE). It doesn't look any farther to even see the 3rd
condition.

#1 =AND(M60,N6="Inc")
#2 =AND(M6<-0.1,N6="Inc")
#3 =AND(M6<0,N6="Inc")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"James A" wrote in message
...
My 1st and 2nd cond formula's work fine. I can't get the 3rd to work ?

Here's my 1st for (GREEN)
=IF(AND(M60,N6="Inc"),TRUE, FALSE))

Here's my 2nd for (YELLOW)
=IF(AND(M6<0,N6="Inc"),TRUE,FALSE))


This formula still returns a YELLOW format?
Here's my 3rd for (RED)
=IF(AND(M6<-0.1,N6="Inc"),TRUE,FALSE))


James A


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting similar to shading alternating rows Conan Kelly Excel Worksheet Functions 10 August 22nd 06 11:13 PM
Conditional formatting using lookup [email protected] Excel Discussion (Misc queries) 1 July 28th 06 01:41 PM
Conditional formatting problem Bryan Excel Discussion (Misc queries) 3 July 16th 05 01:29 PM
Conditional formatting with dates formula problem. [email protected] Excel Discussion (Misc queries) 8 March 5th 05 11:47 PM
Conditional Formatting Problem msimpy22 Excel Discussion (Misc queries) 1 March 1st 05 04:17 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"