PC Review


Reply
Thread Tools Rate Thread

Database Function Criteria Boolean Operations

 
 
=?Utf-8?B?YW1wb3pkb2w=?=
Guest
Posts: n/a
 
      18th Aug 2006
Hello,

Is there anyway to change the way that the Database function analyzes the
Criteria range?

Default is (according to
http://office.microsoft.com/en-us/as....aspx#Example3):

Sales=A1 Sales=B1
>6000=A2 <500=B2

<6500=A3
( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )

I'm trying to get it to look at:

Sales=A1 Sales=B1
>6000=A2 <500=B2

<6500=A3
( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )

Thank you,

Aaron
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      18th Aug 2006
Are you sure your logic is right?

What about a sales of 4500 which meets the OR <6500 condition as do sales of
10?



"ampozdol" wrote:

> Hello,
>
> Is there anyway to change the way that the Database function analyzes the
> Criteria range?
>
> Default is (according to
> http://office.microsoft.com/en-us/as....aspx#Example3):
>
> Sales=A1 Sales=B1
> >6000=A2 <500=B2

> <6500=A3
> ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
>
> I'm trying to get it to look at:
>
> Sales=A1 Sales=B1
> >6000=A2 <500=B2

> <6500=A3
> ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
>
> Thank you,
>
> Aaron

 
Reply With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      18th Aug 2006
Are you sure your logic is right?

What about a sales of 4500 which meets the OR <6500 condition as do sales of
10?



"ampozdol" wrote:

> Hello,
>
> Is there anyway to change the way that the Database function analyzes the
> Criteria range?
>
> Default is (according to
> http://office.microsoft.com/en-us/as....aspx#Example3):
>
> Sales=A1 Sales=B1
> >6000=A2 <500=B2

> <6500=A3
> ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
>
> I'm trying to get it to look at:
>
> Sales=A1 Sales=B1
> >6000=A2 <500=B2

> <6500=A3
> ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
>
> Thank you,
>
> Aaron

 
Reply With Quote
 
=?Utf-8?B?YW1wb3pkb2w=?=
Guest
Posts: n/a
 
      18th Aug 2006
Toppers,

I'm not sure what you are asking. The logic operations are specified by
Microsoft at the link I included.

I'm also not sure where you are getting the numbers you quote, and how they
operate in a criteria range.

Aaron

"Toppers" wrote:

> Are you sure your logic is right?
>
> What about a sales of 4500 which meets the OR <6500 condition as do sales of
> 10?
>
>
>
> "ampozdol" wrote:
>
> > Hello,
> >
> > Is there anyway to change the way that the Database function analyzes the
> > Criteria range?
> >
> > Default is (according to
> > http://office.microsoft.com/en-us/as....aspx#Example3):
> >
> > Sales=A1 Sales=B1
> > >6000=A2 <500=B2

> > <6500=A3
> > ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
> >
> > I'm trying to get it to look at:
> >
> > Sales=A1 Sales=B1
> > >6000=A2 <500=B2

> > <6500=A3
> > ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
> >
> > Thank you,
> >
> > Aaron

 
Reply With Quote
 
=?Utf-8?B?YW1wb3pkb2w=?=
Guest
Posts: n/a
 
      18th Aug 2006
Toppers,

I'm not sure what you are asking. The logic operations are specified by
Microsoft at the link I included.

I'm also not sure where you are getting the numbers you quote, and how they
operate in a criteria range.

Aaron

"Toppers" wrote:

> Are you sure your logic is right?
>
> What about a sales of 4500 which meets the OR <6500 condition as do sales of
> 10?
>
>
>
> "ampozdol" wrote:
>
> > Hello,
> >
> > Is there anyway to change the way that the Database function analyzes the
> > Criteria range?
> >
> > Default is (according to
> > http://office.microsoft.com/en-us/as....aspx#Example3):
> >
> > Sales=A1 Sales=B1
> > >6000=A2 <500=B2

> > <6500=A3
> > ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
> >
> > I'm trying to get it to look at:
> >
> > Sales=A1 Sales=B1
> > >6000=A2 <500=B2

> > <6500=A3
> > ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
> >
> > Thank you,
> >
> > Aaron

 
Reply With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      18th Aug 2006
I don't understand your OR/AND logic: what exactly are you trying to include
in the filter ... Sales between 6000 & 6500 OR sales < 500?

Sales > 6000 OR < 6500 doesn't make sense to me whereas the >6000 AND < 6500
does.

"ampozdol" wrote:

> Toppers,
>
> I'm not sure what you are asking. The logic operations are specified by
> Microsoft at the link I included.
>
> I'm also not sure where you are getting the numbers you quote, and how they
> operate in a criteria range.
>
> Aaron
>
> "Toppers" wrote:
>
> > Are you sure your logic is right?
> >
> > What about a sales of 4500 which meets the OR <6500 condition as do sales of
> > 10?
> >
> >
> >
> > "ampozdol" wrote:
> >
> > > Hello,
> > >
> > > Is there anyway to change the way that the Database function analyzes the
> > > Criteria range?
> > >
> > > Default is (according to
> > > http://office.microsoft.com/en-us/as....aspx#Example3):
> > >
> > > Sales=A1 Sales=B1
> > > >6000=A2 <500=B2
> > > <6500=A3
> > > ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
> > >
> > > I'm trying to get it to look at:
> > >
> > > Sales=A1 Sales=B1
> > > >6000=A2 <500=B2
> > > <6500=A3
> > > ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
> > >
> > > Thank you,
> > >
> > > Aaron

 
Reply With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      18th Aug 2006
I don't understand your OR/AND logic: what exactly are you trying to include
in the filter ... Sales between 6000 & 6500 OR sales < 500?

Sales > 6000 OR < 6500 doesn't make sense to me whereas the >6000 AND < 6500
does.

"ampozdol" wrote:

> Toppers,
>
> I'm not sure what you are asking. The logic operations are specified by
> Microsoft at the link I included.
>
> I'm also not sure where you are getting the numbers you quote, and how they
> operate in a criteria range.
>
> Aaron
>
> "Toppers" wrote:
>
> > Are you sure your logic is right?
> >
> > What about a sales of 4500 which meets the OR <6500 condition as do sales of
> > 10?
> >
> >
> >
> > "ampozdol" wrote:
> >
> > > Hello,
> > >
> > > Is there anyway to change the way that the Database function analyzes the
> > > Criteria range?
> > >
> > > Default is (according to
> > > http://office.microsoft.com/en-us/as....aspx#Example3):
> > >
> > > Sales=A1 Sales=B1
> > > >6000=A2 <500=B2
> > > <6500=A3
> > > ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
> > >
> > > I'm trying to get it to look at:
> > >
> > > Sales=A1 Sales=B1
> > > >6000=A2 <500=B2
> > > <6500=A3
> > > ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
> > >
> > > Thank you,
> > >
> > > Aaron

 
Reply With Quote
 
=?Utf-8?B?YW1wb3pkb2w=?=
Guest
Posts: n/a
 
      18th Aug 2006
Toppers,

I'm trying to include ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )

So that it includes any of the A Column values AND any of the B Column
values. How the logic works now seems to be: include A1 AND B2, OR A2 AND
B2. I am looking for a way to say: include A1 OR B1, AND B1 OR B2. I am
trying to do this in order allow for my criteria table set up to
conditionally accept values based on user input.

Thank you,

Aaron

"Toppers" wrote:

> I don't understand your OR/AND logic: what exactly are you trying to include
> in the filter ... Sales between 6000 & 6500 OR sales < 500?
>
> Sales > 6000 OR < 6500 doesn't make sense to me whereas the >6000 AND < 6500
> does.
>
> "ampozdol" wrote:
>
> > Toppers,
> >
> > I'm not sure what you are asking. The logic operations are specified by
> > Microsoft at the link I included.
> >
> > I'm also not sure where you are getting the numbers you quote, and how they
> > operate in a criteria range.
> >
> > Aaron
> >
> > "Toppers" wrote:
> >
> > > Are you sure your logic is right?
> > >
> > > What about a sales of 4500 which meets the OR <6500 condition as do sales of
> > > 10?
> > >
> > >
> > >
> > > "ampozdol" wrote:
> > >
> > > > Hello,
> > > >
> > > > Is there anyway to change the way that the Database function analyzes the
> > > > Criteria range?
> > > >
> > > > Default is (according to
> > > > http://office.microsoft.com/en-us/as....aspx#Example3):
> > > >
> > > > Sales=A1 Sales=B1
> > > > >6000=A2 <500=B2
> > > > <6500=A3
> > > > ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
> > > >
> > > > I'm trying to get it to look at:
> > > >
> > > > Sales=A1 Sales=B1
> > > > >6000=A2 <500=B2
> > > > <6500=A3
> > > > ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
> > > >
> > > > Thank you,
> > > >
> > > > Aaron

 
Reply With Quote
 
=?Utf-8?B?YW1wb3pkb2w=?=
Guest
Posts: n/a
 
      18th Aug 2006
Toppers,

I'm trying to include ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )

So that it includes any of the A Column values AND any of the B Column
values. How the logic works now seems to be: include A1 AND B2, OR A2 AND
B2. I am looking for a way to say: include A1 OR B1, AND B1 OR B2. I am
trying to do this in order allow for my criteria table set up to
conditionally accept values based on user input.

Thank you,

Aaron

"Toppers" wrote:

> I don't understand your OR/AND logic: what exactly are you trying to include
> in the filter ... Sales between 6000 & 6500 OR sales < 500?
>
> Sales > 6000 OR < 6500 doesn't make sense to me whereas the >6000 AND < 6500
> does.
>
> "ampozdol" wrote:
>
> > Toppers,
> >
> > I'm not sure what you are asking. The logic operations are specified by
> > Microsoft at the link I included.
> >
> > I'm also not sure where you are getting the numbers you quote, and how they
> > operate in a criteria range.
> >
> > Aaron
> >
> > "Toppers" wrote:
> >
> > > Are you sure your logic is right?
> > >
> > > What about a sales of 4500 which meets the OR <6500 condition as do sales of
> > > 10?
> > >
> > >
> > >
> > > "ampozdol" wrote:
> > >
> > > > Hello,
> > > >
> > > > Is there anyway to change the way that the Database function analyzes the
> > > > Criteria range?
> > > >
> > > > Default is (according to
> > > > http://office.microsoft.com/en-us/as....aspx#Example3):
> > > >
> > > > Sales=A1 Sales=B1
> > > > >6000=A2 <500=B2
> > > > <6500=A3
> > > > ( (Sales > 6000 AND Sales < 6500 ) OR (Sales < 500) )
> > > >
> > > > I'm trying to get it to look at:
> > > >
> > > > Sales=A1 Sales=B1
> > > > >6000=A2 <500=B2
> > > > <6500=A3
> > > > ( (Sales > 6000 OR Sales < 6500 ) AND (Sales < 500) )
> > > >
> > > > Thank you,
> > > >
> > > > Aaron

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database function criteria Art Microsoft Excel Worksheet Functions 5 9th May 2008 08:24 PM
Using a boolean return value from a function as criteria in query =?Utf-8?B?RGlldHJpY2ggU2Now6RmZmxlcg==?= Microsoft Access Queries 2 30th Oct 2006 03:08 PM
Database Function Criteria Boolean Operations =?Utf-8?B?YW1wb3pkb2w=?= Microsoft Excel Worksheet Functions 0 18th Aug 2006 06:56 PM
Boolean operations on Enumerations =?Utf-8?B?U2hhd25r?= Microsoft C# .NET 16 8th Jun 2006 04:49 PM
Database function criteria =?Utf-8?B?U3RlcGhlbiBCcm9vaw==?= Microsoft Excel Discussion 2 11th Nov 2004 08:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 AM.