The information in this article applies to:
SUMMARYYou can use computed criteria to perform database operations in Microsoft Excel based on multiple Boolean criteria. This is a better alternative to the traditional insertion of additional rows and/or columns to accommodate AND and OR type criteria, especially when there are many conditional combinations. MORE INFORMATION
By using an IF statement, AND/OR functions, and one-dimensional
arrays, computed criteria will facilitate multiple conditions. The
logical test(s) in the IF statement refer to the different criteria
conditions.
ExampleThe example below extracts those records for which Field1 equals 1, 3, 5, 7, or 9 and Field2 equals 2, 4, or 8. The traditional method of using multiple criteria requires fifteen rows in the criteria to accomplish this. The alternative shown below displays how to test for each of these conditions in a single IF statement using computed criteria.
For additional information, query on the following words:
REFERENCES
"User's Guide 1," version 4.0, pages 332-337
Additional query words: 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0 conditional efficient
Keywords : |
Last Reviewed: March 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |