I have a data range which contains the heights of 150 people. Each height is recorded in meters (with 2 decimals) and in centimeters (no decimals). The range in meters is [1.50, 2.05]. I'm using the Frequency function to calculate frequencies of the heights, both in meters and in centimeters. I do the same with the Countif-Countifs functions in order to verify the results.
The results I get for the heights in centimeters are the same whichever function I use. But the results I get for the heights in meters using the Frequency function differ in two of the categories while the rest are OK. (And the Countifs function gives the correct results). The bins are 1.59, 1.69, 1.79, 1.89, 1.99, over 1.99. For some reason, heights equal to 1.89 are not included in the category (1.79, 1.89] but in the next category (1.89, 1.99].
I've tried this in Excel 2010 and 2013.
There are only 2 people recorded in the data with 1.89 m height and I have placed them in the first rows of the data to make it easier to experiment. When I change these heights to a different number, the Frequency function gives the correct results!
Is this some sort of a bug of the Frequency function or am I missing something?
Bookmarks