Excel: Text File Opens Blank or with Partial Data

Last reviewed: November 2, 1994
Article ID: Q57395

SUMMARY

When you open a text file into Microsoft Excel, a blank worksheet may open, or only part of the file may appear. This will occur if the file contains an ASCII zero value. Excel uses an ASCII zero as its internal terminator. As soon as Excel encounters an ASCII zero when opening a text file, Excel stops reading the file.

To remove the ASCII zero value, do the following:

  1. Open the file in a program that can search and replace ASCII characters (for example, Microsoft Word).

  2. Replace all occurrences of ASCII zeros with nothing.

MORE INFORMATION

To remove ASCII zeros from a file using Word:

  1. From the Utilities menu, choose Change (in Word versions 3.00, 3.01, and 3.02, Change is located on the Search menu).

  2. In the Find What box, type ^0; that is, press SHIFT+6, then the 0 (zero) key.

  3. Leave the Change To box empty.

  4. Click Change All.

  5. Save the file as Text Only and reopen it into Excel.


KBCategory: kbother
KBSubcategory:

Additional reference words: 2.20


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.