Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Nesting conditions together.

Hi all,

Another question on excel, how do i nest conditions together for AND, OR and
NOT.

So far, what i have is

=IF (OR('A'!A1=X,'A'!A1=Y),'A'!B1,"") which means that if the field A1 has
either X or Y, 'A'B1 will be triggered. else, it'll stay blank.

My problem comes with if A1 has either X or (Y and on top of Y, field C1 is
NOT blank) then 'A'B1 will be triggered. else, it stays blank.

Anyone with any idea on how to make that work?

Thanks

Ivan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Nesting conditions together.


Hi

Maybe
=IF (OR('A'!A1=X,AND('A'!A1=Y,'a'!c1<"")),'A'!B1,"")


HTH
Ivan Koh;340629 Wrote:
Hi all,

Another question on excel, how do i nest conditions together for AND,
OR and
NOT.

So far, what i have is

=IF (OR('A'!A1=X,'A'!A1=Y),'A'!B1,"") which means that if the field A1
has
either X or Y, 'A'B1 will be triggered. else, it'll stay blank.

My problem comes with if A1 has either X or (Y and on top of Y, field
C1 is
NOT blank) then 'A'B1 will be triggered. else, it stays blank.

Anyone with any idea on how to make that work?

Thanks

Ivan



--
Pecoflyer

Cheers -
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=95245

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Nesting conditions together.

Try this.

=IF(OR('A'!A1=X,AND('A'!A1=Y,'A'!C1<"")),'A'!B1," ")

If "x" and "y" are values...
=IF(OR(A1="X",AND(A1="Y",C1<"")),B1,"")

If this post helps click Yes
---------------
Jacob Skaria


"Ivan Koh" wrote:

Hi all,

Another question on excel, how do i nest conditions together for AND, OR and
NOT.

So far, what i have is

=IF (OR('A'!A1=X,'A'!A1=Y),'A'!B1,"") which means that if the field A1 has
either X or Y, 'A'B1 will be triggered. else, it'll stay blank.

My problem comes with if A1 has either X or (Y and on top of Y, field C1 is
NOT blank) then 'A'B1 will be triggered. else, it stays blank.

Anyone with any idea on how to make that work?

Thanks

Ivan

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Nesting conditions together.

"Ivan Koh" wrote:
My problem comes with if A1 has either X or (Y and on top of Y,
field C1 is NOT blank) then 'A'B1 will be triggered. else, it stays
blank.


=if(AND(C1<"",OR(A1=x,A1=y)), B1, "")

You can add the off-sheet syntax and replace "x" and "y" with appropriate
values.

A more obscure formulation:

=if((C1<"")*((A1=x)+(A1=y)),B1,"")

Why would you ever do that? To reduce the number of nested functions, which
is limited to 7 (8 including the outermost function) in Excel 2003.


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

"Ivan Koh" wrote in message
...
Hi all,

Another question on excel, how do i nest conditions together for AND, OR
and
NOT.

So far, what i have is

=IF (OR('A'!A1=X,'A'!A1=Y),'A'!B1,"") which means that if the field A1 has
either X or Y, 'A'B1 will be triggered. else, it'll stay blank.

My problem comes with if A1 has either X or (Y and on top of Y, field C1
is
NOT blank) then 'A'B1 will be triggered. else, it stays blank.

Anyone with any idea on how to make that work?

Thanks

Ivan


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Nesting conditions together.

Errata....

I see from other responses that I probably have misunderstood your logical
intent. I agree with:

=if(or(A1=x,and(A1=y,C1<""),B1,"")

or

=if((A1=x)+(A1=y)*(C1<""),B1,"")


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

"JoeU2004" wrote in message
...
"Ivan Koh" wrote:
My problem comes with if A1 has either X or (Y and on top of Y,
field C1 is NOT blank) then 'A'B1 will be triggered. else, it stays
blank.


=if(AND(C1<"",OR(A1=x,A1=y)), B1, "")

You can add the off-sheet syntax and replace "x" and "y" with appropriate
values.

A more obscure formulation:

=if((C1<"")*((A1=x)+(A1=y)),B1,"")

Why would you ever do that? To reduce the number of nested functions,
which is limited to 7 (8 including the outermost function) in Excel 2003.


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

"Ivan Koh" wrote in message
...
Hi all,

Another question on excel, how do i nest conditions together for AND, OR
and
NOT.

So far, what i have is

=IF (OR('A'!A1=X,'A'!A1=Y),'A'!B1,"") which means that if the field A1
has
either X or Y, 'A'B1 will be triggered. else, it'll stay blank.

My problem comes with if A1 has either X or (Y and on top of Y, field C1
is
NOT blank) then 'A'B1 will be triggered. else, it stays blank.

Anyone with any idea on how to make that work?

Thanks

Ivan



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
Countif Conditions - Use of conditions that vary by cell value JonTarg Excel Discussion (Misc queries) 1 May 30th 08 01:21 PM
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
Nesting more than 7 conditions? Gina Excel Worksheet Functions 5 February 9th 06 01:41 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM
Nesting If Statement with "AND", "OR" conditions Jenna Excel Worksheet Functions 3 October 30th 04 07:46 PM


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