Excel: MEDIAN Function Returns Incorrect ResultsLast reviewed: November 3, 1994Article ID: Q79238 |
SUMMARYThe MEDIAN function in Excel for Windows version 3.0 may return incorrect results. The error occurs when an even number of values are calculated with the MEDIAN function and the two middle values are equal. The problem does not exist in any other version of Excel.
MORE INFORMATIONThe MEDIAN function returns the middle number in a range of sorted values if the range contains an odd number of values, or returns the average of the two middle values if the range contains an even number of values. Comparing an even number of values may lead to incorrect results. If the two middle values are the same, the MEDIAN function will incorrectly calculate the average of the two values that surround the middle values. When an odd number of values are compared, the MEDIAN function returns correct values.
Step to Reproduce Problem
REFERENCES"Microsoft Excel Function Reference," version 3.0, page 15
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |