ROUNDUP Function (OpenOffice Calc)
Learn the ROUNDUP function in Apache OpenOffice Calc: Rounds a number up to the predefined accuracy.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
ROUNDUP rounds away from zero to a requested decimal position. For a positive value this makes the result larger or unchanged; for a negative value it makes the result more negative or unchanged. The name does not mean “toward positive infinity.”
Syntax and arguments
=ROUNDUP(number; decimals)
=ROUNDUP(number)
number is a numeric expression or reference. Optional decimals defaults to 0. Use 2 for hundredths, 0 for whole numbers, and -2 for hundreds. The pinned Apache OpenOffice 4.1.16 RoundNumber routine converts this parameter downward to an integer and accepts -20 through 20. Supply an integer explicitly instead of relying on conversion.
| Formula | Expected result |
|---|---|
=ROUNDUP(1.21;1) |
1.3 |
=ROUNDUP(-1.21;1) |
-1.3 |
=ROUNDUP(1.2;1) |
1.2 |
=ROUNDUP(7.01) |
8 |
=ROUNDUP(-7.01;0) |
-8 |
=ROUNDUP(123;-1) |
130 |
=ROUNDUP(-123;-1) |
-130 |
=ROUNDUP(0;2) |
0 |
The first example preserves the original guide’s example. Its older comparable LibreOffice 25.2 result was not an OpenOffice test; none of the examples is being reported as a fresh OpenOffice execution.
Reproducible worksheet: cartons required
Enter this table beginning at A1. Quantities must be nonnegative, and capacity must be positive.
| Row | A: Units | B: Units per carton |
|---|---|---|
| 2 | 121 | 12 |
| 3 | 120 | 12 |
| 4 | 0 | 12 |
In C2 enter =ROUNDUP(A2/B2;0) and fill down to C4. Expected carton counts are 11, 10 and 0. For row 2, ten cartons hold only 120 units, so an eleventh is needed. Exact multiples are unchanged; ROUNDUP does not always add one.
In D2 enter =C2*B2-A2 and fill down. Unused capacities are 11, 0 and 0. The calculation is meaningful because both columns use compatible units. A negative inventory adjustment should be handled as an adjustment, not interpreted as a negative carton requirement.
Advanced applications
Minimum time block for billing. If A2 is a nonnegative duration in minutes, =ROUNDUP(A2/15;0)*15 rounds it to a whole 15-minute block. Inputs 16, 30 and 0 yield 30, 30 and 0 minutes. If A2 is a Calc day-fraction duration instead, convert it to minutes first with A2*1440.
Conservative positive allowance. With A2=12.301, =ROUNDUP(A2;2) returns 12.31. Use this only when the policy explicitly requires upward rounding of a positive amount; ROUND gives a different rule and may give 12.30.
Decimal places versus multiples. =ROUNDUP(A2;-1) rounds away from zero to a multiple of 10. For a positive step such as 0.25, use =ROUNDUP(A2/0.25;0)*0.25, with an explicit nonnegative-input policy if the business meaning is “at least this much.” Floating-point boundaries still merit a check on actual imported data.
Errors and troubleshooting
- A zero carton capacity fails in
A2/B2before ROUNDUP can produce a meaningful answer. Validate the divisor separately. - A negative output is expected for a negative input. To round a negative value toward zero, choose ROUNDDOWN instead.
- A displayed value such as 1.20 may store more digits. Increase the displayed precision before interpreting an apparent jump.
- Values already at the requested precision remain unchanged. Adding 1 to every result would overstate exact multiples.
- Supply numeric inputs and an integer decimal-place parameter from -20 through 20. An upstream cell error is not ignored by ROUNDUP.
- Fill down a helper formula for a list of values; do not assume a bare multi-cell reference automatically spills results in OpenOffice Calc.
Related functions
Documentation and verification
The OpenOffice ROUNDUP reference, 4.1.16 math help and interpreter implementation describe the contract. Retained source retrieval dates remain 2026-10-13. Exact decimal arithmetic independently checks the worked results; native OpenOffice and GUI execution were not performed for this revision. Introduction and final functioning version are not established by current registry presence.