Using Computed Criteria on External DatabasesLast reviewed: November 3, 1994Article ID: Q70100 |
The information in this article applies to:
SUMMARYUsing computed criteria in Microsoft Excel between two separate sheets performs differently in Microsoft Excel version 2.1 than it does in later versions. If you are setting up computed criteria on a separate sheet from the database, you need to use field names instead of cell references. This was not the case in earlier versions.
MORE INFORMATION
Steps to Reproduce Problem
ExampleIf the formula in cell B2 of Sheet2 reads
=Sheet1!B2<$A$1where B2 refers to the first data cell in the field Age, the extract for Microsoft Excel 2.1 will still correctly extract the records of Andy and Bill; however, in later versions, all the records in the database will be extracted. In the case of versions 3.0 and 4.0, if your computed criteria formula results in TRUE, all records of the database are extracted and if the formula results in FALSE, none of the records are extracted. Microsoft Excel evaluates the formula once for each record and selects the record if the formula's result is TRUE or a number other than zero. In Microsoft Excel versions 3.0 and 4.0, the relative reference doesn't change because the formula is tested for each record; thus, it is necessary to use the field name. Note: If you are setting up your database, criteria, and extract all on a single sheet in version 3.0 or 4.0, it is not necessary to use a field name instead of a reference. For more information on computed criteria, query on the following keywords:
computed and criteria and references REFERENCES"User's Guide," version 4.0, pages 332-334 "User's Guide," version 3.0 for Windows, pages 374-378 "Microsoft Excel for Windows Reference Guide," version 2.1, pages 180-181
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |