Excel: COUNT Function not the Same in Lotus

Last reviewed: July 14, 1995
Article ID: Q84176
The information in this article applies to:
  • Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 4.0a, 5.0
  • Microsoft Excel for the Macintosh, versions 2.x, 3.0, 4.0, 5.0
  • Microsoft Excel for OS/2, versions 2.2, 2.21, 3.0

SYMPTOMS

When exporting a Microsoft Excel spreadsheet into Lotus 1-2-3, cells that contain the COUNT() function may not be calculated the same in Lotus. The problem occurs when the COUNT() function refers to values that cannot be translated into numbers, such as blanks, letters, or error values.

CAUSE

Lotus does not have a function equivalent to the COUNT() function in Microsoft Excel.

WORKAROUND

If you need a counting function in Microsoft Excel that will always be calculated the same way in Lotus, use the COUNTA function in Microsoft Excel. Also, be sure to always specify a range for an argument that is just one cell. For example, use COUNTA(A1:A1) instead of COUNTA(A1).

MORE INFORMATION

In Microsoft Excel, the COUNT() function counts the number of numbers that are in the list of arguments. Values that cannot be translated into numbers, such as empty cells and cells that contain letters or errors, are ignored.

However, the Lotus COUNT() function counts nonblank cells that are in the list of arguments, the equivalent of the Microsoft Excel COUNTA function. In fact, when you import a Lotus spreadsheet into Microsoft Excel, Microsoft Excel replaces all the COUNT() functions with COUNTA.

The COUNTA() function in Microsoft Excel is equivalent to Lotus' COUNT() function with one exception. If an argument encompasses a blank cell, Lotus' COUNT function will count it unless the argument is given as a range. For example, if A1 is blank, @COUNT(A1)=1 but @COUNT(A1..A1)=0. The Microsoft Excel COUNTA function will return zero in both cases.

Lotus 1-2-3 is manufactured by Lotus Development Corp., a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.

REFERENCES

"Function Reference," version 4.0, pages 68-70


KBCategory: kbother
KBSubcategory:

Additional reference words: 5.00 2.10 2.1 2.20 2.2 2.21 3.00 3.0 4.00 4.0
123 1 2 3


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: July 14, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.