Math & trig function

ROUNDUP function

Rounds a number away from zero to a chosen number of digits, e.g. to count boxes or billable units.

Available in All versions of Excel, Excel for the web, Excel for Mac

In every Excel versionWorks in Google Sheets

Syntax

ROUNDUP(number, num_digits)
ArgumentWhat it means
numberRequiredThe value to round.
num_digitsRequiredDecimal places to keep: 0 for whole numbers, positive for decimals, negative for tens/hundreds.

Returns: The number rounded away from zero.

How ROUNDUP works

ROUNDUP always moves a number up to the next value with the chosen number of digits, no matter how small the remainder is. 12.01 boxes means you need 13 boxes; 2.31 kg billed per 100 g is 2.4 kg. Wherever a part counts as a whole (packaging, vehicles, staff shifts, billing increments, minimum stock) ROUNDUP gives the safe answer.

"Up" means away from zero. For positive numbers that is upwards, but for negative numbers ROUNDUP makes them more negative: −4.12 rounded up to one decimal is −4.2. If you need "towards plus infinity" for negative values, use CEILING.MATH instead. To round to a multiple like 5 or 0.25 rather than to digits, also use CEILING.MATH.

Examples

1How many boxes for an order

D2fx=ROUNDUP(B2/C2, 0)
ABCD
1OrderItemsPer box
2SO-8811451213

Result: 13

145 / 12 = 12.08, and 12 boxes would leave one item behind, so ROUNDUP returns 13.

2Billable weight in 100 g steps

C2fx=ROUNDUP(B2, 1)
ABC
1ParcelWeight (kg)
2Athens2.3152.4
3Credit note-4.12

Result: 2.4

2.315 kg is rounded up to one decimal, 2.4 kg, even though ROUND would give 2.3.

3Negative values move away from zero

C3fx=ROUNDUP(B3, 1)
ABC
1ParcelWeight (kg)
2Athens2.315
3Credit note-4.12-4.2

Result: -4.2

−4.12 becomes −4.2, a larger amount. For a credit note that is usually what you want; if not, use =CEILING.MATH(B3, 0.1) which gives −4.1.

4Budget rounded up to the next hundred

C2fx=ROUNDUP(B2, -2)
ABC
1DepartmentForecast cost
2Marketing1234012,400

Result: 12,400

Negative digits work too: −2 rounds up to the next hundred, 12,400.

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

Common errors and how to fix them

ErrorWhy it happensFix
Result one too highA value that should be whole is stored as e.g. 12.0000000001 after a calculation, so ROUNDUP adds 1.Round the input first: =ROUNDUP(ROUND(B2/C2, 10), 0).
#VALUE!An argument is non-numeric text.Check the input cells.

Tips

  • =ROUNDUP(x, 0) and =CEILING.MATH(x) agree for positive numbers but not for negative ones.
  • Number of pages for a report: =ROUNDUP(rows/rows_per_page, 0).
  • Billing in started hours: =ROUNDUP(minutes/60, 0).

Questions

How do I round up to the nearest 5?

ROUNDUP only works with digits. Use =CEILING.MATH(B2, 5).

Why does ROUNDUP(-2.1, 0) return -3?

ROUNDUP rounds away from zero. Use CEILING.MATH (−2) if you want the result towards plus infinity.

Google Sheets

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

ROUNDUP 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
DanishRUND.OP
DutchAFRONDEN.NAAR.BOVEN
FinnishPYÖRISTÄ.DES.YLÖS
FrenchARRONDI.SUP
GermanAUFRUNDEN
HungarianKEREK.FEL
ItalianARROTONDA.PER.ECC
Norwegian (Bokmål)AVRUND.OPP
PolishZAOKR.GÓRA
Portuguese (Brazil)ARREDONDAR.PARA.CIMA
Portuguese (Portugal)ARRED.PARA.CIMA
RussianОКРУГЛВВЕРХ
SpanishREDONDEAR.MAS
SwedishAVRUNDA.UPPÅT
TurkishYUKARIYUVARLA

Recipes that use ROUNDUP