# INT formula generator

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

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

INT rounds a number down to the nearest whole number.

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

## Tested INT examples

### Calculate the number of weeks between two dates

`=INT((C2-B2)/7)`

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

### Remove the time from a date

`=INT(A2)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/remove-the-time-from-a-date)

### Calculate hours between two dates and times

`=(C2-B2)*24`

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

### Find the remainder of a division

`=MOD(B2,C2)`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/remainder-of-a-division)

### Check if a number is a whole number

`=MOD(B2,1)=0`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/check-if-a-number-is-a-whole-number)

### Round prices to end in .99

`=ROUNDUP(B2,0)-0.01`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/round-prices-to-99)

### Calculate the sprint number for a date

`=INT((A2-$E$1)/$E$2)+1`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/sprint-number-from-a-date)

### Convert decimal hours to hours and minutes

`=B2/24`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/convert-decimal-hours-to-hours-and-minutes)

## Questions

### What does the INT formula generator do?

You describe the task in plain English, and it writes the formula, using INT 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 INT do?

INT rounds a number down to the nearest whole number.

### Can I learn to write INT 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 INT 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.
