Error Merging when Data File Is Microsoft Excel CSV or Text

ID: Q96921

The information in this article applies to:

SUMMARY

In Microsoft Word, if you use a Microsoft Excel file saved in the CSV or Text file format for the data file in a print merge document, you may receive one of the following error messages during the merge if the last column in the data file does not contain data in at least every 16th record:

   Word Version 2.0
   ----------------

   There are fewer fields in record <N> than mergefields in header
   record. Do you want to continue with the Print Merge?

   Where <N> is the number of the first record of a 16-row block of
   records in which the last column contains no data.

   Word Version 1.x
   ----------------

   Number of fields does not match number of names in record N.
   Continue with Print Merge?

   Where <N> is the number of the first record of a 16-row block of
   records in which the last column contains no data.

Workarounds

To work around this problem, do one of the following:

MORE INFORMATION

In Microsoft Excel, if you save a file in Text or CSV format, Microsoft Excel places tabs or commas between each column of the worksheet. However, if the cells in the last column contain no data, the extra comma or tab indicating the blank field for that record is stripped off when the file is saved.

Microsoft Excel saves text files in 16-row blocks. Therefore, if all the cells in the last column in a 16-row block are empty, Microsoft Excel saves that area as if the column did not exist. No tabs or commas are saved for that 16-row block of cells.

KBCategory: KBSubcategory: kbmerge Additional query words: excel 1.0 1.10 1.10a 2.0 winword2 word6 winword 2.0a 2.0a-cd 2.0b 2.0c 6.0 5.0

Keywords          : kbprint kbmerge 
Version           : 1.x 2.x 6.0 6.0a 6.0c
Platform          : WINDOWS

Last Reviewed: February 6, 1998