Q+E: Unexpected Results with Mixed Alpha and Numeric DataLast reviewed: September 12, 1996Article ID: Q95386 |
The information in this article applies to:
SUMMARYWhen you open a Microsoft Excel database in Q+E for Microsoft Excel, if the same field in the first twenty-five records of your database contains mixed text and numeric values, the numeric values are displayed with additional decimal points. The text values are displayed correctly. Also, if the same field of your database contains mixed text and numeric values but there are no text values in the first twenty-five records, the numeric values are displayed correctly but the text values are not displayed.
MORE INFORMATIONWhen you import a database from Microsoft Excel or a text file, Q+E scans the first twenty-five records of each field to determine the data type for that field. That is, if the first twenty-five records contain text in that field then Q+E considers it a text field; if the first twenty-five records contain numbers, then Q+E considers it a numeric field. If the first twenty-five records of a field contain both text and numeric values, then Q+E considers it a text field and displays a number with a decimal point and two trailing zeros (nnn.00). If there are no text values in the first twenty-five records but there are text values in records after the first twenty-five, Q+E considers the field to be a numeric field. For example, in a field containing 5-digit and 9-digit ZIP codes, if Q+E determines that the field is text, the 5-digit ZIP codes will be displayed with decimal points and trailing zeros. If the field is determined to be numeric, the 9-digit ZIP codes will not be displayed.
WorkaroundTo force Q+E for Microsoft Excel to display mixed numeric and text values in a field, ensure that the field is formatted as text, and that all values are recognized by Q+E as text values. To ensure that all values are recognized as text, do one of the following:
To format data as text in Microsoft Excel
To save your file as in the CSV file format
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |