Excel tutorial
/

Functions

Intermediate

Excel INT and MOD functions: integer part and remainder, even/odd, hours and minutes

Division with a remainder using INT and MOD: full boxes and leftover items, minutes to hours, even/odd numbers, splitting date and time, night shifts — with examples.

Remember “division with a remainder” from school: pack 150 bottles into boxes of 12 and you get 12 full boxes with 6 bottles left over. Excel gives you these two numbers with two functions:

  • INT — the integer part of a number: =ЦЕЛОЕ(150/12) → 12.
  • MOD — the remainder after division: =ОСТАТ(150;12) → 6.

This pair is used in warehouses, logistics, working-time calculations, picking every Nth row and splitting a date-time value into parts.

Книга1 - Excel
—☐✕
E2fx=ОСТАТ(B2;C2)
ABCDEF
1ProductQtyPer boxFull boxesLeft over
2Soda15012126
3Mineral water1006164
4Juice75893
5Cookies24024100
6
Готово
Column D has =ЦЕЛОЕ(B2/C2) — how many full boxes; column E has =ОСТАТ(B2;C2) — how many items are left over

Syntax

=ЦЕЛОЕ(number)

  • number — the number or formula whose integer part you need. INT always rounds down (toward the smaller number): =ЦЕЛОЕ(7,9) → 7, =ЦЕЛОЕ(-2,5) → -3.

=ОСТАТ(number; divisor)

  • number — the dividend (what you divide).
  • divisor — what you divide by. If it is 0 you get #DIV/0!.

The two are linked: MOD(n,d) = n - d*INT(n/d). In other words, MOD is the part INT “throws away”.

Example

AB
1Minutes135

Formula:

=INT(B1/60)&" h "&MOD(B1,60)&" min"

→ result: 2 h 15 min

Entering MOD step by step

1

Select the result cell (E2) and choose Формулы → Математические → MOD. INT is in the same list.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
E2fx
ABCDEF
1ProductQtyPer boxFull boxesLeft over
2Soda1501212
3Mineral water100616
4
5
Готово

2

In the Function Arguments window type B2 (quantity) in Number and C2 (items per box) in Divisor. The result shows at the bottom of the window — click OK.

Книга1 - Excel
—☐✕
E2fx=ОСТАТ(B2;C2)
ABCDEF
1ProductQtyPer boxFull boxesLeft over
2Soda15012126
3Mineral water100616
4
5
Готово

3

Double-click the fill handle in the bottom-right corner of E2 — the formula fills to the end of the table. The references are relative, so each row uses its own numbers.

Книга1 - Excel
—☐✕
E2fx=ОСТАТ(B2;C2)
ABCDEF
1ProductQtyPer boxFull boxesLeft over
2Soda15012126
3Mineral water1006164
4Juice75893
5Cookies240241003
6
ГотовоСреднее: 3,25Количество: 4Сумма: 13
Книга1 - Excel
—☐✕
B2fx=ЕСЛИ(ОСТАТ(A2;2)=0;"Even side";"Odd side")
ABCD
1House no.Street side
212Even side
315Odd side
47Odd side
540Even side
623Odd side
7
Готово
Example 1: even or odd. If a number divides by 2 with no remainder (MOD(A2,2)=0), it is even. Handy for splitting a courier route by street side
Книга1 - Excel
—☐✕
D3fx=ОСТАТ(B3;60)
ABCDE
1DriverTotal minutesHoursMinutes
2Aziz135215
3Dilnoza250410
4Javohir59059
5Sardor48080
6
Готово
Example 2: minutes to hours and minutes. 250 minutes = 4 hours (INT) and 10 minutes (MOD)
Книга1 - Excel
—☐✕
D2fx=ОСТАТ(B2;1)
ABCDEF
1EmployeeCheck-inDateTimeLate?
2Aziz05.01.2026 09:1505.01.202609:15Yes
3Dilnoza05.01.2026 08:5005.01.202608:50No
4Javohir06.01.2026 09:4506.01.202609:45Yes
5
Готово
Example 3: date and time from a turnstile log. The date is the integer part (INT), the time is the fractional part (MOD(B2,1))

Pro level: cycles and night shifts with MOD

  • Night shift hours. For a 22:00–06:00 shift =C2-B2 is negative and the cell fills with ####. =ОСТАТ(C2-B2;1)*24 handles crossing midnight correctly: 8 hours.
  • Duty roster. =ВЫБОР(ОСТАТ(СТРОКА()-2;3)+1;"Aziz";"Dilnoza";"Javohir") cycles 1, 2, 3, 1, 2, 3 as you fill it down.
  • Every Nth row. =ОСТАТ(СТРОКА();2)=0 is TRUE for even rows. In conditional formatting it gives “zebra” stripes; inside FILTER it picks every second record.
  • Fractional part: =ОСТАТ(A2;1) (12.75 → 0.75). Last digit: =ОСТАТ(A2;10). Is it a whole number? =ОСТАТ(A2;1)=0.
Книга1 - Excel
—☐✕
D2fx=ОСТАТ(C2-B2;1)*24
ABCDE
1GuardStartEndHours
2Aziz22:0006:007,99999999999
3Dilnoza08:0017:009
4Javohir20:0008:0012
5
Готово
Aziz works 22:00 to 06:00 — =ОСТАТ(C2-B2;1)*24 = 8 hours. A plain subtraction would give −16 hours
Книга1 - Excel
—☐✕
B5fx=ВЫБОР(ОСТАТ(СТРОКА()-2;3)+1;"Aziz";"Dilnoza";"Javohir")
ABCD
1DateOn duty
205.01.2026Aziz
306.01.2026Dilnoza
407.01.2026Javohir
508.01.2026Aziz
609.01.2026Dilnoza
710.01.2026Javohir
8
Готово
MOD(ROW()-2,3) gives 0, 1, 2, 0, 1, 2…, and +1 turns it into 1, 2, 3; CHOOSE picks the name by that number

Try it in the simulator

Work out how many full boxes and leftover items each product has. Type =ЦЕЛОЕ(B2/C2) in D2 and =ОСТАТ(B2;C2) in E2, then fill both down to row 5. Check: Cookies — 10 boxes, 0 left over.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ProductQtyPer boxFull boxesLeft over
2Soda15012
3Mineral water1006
4Juice758
5Cookies24024
6
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

78 / 154