Statistics in Numbers: Median, Mode and Standard Deviation
The examples use this table.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
MEDIAN: the middle value
The median is the middle value when you sort the numbers. With an even count it is the average of the two middle ones.
=MEDIAN(B2:B5)Result: 7
=MEDIAN(C2:C5)Result: 4
MODE: the most common value
MODE returns the value that occurs most often. In this series that is 2.
=MODE(1,2,2,3)Result: 2
LARGE and SMALL: the k-th number
LARGE returns the k-th largest number, SMALL the k-th smallest. With k=2 you get the second largest or smallest.
=LARGE(B2:B5,2)Result: 8
=SMALL(B2:B5,2)Result: 6
RANK: the position in a list
RANK gives the position of a value in a list. By default the highest number gets rank 1.
=RANK(B3,B2:B5)Result: 3
STDEV: the spread
The standard deviation shows how far the values are on average from the average. A small value means the numbers are close together.
=ROUND(STDEV(B2:B5),2)Result: 3.42
Frequently asked questions
What is the difference between average and median?
The average adds everything up and divides by the count. The median is the middle value and is less affected by outliers.
How do I find the second highest value?
Use LARGE with k=2, for example LARGE(B2:B5, 2).
What does the standard deviation tell you?
How far the values are on average from the average. The smaller it is, the closer the numbers are together.
Functions in this article
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising