Mode Changes on Sort

G

Guest

Sorry for the crossposting, but this seems to be an error in the application
to me.

Below are 75 numbers in a single column. Excel tells me the number 1 is the
mode. Using countif, I get a frequency of 4 (I think that's right).

However, -1.66... shows up 7 times in this set of numbers -- it should be
the mode! And yet Excel insists on the number 1 when I use the simple Mode
function
(=MODE()).

And here's something that is really goofy: =Mode() gives me the correct
number (-1.66...) when the numbers are organized lowest to highest, but when
they're in the order I need them to be in, it resorts back to the wrong mode
(1). I can't believe my eyes as the mode changes as I sort it back and forth.

There's something amiss here, and it makes me angry.

0.833333333
0.333333333
-1.833333333
-0.833333333
3
-0.333333333
-2
1
-1.666666667
2
-1.166666667
1.5
0
-1
-1.333333333
4.166666667
-3
-0.166666667
-2.5
2.166666667
2
-2.5
0.5
1.333333333
0.166666667
-0.833333333
0.5
-1.666666667
2.333333333
1
-1.5
-1
-1.166666667
2.166666667
-0.833333333
0.833333333
1.666666667
-1.666666667
0.666666667
-1.666666667
2
-1.833333333
-0.166666667
0.333333333
-0.333333333
-0.666666667
-1.666666667
2.833333333
-1
-0.166666667
1.5
-1.666666667
-0.5
3.166666667
-2.833333333
1.5
1.166666667
1.333333333
-2.666666667
0.5
0.166666667
0
-1.666666667
0.666666667
0.166666667
0.333333333
0.833333333
0
2
-2.666666667
1
-0.666666667
1.333333333
-2
1
 
G

Guest

Okay, I've found that if I copy the values from my post, it works (not very
helpful, though).

However, the original numbers are derived from a simple formula
(=cell-cell). Even if I paste special them as values, the mode still
switches!

Something's really nutty here.
 
G

Guest

It must be that Excel doesn't like to subtract irrational numbers
(=cell-cell). I've found a way around this using another formula in my data
which gets the same results (an =average(), essentially).

This is frustrating, though.
 
G

Guest

You may be the victim of round-off error. Even though the -1.666666667 all
look identical, they may be varying in digits you are not seeing.

For example, if you see two cells that both display 1.5 they may be
identical or one may be 1.5000001 and the other 1.5000002.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top