Compatibility function

FLOOR function

Rounds a number down, towards zero, to the nearest multiple of a significance, e.g. down to whole dozens or the previous 15 minutes.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. FLOOR still works, but for new workbooks use FLOOR.MATH.

Syntax

FLOOR(number, significance)
ArgumentWhat it means
numberRequiredThe value to round.
significanceRequiredThe multiple to round to. For a positive number it must be positive; 0 returns #DIV/0!.

Returns: The rounded number.

How FLOOR works

FLOOR rounds a value down to the previous multiple of a step you choose. Use it to price items down to the nearest 0.99 band, to count only complete packs (FLOOR(50, 12) is 48 — four full dozens), to bucket ages into 10-year groups, or to round clock times down to the start of a 15-minute slot. Values that are already exact multiples are left alone.

Sign rules: a positive number with a negative significance returns #NUM!. A negative number with a positive significance (Excel 2010 and later) rounds away from zero, so FLOOR(-2.5, 2) is -4; with both negative it rounds towards zero, FLOOR(-2.5, -2) is -2. A significance of 0 returns #DIV/0! — unlike CEILING, which returns 0.

Compatibility note: FLOOR has been listed with the compatibility functions since Excel 2010. The recommended replacement is FLOOR.MATH (Excel 2013), which defaults the significance to 1, ignores the sign of the significance and has a mode argument for negative numbers; FLOOR.PRECISE always rounds down. For positive numbers and positive significance, all three agree.

Examples

1Count complete dozens

C2fx=FLOOR(A2, B2)
ABC
1Eggs collectedPack size
2501248

Result: 48

50 is between 48 and 60; FLOOR goes down to 48, the eggs that fill complete boxes. =FLOOR(A2,B2)/B2 gives 4 boxes.

2Group ages into decades

C2fx=FLOOR(B2, 10)
ABC
1CustomerAge
2Ana3730

Result: 30

37 rounds down to 30, so the customer falls in the 30–39 band. Fill the formula down and use it as a PivotTable row field.

3Negative numbers round away from zero

C2fx=FLOOR(A2, B2)
ABC
1NumberSignificance
2-2.52-4

Result: -4

"Down" on the number line from -2.5 is -4. Excel 2007 and earlier returned #NUM! here. With -2 as the significance the result would be -2.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!number is positive and significance negative.Use a positive significance or switch to FLOOR.MATH.
#DIV/0!significance is 0.Use a non-zero step, or FLOOR.MATH, which returns 0 instead.
#VALUE!An argument is non-numeric text.Check the inputs.

Tips

  • Round a time down to the quarter hour: =FLOOR(A2, "0:15"), then format the cell as time.
  • For whole numbers, =FLOOR.MATH(A2) (no second argument) is the same as INT for positive values.
  • Floating-point values just below a multiple can round down one step further than you expect (e.g. 0.3 stored as 0.29999…). Wrap the input in ROUND if it comes from a calculation.

Questions

What is the difference between FLOOR and ROUNDDOWN?

ROUNDDOWN cuts to a number of decimal places; FLOOR rounds down to any multiple, such as 12, 0.25 or 15 minutes.

Should I use FLOOR or FLOOR.MATH?

Use FLOOR.MATH for new workbooks: the significance is optional and sign mismatches never cause errors. Keep FLOOR only when the file must work in Excel 2010 or earlier.

Why does FLOOR give #DIV/0!?

The significance is 0 (often an empty cell). Use a non-zero step.

Google Sheets

FLOOR also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

FLOOR in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechZAOKR.DOLŮ
DanishAFRUND.GULV
DutchAFRONDEN.BENEDEN
FinnishPYÖRISTÄ.KERR.ALAS
FrenchPLANCHER
GermanUNTERGRENZE
HungarianPADLÓ
ItalianARROTONDA.DIFETTO
Norwegian (Bokmål)AVRUND.GJELDENDE.MULTIPLUM.NED
PolishZAOKR.W.DÓŁ
Portuguese (Brazil)ARREDMULTB
Portuguese (Portugal)ARRED.DEFEITO
RussianОКРВНИЗ
SpanishMULTIPLO.INFERIOR
SwedishRUNDA.NER
TurkishTABANAYUVARLA