Excel FLOOR Function


Basic Description

The Excel FLOOR function rounds a supplied number towards zero to the nearest multiple of a specified significance.

The syntax of the function is:

FLOOR( number, significance )

Where the arguments are as follows:


number - The initial number that is to be rounded
significance -

The multiple of significance that the supplied number is to be rounded to.

(should generally have the same arithmetic sign (positive or negitive) as the supplied number argument)

Positive and Negative Arguments

Note: In Excel 2003 & 2007, the significance argument must have the same arithmetic sign (positive or negative) as the initial number argument. However, in Excel 2010, the Floor function has been improved, so that it can now handle a negative number argument and a positive significance argument. In this case, the Floor function reverses the direction of the rounding (ie. rounds the supplied number away from zero).


Floor Function Examples

The following spreadsheet shows the Excel Floor function used with several different significance values, on the positive and negative numbers 26.75 and -26.75.

The functions are shown in the spreadsheet on the left and the results are shown in the spreadsheet on the right.

 Formulas:
  A B
1 Number Floor
2 26.75 =FLOOR( A2, 0.1 )
3 26.75 =FLOOR( A3, 0.5 )
4 26.75 =FLOOR( A4, 1 )
5 26.75 =FLOOR( A5, 10 )
6 26.75 =FLOOR( A6, 20 )
7 -26.75 =FLOOR( A7, -0.1 )
8 -26.75 =FLOOR( A8, -1 )
9 -26.75 =FLOOR( A9, -5 )
 Results:
  A B
1 Number Floor
2 26.75 26.7
3 26.75 26.5
4 26.75 26
5 26.75 20
6 26.75 20
7 -26.75 -26.7
8 -26.75 -26
9 -26.75 -25

The above examples show how, when the number and the significance arguments have the same arithmetic sign, the Floor function rounds the supplied number towards zero.


Examples with Positive and Negative Arguments

Different combinations of positive and negative arguments, are shown in the Excel 2010 spreadsheet below.

 Formulas:
  A B
1 Number Floor
2 26.75 =FLOOR( A2, 1 )
3 26.75 =FLOOR( A3, -1 )
4 -26.75 =FLOOR( A4, 1 )
5 -26.75 =FLOOR( A5, -1 )
 Results:
  A B
1 Number Floor  
2 26.75 26  
3 26.75 #NUM!  
4 -26.75 -27  
5 -26.75 26  - returns an error in Excel 2007 & earlier

This example shows how:

Further information on the Excel Floor Function is provided on the Microsoft Office website.


Floor Function Errors

If you get an error from the Excel Floor function, this is likely to be one of the following :

Common Errors
#NUM! - Occurs :
In Excel 2010 : if the supplied number is positive and the supplied significance is negative
or
In Excel 2007 or earlier : if the supplied significance value has a different arithmetic sign to the supplied number argument
#DIV/0! - Occurs if the supplied significance argument = 0
#VALUE! - Occurs if either of the supplied arguments is non-numeric
Return to the Excel Math Functions Page

Return to the List of All Built-In Excel Functions

Valid XHTML 1.0 Transitional Valid CSS!
Disclaimer   Privacy Policy
Copyright © 2008-2013 ExcelFunctions.net