# Smaller of two values

=MIN(value1,value2)

To get the smaller, or lesser, of two values, you can use the MIN function. In the example shown, the formula in D5 is:

=MIN(B5,C5)

The MIN function is fully automatic - it returns the smallest value in the numbers provided. In this case, we give MIN function two values:

=MIN(B5,C5)

and MIN returns the smaller value.

### Elegant alternative to IF

The MIN function can be a compact and elegant replacement for the IF function. For example, the formula above can be written with IF like so:

=IF(B5<=C5,B5,C5)

However, the MIN version is 6 characters shorter (11 vs. 17), and contains no redundant references, so it is less prone to errors.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

## Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.