Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default if & And condition


Dear friends..

I want to use fromula that if one logical condition is correct want to
go another logical condition eg:- If A20=<B20, only I want to check
C20=<D20, if A20=<B20 is not true iwant to check D20=<E20, anybody can
help me please..




--
shajizz
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default if & And condition

On Sun, 24 Jan 2010 03:44:06 -0500, shajizz
wrote:


Dear friends..

I want to use fromula that if one logical condition is correct want to
go another logical condition eg:- If A20=<B20, only I want to check
C20=<D20, if A20=<B20 is not true iwant to check D20=<E20, anybody can
help me please..



Try this formula:

=IF(A20<=B20,C20<=D20,D20<=E20)

Hope this helps / Lars-Åke

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default if & And condition

"shajizz" :
If A20=<B20, only I want to check C20=<D20,
if A20=<B20 is not true iwant to check D20=<E20


Perhaps:

=if(A20<=B20, if(C20<=D20, 1, 2), if(D20<=E20, 3, 4))

Or do you mean that you wish to optimize the following:

=if(A20<=B20, if(C20<=D20, 1, 2), if(D20<=E20, 1, 2))

which might make sense to optimize if 1 and 2 are really complex
expressions.

Perhaps:

=if(or(and(A20<=B20,C20<=D20),and(A20B20,D20<=E20 )), 1, 2)

If you are concerned about nesting levels, the above logic is equivalent to
either of the following:

=if(or((A20<=B20)*(C20<=D20),(A20B20)*(D20<=E20)) , 1, 2)

=if((A20<=B20)*(C20<=D20)+(A20B20)*(D20<=E20), 1, 2)


----- original message -----

"shajizz" wrote in message
...

Dear friends..

I want to use fromula that if one logical condition is correct want to
go another logical condition eg:- If A20=<B20, only I want to check
C20=<D20, if A20=<B20 is not true iwant to check D20=<E20, anybody can
help me please..




--
shajizz


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
How to SUM on a condition? trant Excel Worksheet Functions 2 April 2nd 09 12:32 AM
if condition Malik Nadeem Excel Discussion (Misc queries) 5 January 13th 09 08:55 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 05:38 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"