Ceiling / Floor vs. Roundup / Rounddown

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
What is the actual difference between ceiling and roundup, floor and rounddown?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
CEILING and FLOOR round to a given multiple. ROUNDUP and ROUNDDOWN round to a given number of decimal places.
 
Upvote 0
CEILING and FLOOR round to a given multiple. ROUNDUP and ROUNDDOWN round to a given number of decimal places.

Ok, so if I were to create a spreadsheet that calculates postage increases in increments of 0.5 ounces, would I use roundup?
 
Upvote 0
e.g.

=CEILING(10.2,0.5)

returns 10.5.

=ROUNDUP(10.2,1)

returns 10.3

and

=ROUNDUP(10.2,0)

returns 11.

Just give it a try!
 
Upvote 0
e.g.

=CEILING(10.2,0.5)

returns 10.5.

=ROUNDUP(10.2,1)

returns 10.3

and

=ROUNDUP(10.2,0)

returns 11.

Just give it a try!



As a point, there is another difference between the functions in that, in relation to a numberline, FLOOR() will typically round down accurately to the left, and CEILING() will round up to the right. ROUNDDOWN(), however, will round towards zero and ROUNDUP() will round away from zero.

ROUNDDOWN(2.5) = 2
FLOOR(2.5) = 2
ROUNDDOWN(-2.5) = -2
FLOOR(-2.5) = -3

ROUNDUP(2.5) = 3
CEILING(2.5) = 3
ROUNDUP(-2.5) = -3
CEILING(-2.5) = -2

Meanwhile, ROUND() will ROUNDDOWN() if the decimal is less than .5, otherwise it will function as ROUNDUP():
ROUND(2.5)=3
ROUND(-2.5)=-3
 
Upvote 0
As a point, there is another difference between the functions in that, in relation to a numberline, FLOOR() will typically round down accurately to the left, and CEILING() will round up to the right. ROUNDDOWN(), however, will round towards zero and ROUNDUP() will round away from zero.

You are 9 years late to the party, but that's a cool detail to know!
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top