#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Help on IF condition

I want cell 'G4' to show "Red" if the value Cell 'D4' is greater than the
value of 'A7' and 'E4' is greater than 'A9' and show "Green" if any one of
them is less than 'A7' or 'A9' respectively.
I tried a formula but it didn't work as I expected.
=IF(AND(D4$A$7,E4$A$9),"Red","Green")
Any suggestions would be appreciated.

Thanks..
--
Karthi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Help on IF condition

=IF(AND(D4$A$7,E4$A$9),"Red","Green")
will display Green for all conditions unless d4 and E4 are greater than...
If blank or equal, then you need to deal with that as well..

=IF(AND(D4$A$7,E4$A$9),"Red",IF(OR(D4<$A$7,E4<$A $9),"Green",""))
--
If this post helps click Yes
---------------
Jacob Skaria


"Karthik" wrote:

I want cell 'G4' to show "Red" if the value Cell 'D4' is greater than the
value of 'A7' and 'E4' is greater than 'A9' and show "Green" if any one of
them is less than 'A7' or 'A9' respectively.
I tried a formula but it didn't work as I expected.
=IF(AND(D4$A$7,E4$A$9),"Red","Green")
Any suggestions would be appreciated.

Thanks..
--
Karthi

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Help on IF condition

Thanks Jacob,
--
Karthi


"Jacob Skaria" wrote:

=IF(AND(D4$A$7,E4$A$9),"Red","Green")
will display Green for all conditions unless d4 and E4 are greater than...
If blank or equal, then you need to deal with that as well..

=IF(AND(D4$A$7,E4$A$9),"Red",IF(OR(D4<$A$7,E4<$A $9),"Green",""))
--
If this post helps click Yes
---------------
Jacob Skaria


"Karthik" wrote:

I want cell 'G4' to show "Red" if the value Cell 'D4' is greater than the
value of 'A7' and 'E4' is greater than 'A9' and show "Green" if any one of
them is less than 'A7' or 'A9' respectively.
I tried a formula but it didn't work as I expected.
=IF(AND(D4$A$7,E4$A$9),"Red","Green")
Any suggestions would be appreciated.

Thanks..
--
Karthi

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
Need MAX value if condition is met SCC Excel Worksheet Functions 4 February 20th 09 09:10 PM
Condition Erlang Excel Discussion (Misc queries) 2 July 23rd 08 12:44 AM
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Combine an OR condition with an AND condition Will Excel Discussion (Misc queries) 1 April 6th 07 03:52 PM
Condition 1 overules condition 2? Bultgren Excel Worksheet Functions 2 January 20th 06 12:29 PM


All times are GMT +1. The time now is 07:03 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"