r/ExcelTips • u/TinyFixLabVideos • 2h ago
Round prices up and packed-item counts down with Excel CEILING and FLOOR
For positive numbers and a positive step, CEILING returns the multiple at or above the number. FLOOR returns the multiple at or below it.
Round prices up to a 5-cent step:
=CEILING(4.42,0.05) returns 4.45
=CEILING(7.13,0.05) returns 7.15
=CEILING(4.95,0.05) stays 4.95 because it is already on the step.
Find how many items fit into full boxes of six:
=FLOOR(14,6) returns 12 packed items, not 12 boxes. That's two full boxes, with two items left over.
=FLOOR(25,6) returns 24 packed items.
=FLOOR(3,6) returns 0 because there aren't enough items for one full box.
These examples were checked in Excel for the web.