Excel: Database AND in Criteria Example Incorrect

Last reviewed: November 2, 1994
Article ID: Q59245

SUMMARY

Page 171 of the "Microsoft Excel Reference" version 2.2 manual incorrectly states that a logical AND can be created by typing the second criterion in the cell below the first and then including both rows in the criteria range. Following those instructions produces an OR situation instead of an AND situation.

To find records that match values within a certain range, define two cells that are in the same row with the same field name in the criteria range.

For example, the following criteria range finds records for all customers whose zip codes are greater than 40000 AND less than 90000. The following is the example that should have been included in the manual:

   Zip Code     Zip Code
   >40000       <90000


KBCategory: kbdocerr
KBSubcategory:

Additional reference words: noupd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.