This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later),. For a version of this tip written specifically for later versions of Excel, click here:Establishing a FLOOR and CEILING.
Both FLOOR and CEILING, as you can tell, require two arguments. The first is the number to be rounded. Actually, this is a misnomer, as there is no real rounding taking placethe number represents the starting point for determining a relationship between the multiple value (the second argument) and zero.
If the number of candy bars ordered (in cell B3) is 31, then the value returned by the formula will be 2. (2 boxes at 12 bars each is 24 bars.) Granted, this formula could also be easily constructed using the INT or TRUNC functions (Excel very often provides multiple ways to accomplish the same tasks). You could use the CEILING function in place of the FLOOR function in this example if you wanted to round up to the next full box above what is required for the candy order:
When you make changes in a worksheet, Excel automatically recalculates everything that may be affected by that change. If…
Notify me about new comments ONLY FOR THIS TIP
Using the same scenario, this formula would return 3 (3 boxes, or 36 candy bars).
Solve Real Business ProblemsMaster business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check outMicrosoft Excel 2013 Data Analysis and Business Modelingtoday!
(Your e-mail address is not shared with anyone, ever.)
With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president ofSharon Parq Associates, a computer and publishing services company.Learn more about Allen…
This formula will return a value of 24. Why? Because 24 is the largest multiple of 12 between 27 and 0. The CEILING function works similarly, as follows:
FREE SERVICE:Get tips like this every week inExcelTips,a free productivity newsletter. Enter your address and click Subscribe.
One of the financial worksheet functions provided in Excel is the XIRR function. This is used to figure out an internal…
(Your e-mail address is not shared with anyone, ever.)
There are currently no comments for this tip. (Be the first to leave your commentjust use the simple form above!)
When you import a CSV file into an Excel worksheet, you may be surprised at how the program allocates the information…
When applying trigonometry to the values in a worksheet, you may need to convert radians to degrees. This is done by…
If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters[fig]in your comment text. Youll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.
When using FLOOR and CEILING, remember that the sign of the arguments must match. If one argument is positive and the other negative, Excel returns an error value of NUM!.
If you want to add up the contents of a range of cells based on what is contained in a different range of cells, you need…
Notify me about new comments ANYWHERE ON THIS SITE
(gif, jpeg or png only, 5MB maximum file size)
FREE SERVICE:Get tips like this every week inExcelTips,a free productivity newsletter. Enter your address and click Subscribe.
This formula returns 36, since that is the next multiple of 12 away from zero, but larger than 27.
CSV File Opens with Data in a Single Column
FLOOR and CEILING can come in handy if you are trying to figure out multiples of items. (In this way it is similar to the MROUND function.) For instance, suppose you were running your youth group candy sale, and you could only deliver candy to the kids in full boxes. Each box contained 12 candy bars. Suppose cell B3 contained an order quantity, and cell C3 contained the number of candy bars in each box (in this case, 12). You could place the following formula in cell D3 to return the number of full boxes that should be delivered:
(gif, jpeg or png only, 5MB maximum file size)
(gif, jpeg or png only, 5MB maximum file size)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)?This site is for you!If you use a later version of Excel,visit ourExcelTipssite focusing on the ribbon interface.
Chances are good that you know how to use the primary rounding functions in Excel: ROUND, ROUNDUP, and ROUNDDOWN. There are two other similar functions you can use, as well: FLOOR and CEILING. The FLOOR function allows you to round down (toward zero) while the CEILING function rounds up (away from zero). Unlike other rounding functions, however, FLOOR and CEILING work with multiples of numbers. For instance, consider the following formula:
ExcelTipsis your source for cost-effective Microsoft Excel training. This tip (2152) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here:Establishing a FLOOR and CEILING.
You can create a special header and footer page numbering scheme by using nested fields. This tip shows an example of how…