FLOOR & CEILING Functions: Round Numbers to Specific Multiples

FLOOR and CEILING in Excel feature image for tutorial blog
FLOOR always rounds down to the nearest multiple of your chosen significance; CEILING always rounds up. Unlike ROUNDDOWN and ROUNDUP which work in decimal places, these functions snap to any multiple — 5, 10, 0.05, 0.25, or a time interval like 15 minutes. This guide covers both functions and their .MATH variants with six practical examples covering prices, bundle quantities, time rounding, grade boundaries, and negative number handling.

ROUND, ROUNDUP, and ROUNDDOWN work in decimal places — they can give you 27.3 rounded to one decimal, but they cannot give you 27.3 rounded down to the nearest 5. That is what FLOOR and CEILING do. FLOOR always rounds down to the nearest multiple of a number you specify. CEILING always rounds up. The multiple can be 5, 10, 0.25, 0.05, or any other value — making these the right tools for rounding prices to coin denominations, quantities to box sizes, times to 15-minute slots, and scores to grade boundaries.

Availability: FLOOR and CEILING are available in all Excel versions from Excel 2007 onwards. The improved variants FLOOR.MATH and CEILING.MATH (with better negative-number handling) were introduced in Excel 2013 and are available in all later versions including Microsoft 365.

FLOOR and CEILING Syntax

=FLOOR(number, significance) Round DOWN to nearest multiple =CEILING(number, significance) Round UP to nearest multiple
ArgumentRequired?What it means
number Required The value to round. Usually a cell reference, but can be a hardcoded number or formula result. If the number is already an exact multiple of significance, it is returned unchanged.
significance Required The multiple to round to. FLOOR rounds down to the nearest value divisible by this number. CEILING rounds up. Common values: 5 (nearest 5), 0.05 (nearest 5 cents), 10 (nearest 10), 0.25 (nearest quarter-hour).

The visual below shows how FLOOR and CEILING work for the number 27, with significance 5. FLOOR finds the nearest multiple below; CEILING finds the nearest multiple above.

FLOOR
25
26
number
27
28
29
CEILING
30
=FLOOR(27, 5) → 25 (largest multiple of 5 that is ≤ 27) =CEILING(27, 5) → 30 (smallest multiple of 5 that is ≥ 27) =FLOOR(25, 5) → 25 (already an exact multiple — no change) =CEILING(25, 5) → 25 (already an exact multiple — no change)

FLOOR, CEILING, and MROUND — Which One to Use?

Feature FLOOR CEILING MROUND
Direction Always rounds down Always rounds up Rounds to nearest (up or down)
Multiple of 5 for 27 25 30 25 (nearer) or 30
Multiple of 5 for 23 20 25 25 (nearer)
Guaranteed direction? Yes — always down Yes — always up No — depends on value
Best use case Floor quantities, lower price tiers Bundle sizes, SLA windows, upper tiers Time rounding, price rounding to nearest

Example 1: Round Prices to Coin Denominations

The most common real-world use — rounding calculated prices to the nearest denomination you accept as cash. Use FLOOR to round down to the nearest 5 cents, or CEILING to round up to avoid dealing in small coins entirely.

1
Round calculated prices to the nearest 5 cents or 10 cents
#
A — Price
FLOOR 0.05
CEILING 0.05
CEILING 0.10
2
$4.42
$4.40
$4.45
$4.50
3
$9.97
$9.95
$10.00
$10.00
4
$12.33
$12.30
$12.35
$12.40
Round DOWN to nearest 5 cents — customer pays less (FLOOR): =FLOOR(A2, 0.05) Round UP to nearest 5 cents — ensures you cover cost (CEILING): =CEILING(A2, 0.05) Round UP to nearest 10 cents — no coins under a dime: =CEILING(A2, 0.10) Round DOWN to nearest whole dollar: =FLOOR(A2, 1) Round UP to nearest whole dollar: =CEILING(A2, 1)
FLOOR(4.42, 0.05) = $4.40 — the largest multiple of 0.05 that does not exceed 4.42. CEILING(4.42, 0.05) = $4.45 — the smallest multiple of 0.05 that is at least 4.42.

Example 2: Packing and Bundle Quantities

When items are sold or shipped in fixed bundle sizes, you need to know how many complete bundles to dispatch (use FLOOR — round down to the last complete bundle) or how many to order to cover a requirement (use CEILING — round up to the next full bundle).

2
Calculate full boxes to ship and boxes to order for a demand quantity
#
A — Order qty
B — Per box
Full boxes to ship
Boxes to order
2
57
12
48 (4 boxes)
60 (5 boxes)
3
36
12
36 (3 boxes)
36 (3 boxes)
Items in full boxes to dispatch (round down to last complete box): =FLOOR(A2, B2) 57 → 48 (4 complete boxes of 12). 3 items left over. Number of full boxes: =FLOOR(A2, B2) / B2 57 → 4 Items in boxes to order (must cover full demand — round up): =CEILING(A2, B2) 57 → 60 (5 boxes). You order 60, receive 57. Number of boxes to order: =CEILING(A2, B2) / B2 57 → 5
Exact multiples are returned unchanged: When the order quantity is exactly divisible by the box size — like 36 items in boxes of 12 — both FLOOR and CEILING return 36. No rounding occurs when the number is already an exact multiple of significance.

Example 3: Round Times to 15-Minute Slots

FLOOR and CEILING work with time values when significance is expressed as a fraction of a day, or as a time string like "0:15". This makes them ideal for rounding time entries to billing intervals or calendar slot boundaries.

3
Round logged time down to the previous 15-minute boundary
#
A — Logged time
FLOOR to 15 min
CEILING to 15 min
CEILING to 30 min
2
9:17 AM
9:15 AM
9:30 AM
9:30 AM
3
14:43
14:30
14:45
15:00
Round time DOWN to previous 15-minute boundary: Excel times are fractions of a day. 15 min = 15/(24*60) = 1/96. Using fraction: =FLOOR(A2, 1/96) Using time string (cleaner — CEILING also supports this): =FLOOR(A2, "0:15") Round time UP to next 15-minute boundary: =CEILING(A2, "0:15") Round time UP to next 30-minute boundary: =CEILING(A2, "0:30") Round time UP to next full hour: =CEILING(A2, "1:00")
Format the result as a time: FLOOR and CEILING return a decimal fraction when working with times. Format the result cell as Time (Ctrl+1 → Time) to display it as a clock time rather than a number like 0.385.

Example 4: Round to Nearest 5, 10, or 100

FLOOR and CEILING round to any integer multiple, not just fractions. Use significance values of 5, 10, 50, 100, or 1000 to round scores, populations, budgets, or any large number to a clean reporting unit.

4
Round scores, budgets, and population figures to clean reporting multiples
Number
FLOOR(n, 5)
CEILING(n, 5)
FLOOR(n, 100)
CEILING(n, 100)
73
70
75
0
100
1,347
1,345
1,350
1,300
1,400
9,812
9,810
9,815
9,800
9,900
Nearest 5 — for scores, ratings, and survey values: =FLOOR(A2, 5) 73 → 70 =CEILING(A2, 5) 73 → 75 Nearest 100 — for budget summaries and population reports: =FLOOR(A2, 100) 1,347 → 1,300 =CEILING(A2, 100) 1,347 → 1,400 Nearest 1,000 — for large financial figures: =FLOOR(A2, 1000) =CEILING(A2, 1000)

Example 5: Grade Boundaries and Score Tiers

FLOOR is ideal for assigning scores to grade bands — round down to the start of each 10-point tier and the result is the band label. Combine with CHOOSE or a lookup to convert the floored value into a letter grade or category.

5
Assign a grade band from a raw score and translate it to a letter grade
#
A — Score
FLOOR to 10
FLOOR ÷ 10
Grade band
2
87
80
8
B
3
63
60
6
D
Floor score to 10-point band boundary (87→80, 63→60): =FLOOR(A2, 10) Divide by 10 to get a 0-10 index (useful for CHOOSE): =FLOOR(A2, 10) / 10 Full grade letter formula — CHOOSE maps 0-9 to F/F/F/F/F/F/D/C/B/A: (Index 1-10 required: add 1 so 0→1, 1→2, etc.) =CHOOSE( =FLOOR(A2, 10) / 10 + 1, "F","F","F","F","F","F","D","C","B","A") 87 → FLOOR=80 → /10=8 → +1=9 → CHOOSE returns "B"

Example 6: FLOOR.MATH and CEILING.MATH — Better Negative Number Handling

The original FLOOR and CEILING functions can behave unexpectedly with negative numbers — particularly if number and significance have mismatched signs. FLOOR.MATH and CEILING.MATH (Excel 2013+) add a mode argument that gives you explicit control over rounding direction for negative values.

