View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default Database Function Criteria Boolean Operations

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...spx#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