# Microsoft Knowledge Base

## Excel: Unexpected Results Using the MODE() Function

Last reviewed: September 12, 1996 Article ID: Q105431
The information in this article applies to:

- Microsoft Excel for Windows, versions 4.0, 4.0a, and 5.0
- Microsoft Excel for the Macintosh, version 4.0

In Microsoft Excel, if you are using the MODE() function and you are using a bimodal data set (the data set contains TWO values that occur most frequently), the function will return the bimodal value that occurs first in the data set.

### Example

The formula MODE(4,4,4,5,5,5,1), returns the value 4. The formula MODE(4,5,4,5,4,5,1), returns the value 4. The formula MODE(5,4,4,5,4,5,1), returns the value 5. The formula MODE(1,5,4,5,4,5,4), returns the value 5.

## REFERENCES

"Function Reference," version 4.0, pages 278-279

> KBCategory: kbusage
> KBSubcategory:

> Additional reference words: 4.00 4.00a 5.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: September 12, 1996
©1997 Microsoft Corporation. All rights reserved. Legal Notices.