"Function Is Not Valid," "Error in Formula" with FLATFILE.XLA

Last reviewed: November 3, 1994
Article ID: Q78278

SUMMARY

FLATFILE.XLA is an add-in macro included with Microsoft Excel 3.0 that provides a parsing utility. When parsing a file in Excel, you will receive the error message "Function is not Valid" or "Error in Formula" if both of the following conditions are met:

  1. A line in the file begins with an @.

  2. The option to remove extra blank spaces is selected from the Smart Parse dialog box.

MORE INFORMATION

The @ character has special significance in Lotus 1-2-3. It precedes each formula, acting similarly to Excel's equal sign. If you attempt to enter the @ character into the first position of a cell in Excel, you will receive the message "Function is not Valid" unless the character is followed by a valid Excel formula, in which case Excel converts the @ character to an equal sign. For example, if you enter

   @SUM(B1:B2)

it is converted to:

   =SUM(B1:B2)

This behavior is consistent whether Alternative Navigation Keys has been selected or not.

To enter the @ character plus a string (other than a valid formula) into a cell, you must use the format ="@string" so that Excel does not attempt to evaluate the contents.

The parsing problems with FLATFILE.XLA (described above) occur when attempting to parse strings that begin with the @ character. A "Function is not Valid" message is returned if a text string follows the @ character. An "Error in Formula" message occurs if the @ character is followed by a numeric value or a text string is preceded by at least one space.

Workarounds

  1. The following steps will remove all occurrences of the @ character in the text file.

    a. Select the data to be parsed.

    b. From the Formula menu, choose Replace.

    c. Type @ in the Find What box, and leave the Replace With box blank.

    d. Select Replace All.

    -or-

  2. Do not select the option to remove extra blank spaces from the Smart Parse dialog box.

REFERENCES

"Microsoft Excel User's Guide," version 3.0, pages 116-135, 684


KBCategory: kbother
KBSubcategory:

Additional reference words: 3.00


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 3, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.