Using Computed Criteria in Excel for Multiple ConditionsID: Q77683
|
You 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.
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.
A1: Field1 B1: Field2 C1:
A2: 1 B2: 2 C2: =IF(OR(Field1={1,3,5,7,9}),OR(Field2={2,4,8}))
A3: 3 B3: 4
A4: 5 B4: 6
A5: 7 B5: 8
A6: 9 B6: 10
A8: Field1 B8: Field2
A9: 1 B9: 2
A10: 3 B10: 4
A11: 7 B11: 8
computed and criteria and excel
"User's Guide 1," version 4.0, pages 332-337
"Function Reference," version 4.0, pages 16, 227, 236, 310
"Microsoft Excel User's Guide," version 3.0, pages 374-378
"Microsoft Excel Function Reference," version 3.0, pages 9, 126, 127,
172
Additional query words: 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0 conditional efficient
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 22, 1999