# MIN formula generator

> Describe what you need and get a MIN formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested MIN examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/min · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

MIN returns the smallest number from a list of values or ranges.

Describe the task at [MIN formula generator](https://spreadsheetpractice.com/tools/formula-generator/min) and get a MIN formula for Excel and Google Sheets, tested on real data.

## Tested MIN examples

### Cap a percentage at 100%

`=MIN(B2/C2,1)`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/cap-a-percentage-at-100)

### Calculate overtime hours over 8 hours a day

`=MAX(0,(C2-B2)*24-$G$1)`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/overtime-hours-over-8-hours-a-day)

### Calculate a late fee based on days overdue

`=IF(C2>B2,MIN($G$2,(C2-B2)*$G$1),0)`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/late-fee-based-on-days-overdue)

### Calculate overtime pay over 40 hours

`=MIN(B2,$G$1)*C2+MAX(0,B2-$G$1)*C2*$G$2`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/overtime-pay-over-40-hours)

### Check if all values in a range meet a condition

`=IF(MIN(B2:E2)>=$I$1,"Passed all","Retake")`

Excel. Result on the sample sheet: 6 rows (F2:F7). [See it and try it](https://spreadsheetpractice.com/formulas/if-all-values-meet-a-condition)

### Normalize data to a 0-1 scale

`=(B2-MIN($B$2:$B$7))/(MAX($B$2:$B$7)-MIN($B$2:$B$7))`

Excel. Result on the sample sheet: 6 rows (C2:C7). [See it and try it](https://spreadsheetpractice.com/formulas/normalize-data-0-to-1)

### Find the earliest date in a list

`=MIN(B2:B9)`

Excel. Result on the sample sheet: 3/8/2026. [See it and try it](https://spreadsheetpractice.com/formulas/find-the-earliest-date-in-a-list)

### Calculate the percentage of time elapsed between two dates

`=MIN(1,MAX(0,($G$1-B2)/(C2-B2)))`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/percentage-of-time-elapsed-between-two-dates)

## Questions

### What does the MIN formula generator do?

You describe the task in plain English, and it writes the formula, using MIN where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does MIN do?

MIN returns the smallest number from a list of values or ranges.

### Can I learn to write MIN formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the MIN function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
