Fields May Save Incorrectly in dBASE Formats from ExcelLast reviewed: July 2, 1996Article ID: Q68914 |
The information in this article applies to:
SUMMARYWhen you save a Microsoft Excel worksheet in a dBASE format (*.DBF), field values may convert incorrectly, depending on the column width and the value of the first record in a field.
MORE INFORMATION
If the First Record in a Field Is a Text ValueText values in these fields are truncated to a number of characters corresponding to the column width of the field. For example, if the column width is set to 5, and a record field contains the text "abcdefgh," the text will be truncated to "abcde" when saved as a .DBF file. If numbers are formatted as Text, they will revert back to the Number format and be right justified. Numbers entered with an apostrophe before it will revert to numbers and will be left justified. If the first record of a field is blank, Microsoft Excel treats it as a text field. This is true even when all other records (blank or not) in that field are formatted as numeric. Numeric entries in these fields will convert differently, depending on the column width:
If the First Record in a Field Is a Numeric Value All other records in these fields are assumed to be numeric also. Any records in these fields that contain text values will be lost when saved in a DBF format. These records will be blank when the file is reopened. Numeric values in these fields will convert as follows:
|
KBCategory: kbfasttip
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |