How to use CEILING, FLOOR in Excel
CEILING rounds a number up and FLOOR rounds it down to the nearest multiple of a step you choose: 0.05 for cash, 50 for price lists, 15 for billed minutes.
Syntax
=CEILING(number, significance) · FLOOR(number, significance)
number | The value to round. |
significance | The step to round to, e.g. 0.05, 50 or 15. |
Examples
=CEILING(B2, 0.05)2.31 becomes 2.35.=FLOOR(B2, 0.5)12.78 becomes 12.50.=CEILING(B2, 15)47 minutes become 60 billed minutes.=FLOOR(B2, 1000)Down to whole thousands: 12,840 becomes 12,000.Prices, cash and time blocks
Real rules round to steps, not to decimal places: prices end in .95, cash is rounded to 5 cents, consultants bill in quarters of an hour. CEILING and FLOOR handle any step.
=CEILING(B2, 0.05)Cash rounding up to 5 cents.=CEILING(B2, 1)-0.05A price ending in .95: 12.30 becomes 12.95.=CEILING(B2, "0:15")A time rounded up to the next 15 minutes.Bands and buckets
FLOOR groups values into equal bands, which is handy for histograms and pricing tiers.
=FLOOR(B2, 1000)The 1,000-wide band an amount falls into: 12,840 is in the 12,000 band.=FLOOR(B2, 10)&"-"&(FLOOR(B2, 10)+9)Age groups like 30-39.Common mistakes
- #NUM! error
- The number is positive and the step negative. Use a positive step, or CEILING.MATH and FLOOR.MATH, which accept both.
- Expecting normal rounding
- CEILING always goes up and FLOOR always down. For the nearest multiple use
MROUND.
Frequently asked questions
What's the difference between CEILING and ROUNDUP?
ROUNDUP rounds to a number of decimal places. CEILING rounds to a multiple of any step, like 0.05 or 15.
How do I round to the nearest multiple instead?
Use MROUND: =MROUND(B2, 0.05) goes up or down, whichever is closer.
Why does CEILING return #NUM!?
The number is positive and the step negative. Use a positive step, or CEILING.MATH.
How do CEILING and FLOOR handle negative numbers?
With a positive step, CEILING moves towards zero and FLOOR away from it: CEILING(-2.5, 1) is -2. CEILING.MATH and FLOOR.MATH let you choose the direction.
Available in: All versions of Excel, Excel for the web, Google Sheets