Microsoft KB Archive/105429

XL4: Histogram and FREQUENCY Results Different for Same Data

• Microsoft Excel for Windows, versions 4.0, 4.0a
• Microsoft Excel for the Macintosh, version 4.0

SYMPTOMS

The Histogram tool in the Analysis ToolPak add-in macro and the FREQUENCY() function in Microsoft Excel 4.0 return different values for the same data set.

STATUS

This is a known problem in Microsoft Excel 4.0. The problem was corrected in Microsoft Excel 5.0 for Windows and Microsoft Excel 5.0 for the Macintosh.

The FREQUENCY() function returns one element more than the number of intervals listed in the bins_array argument while the Histogram tool returns the same number of elements as the number of intervals in the bins_array argument.

The FREQUENCY() function counts all values below the first bin value and all values above the last bin value. The Histogram tool does not count any values lower than the first bin value, but it does count all values above the highest bin value. The HISTOGRAM() macro function is the macro equivalent of the Histogram tool and will return the same information as the Histogram tool.

Example

Given the following data in Input Range (A1:A11)

```    A1:  1
A2:  2
A3:  5
A4:  8
A5: 11
A6: 12
A7: 19
A8: 21
A9: 32
A10: 45
A11: 48 ```

and the following Bin Values (B1:B4)

```   B1: 10
B2: 20
B3: 30
B4: 40 ```

the result of the FREQUENCY() formula, =FREQUENCY(A1:A10,B1:B4), is 4,3,1,1,2. The result of the Histogram tool is 3,1,1,2.

Note that the FREQUENCY() function returns five values while the Histogram tool returns four values. The difference in results occurs because the FREQUENCY() function counts the values 1, 2, 5, and 8 for the first value that is returned, while the Histogram tool does not count the numbers BELOW the first bin value, but does count the numbers ABOVE the largest bin value.

Additional query words: 4.00a XL4 cumulative distribution

Keywords :
Version : WINDOWS:4.0,4.0a; MACINTOSH:4.0
Platform : MACINTOSH WINDOWS
Issue type :
Technology :