To break a total into whole groups plus what’s left over — eggs into dozens, minutes into hours and minutes, items into full boxes — pair QUOTIENT (the whole part) with MOD (the remainder).
The example
Eggs split into dozens and leftovers.
| A | B | C | |
|---|---|---|---|
| 1 | Eggs | Dozens | Leftover |
| 2 | 30 | 2 | 6 |
| 3 | 25 | 2 | 1 |
| 4 | 48 | 4 | 0 |
The formula
Whole dozens and leftover units:
How it works
Two halves of one division:
QUOTIENT(A2, 12)returns just the whole number of times 12 fits into A2 — the full dozens. For 30 that’s 2.MOD(A2, 12)returns the remainder — the eggs left over after the full dozens. For 30 that’s 6.- They always reconcile:
QUOTIENT × 12 + MOD = A2. QUOTIENT(A2, 12)equalsINT(A2/12)for positive numbers — either works.
Minutes to h:mm: =QUOTIENT(A2,60) & "h " & MOD(A2,60) & "m" turns 150 minutes into “2h 30m.” The same pattern handles any “big units + small units” split.
Try it: interactive demo
Split a total into whole groups and remainder.
Variations
Minutes to hours + minutes
A readable duration:
INT alternative
Same whole part for positives:
Boxes needed (round up)
If a partial group still needs a box:
Pitfalls & errors
#DIV/0! with a zero divisor. Both QUOTIENT and MOD need a non-zero divisor.
QUOTIENT vs INT on negatives. They differ for negative numbers (QUOTIENT truncates toward zero, INT rounds down). For positive counts they agree.
“Whole groups” vs “groups needed.” QUOTIENT gives complete groups; if a leftover still requires a full container, use ROUNDUP instead.
Practice workbook
Frequently asked questions
How do I split a number into whole units and a remainder in Excel?
How do I convert minutes into hours and minutes?
What's the difference between QUOTIENT and INT?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class