FACT Function (OpenOffice Calc)
Learn the FACT function in Apache OpenOffice Calc: Calculates the factorial of a number.
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.
FACT returns a factorial: for a nonnegative integer n, it multiplies all the integers from 1 through n. Factorials count ordered arrangements of distinct objects and appear in combinations and probability formulas. FACT is not a product of an arbitrary range.
Syntax and arguments
=FACT(number)
number is one required numeric argument. Use a nonnegative integer for a counting problem. The pinned 4.1.16 interpreter rejects a negative input before flooring, then applies approximate downward rounding to a nonnegative input. Its factorial helper supports effective integers through 170; larger effective values trigger an error. Formulas here use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=FACT(5) |
120 |
=FACT(0) |
1 |
=FACT(1) |
1 |
=FACT(3) |
6 |
=FACT(6) |
720 |
=FACT(5.9) |
120 |
The first formula preserves the original worked example. Its older comparable LibreOffice 25.2 check was not execution in OpenOffice. These new results are independently calculated expectations; no fresh native or GUI test is claimed.
Practical worksheet: count ordered presentations
Enter 3, 4 and 5 in A2:A4 for three possible numbers of distinct presentations. In B2 enter =FACT(A2) and fill down. Expected counts of presentation orders are 6, 24 and 120. Each presentation appears exactly once, and different positions make different outcomes.
For three presentations A, B and C, the six orders are ABC, ACB, BAC, BCA, CAB and CBA. This verifies FACT(3) without relying on a second spreadsheet formula. If two presentations are indistinguishable, or some orders are forbidden, the simple factorial count is no longer the required model.
Advanced applications
Account for repeated identical labels. There are four arrangements of the letters in AAAB because =FACT(4)/(FACT(3)*FACT(1)) returns 4. Division removes the repeated permutations of the three identical As. This is appropriate for identical categories, not merely different objects that share a display label.
Derive combinations. =FACT(5)/(FACT(2)*FACT(3)) returns 10 unordered two-person selections from five people. For practical work, use COMBIN rather than constructing large factorial intermediates.
Compare double factorial. =FACT(5) is 54321=120. FACTDOUBLE(5) is 531=15. The word double does not mean two factorial applications and does not mean squaring FACT.
Errors, edge cases and troubleshooting
The value 0! is 1, the empty-product convention; changing it to zero breaks standard counting formulas. =FACT(-0.1) is invalid because the negative-input check occurs before truncation. It must not be treated as FACT(0). Nonnegative decimals such as 5.9 are reduced to 5 for the calculation, which can hide a data-entry mistake in a whole-number count.
The effective upper bound in the inspected helper is 170. FACT(171) is outside that implementation range. Even below that bound, a floating-point factorial need not retain every integer digit exactly. Scientific notation is a display choice and does not itself indicate failure; an enormous rounded result should not be treated as an exact enumeration.
Avoid factorial-ratio formulas where numerator or denominator overflows even though the final mathematical ratio would be moderate. Use the function designed for the task, such as COMBIN, or a suitably validated alternative algorithm. FACT is not the gamma function for noninteger inputs: it floors them rather than evaluating a continuous extension.
Related functions
Documentation and verification
See the Apache OpenOffice FACT reference, versioned mathematical-function help, and 4.1.16 implementation. The saved official source snapshots were re-read for this guide; their original retrieval records remain in the evidence package. Source inspection and independent arithmetic are not application execution. The lifecycle section identifies a supported release; the original introduction and final functioning release remain unestablished.