Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default imbedding AND OR statements

I have 2 equations that basically say:
=IF(AND(A1=A2,(OR(A3<A1))),True,False)
=IF(AND(A10=A11,(OR(A12<A13))),True,False)
These work fine on their own.
How can I combine these equations into one cell that IF the first equation
OR the second equation is true, it will return "True"?
  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default imbedding AND OR statements

If you want the True/False represented as text, try

=TEXT(OR(AND(A1=A2, A3<A1), AND(A10=A11, A12<A13)), "General")


"JMB" wrote:

AND/OR functions already return True/False. No need for an IF statement.
Try:

=OR(AND(A1=A2, A3<A1), AND(A10=A11, A12<A13))


"Jshendel" wrote:

I have 2 equations that basically say:
=IF(AND(A1=A2,(OR(A3<A1))),True,False)
=IF(AND(A10=A11,(OR(A12<A13))),True,False)
These work fine on their own.
How can I combine these equations into one cell that IF the first equation
OR the second equation is true, it will return "True"?

  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default imbedding AND OR statements

AND/OR functions already return True/False. No need for an IF statement.
Try:

=OR(AND(A1=A2, A3<A1), AND(A10=A11, A12<A13))


"Jshendel" wrote:

I have 2 equations that basically say:
=IF(AND(A1=A2,(OR(A3<A1))),True,False)
=IF(AND(A10=A11,(OR(A12<A13))),True,False)
These work fine on their own.
How can I combine these equations into one cell that IF the first equation
OR the second equation is true, it will return "True"?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default imbedding AND OR statements

This equation works.
Thanks a lot,
Josh

"Sandy Mann" wrote:

Try:

=IF(OR(AND(A1=A2,A1<A3),AND(A10=A11,A12<A13)),TR UE,FALSE)

--
HTH

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"Jshendel" wrote in message
...
I have 2 equations that basically say:
=IF(AND(A1=A2,(OR(A3<A1))),True,False)
=IF(AND(A10=A11,(OR(A12<A13))),True,False)
These work fine on their own.
How can I combine these equations into one cell that IF the first equation
OR the second equation is true, it will return "True"?




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



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