6
Handle negative values with FLOOR.MATH and CEILING.MATH
FLOOR.MATH / CEILING.MATH syntax (significance and mode are optional): =FLOOR.MATH(number, [significance], [mode]) =CEILING.MATH(number, [significance], [mode]) Positive numbers — same result as FLOOR / CEILING: =FLOOR.MATH(27, 5) → 25 =CEILING.MATH(27, 5) → 30 Negative number -7.3 with significance 1: mode = 0 (default) — rounds toward negative infinity (away from zero): =FLOOR.MATH(-7.3, 1, 0) → -8 (toward negative infinity) =CEILING.MATH(-7.3, 1, 0) → -7 (toward zero) mode = 1 — FLOOR.MATH rounds toward zero instead: (useful for temperature bands, financial floors, etc.) =FLOOR.MATH(-7.3, 1, 1) → -7 (toward zero) Significance defaults to 1 when omitted: =FLOOR.MATH(7.3) → 7 (rounds down to nearest integer) =CEILING.MATH(7.3) → 8 (rounds up to nearest integer)
When to use .MATH variants: For positive numbers the results are identical to FLOOR and CEILING — use whichever you prefer. Switch to FLOOR.MATH / CEILING.MATH when your data contains negative values and the direction of rounding matters, or when you want to omit the significance argument to simply round to the nearest integer.

Troubleshooting FLOOR and CEILING Errors

#DIV/0! error

The significance argument is 0. FLOOR and CEILING cannot round to a multiple of zero — it is mathematically undefined. Check the cell or formula providing the significance value and ensure it is non-zero.

#VALUE! error

One of the arguments is non-numeric. Verify that both number and significance cells contain numbers, not text. A cell displaying "5" but stored as text will cause this error.

#NUM! error (older Excel)

In Excel 2007 and Excel 2010, CEILING returns #NUM! if number is positive and significance is negative. Ensure both arguments share the same sign, or upgrade to CEILING.MATH which handles mixed signs without error.

Result is farther from zero than expected for negative numbers

FLOOR on a negative number rounds toward negative infinity by default — so FLOOR(-7.3, 1) returns -8, not -7. If you need rounding toward zero for negatives, use FLOOR.MATH with mode = 1.

Floating-point precision note: Due to how computers store decimal numbers, FLOOR(7.9, 0.1) may return 7.8 instead of 7.9 in rare cases. To avoid this, multiply by 100 first: =FLOOR(A2*100, 10)/100. For financial calculations with pennies, multiplying by 100 and working in integer cents eliminates floating-point surprises.

Frequently Asked Questions

  • What is the difference between FLOOR and CEILING in Excel?+
    FLOOR always rounds down to the nearest multiple of the significance value you specify. CEILING always rounds up. Both functions round to multiples rather than decimal places — significance 5 means "round to the nearest 5", not "5 decimal places". If a number is already an exact multiple, both functions return it unchanged.
  • What is the difference between FLOOR and ROUNDDOWN?+
    ROUNDDOWN rounds to a specified number of decimal places — ROUNDDOWN(27.83, 1) gives 27.8. FLOOR rounds to a specified multiple — FLOOR(27.83, 5) gives 25. Use ROUNDDOWN when you need a fixed number of decimal places. Use FLOOR when you need to snap to a specific multiple like 5, 10, 0.25, or 0.05.
  • What is the difference between CEILING and MROUND?+
    MROUND rounds to the nearest multiple — it can go either up or down depending on which multiple is closer. CEILING always rounds up to the next multiple, regardless of how close the number is to the one below. Use MROUND when you want standard rounding to the nearest multiple. Use CEILING when you must guarantee rounding up — for example, when calculating the number of boxes needed to fulfil an order.
  • How do I round a time to the nearest 15 minutes with FLOOR or CEILING?+
    Excel times are stored as fractions of a day — 15 minutes is 15/1440 or 1/96. You can pass the time string "0:15" directly as the significance argument: =FLOOR(A2, "0:15") or =CEILING(A2, "0:15"). Format the result cell as Time to display it correctly. For 30-minute rounding use "0:30", for hourly use "1:00".
  • When should I use FLOOR.MATH and CEILING.MATH instead of FLOOR and CEILING?+
    Use FLOOR.MATH or CEILING.MATH when working with negative numbers and you need explicit control over rounding direction, or when you want to omit the significance argument to round to the nearest integer (significance defaults to 1 in the .MATH variants). For positive numbers the results are identical to the original functions. FLOOR.MATH and CEILING.MATH require Excel 2013 or later.
  • How do I round prices to the nearest 5 cents with CEILING?+
    Use a significance of 0.05: =CEILING(A2, 0.05). This rounds the price up to the nearest multiple of $0.05. For example, $4.42 becomes $4.45 and $9.97 becomes $10.00. To round down to the nearest 5 cents instead (for customer-friendly pricing), use FLOOR(A2, 0.05) — $4.42 becomes $4.40.