The MIN function
MIN gives you the lowest number in a list: the cheapest quote, the fastest time or the coldest day. It ignores text and empty cells in a range.
MIN only returns the value itself. To find out *which* row holds it, combine it with INDEX and MATCH, as shown below.
=MIN(number1, [number2], ...)
Arguments
- number1
- The first number, cell or range to check.
- number2, ...optional
- More numbers, cells or ranges to compare.
Try it
=MIN(B2:B6) in D2. The lowest price in the list is 137.9p a litre, at the supermarket.
D2
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Station | Unleaded (p/litre) | Cheapest | ||
| 2 | Ashford Road | 142.9 | 137.9 | ||
| 3 | High Street | 139.7 | |||
| 4 | Motorway services | 158.9 | |||
| 5 | Supermarket | 137.9 | |||
| 6 | Ring Road | 141.5 | |||
| 7 | |||||
| 8 |
Edit the formula in D2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =MIN(B2:B4) | 139.7 | Only the first three stations. |
| =MAX(B2:B6)-MIN(B2:B6) | 21 | The gap between the dearest and cheapest price: 21p a litre. |
| =INDEX(A2:A6,MATCH(MIN(B2:B6),B2:B6,0)) | Supermarket | MATCH finds the row with the lowest price and INDEX returns the station name from it. |
| =MIN(B2:B6,135) | 135 | Typed numbers count too, so 135 is lower than anything in the range. |
Tips
=MIN(B2,100)returns whichever is smaller, which caps a value at 100.- To find the second or third smallest value, use SMALL.
- For the smallest value that meets a condition, Excel 2019 and later and Google Sheets have MINIFS.
Common mistakes
- MIN returns 0.A cell in the range holds 0, often from a formula for a row that isn't filled in yet. MIN also returns 0 when the range has no numbers at all, for example when they're stored as text.
- A price you can see is lower isn't picked.That cell holds text, not a number (look for left alignment or a green triangle). Convert it to a number.
Practise MIN with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.