If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > I don't understand what Excel did

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-04, 13:20
JoeG JoeG is offline
Registered User
 
Join Date: Dec 2003
Posts: 172
I don't understand what Excel did

=IF((C11<5)*AND(C11<>3),1,0)

why did Excel put an asterisk before the AND for my 2nd condition?

is this the new way to enter multiple IF conditions?
*AND(condition2)*AND(condition3) etc

is this converted to an array formula?

I can't find any help on the web or in any of my Excel books on *AND

Thanks in advance

JoeG
Reply With Quote
  #2 (permalink)  
Old 01-29-04, 13:33
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Quote:
=IF((C11<5)*AND(C11<>3),1,0)
It should be this:

=IF(AND(C11<5)*(C11<>3),1,0)

More conditions then

=IF(AND(C11<5)*(C11<>3)*(D11=25),1,0)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 01-29-04, 13:50
JoeG JoeG is offline
Registered User
 
Join Date: Dec 2003
Posts: 172
Shades,

need a bit more understanding on this...

Why is AND used for only the first set of parenthesis?
Why did Excel insert *AND rather than just * as you demonstrated?

thanks again

JoeG
Reply With Quote
  #4 (permalink)  
Old 01-29-04, 13:54
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
The function (AND, OR, SUMPRODUCT, etc.) is listed first, then the operators * connect the various conditions.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #5 (permalink)  
Old 01-29-04, 14:23
JoeG JoeG is offline
Registered User
 
Join Date: Dec 2003
Posts: 172
The function (AND, OR, SUMPRODUCT, etc.) is listed first, then the operators * connect the various conditions.

okay got that but why does Excel do this:

*AND vs just *?

does it yield a different result?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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