FREQUENCY Function (OpenOffice Calc)
Count numeric bins with FREQUENCY in Apache OpenOffice Calc. Verify upper-bound inclusion, the overflow bin and the release’s unsorted-bin output ordering.
Verification status: Eight ordinary scalar or INDEX-selected reference formulas were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, through generated native ODF and GUI hard recalculation. Saved identities, inputs and results were checked. How formula examples are checked
Quick answer: =INDEX(FREQUENCY(F10:F17;G10:G12);1;1) returned 3 in the tested Apache OpenOffice 4.1.16 build. Use the numeric worksheet setup below for these range addresses.
Availability and version history
- Introduced: First release not established; documented by OpenOffice.org 3.3.
- Supported in: Apache OpenOffice 4.1.16; this is a verified release, not a final supported version.
- Scope: Desktop Calc, English function names and semicolon-separated formulas.
- Checked: October 14, 2026. Eight ordinary scalar or INDEX-selected reference formulas were recalculated from generated ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent arithmetic were checked.
What FREQUENCY returns
FREQUENCY returns bin counts as a column matrix with one more entry than the number of numeric bin thresholds. A threshold includes values equal to it. The final entry counts values larger than the largest threshold. It does not return percentages automatically. Release implementation.
Syntax and arguments
FREQUENCY(Data;Bins)
- Data: required numeric observations or numeric range.
- Bins: required upper thresholds. Use sorted increasing thresholds for an easily interpreted report.
INDEX(FREQUENCY(Data;Bins);Row;1)retrieves one count, including the final overflow count.
Numeric worksheet setup
Enter 1, 2, 2, 3, 5, 8, 13, 21 down F10:F17. Enter sorted thresholds 2, 5, 10 down G10:G12, and the same thresholds in the order 10, 2, 5 down H10:H12. Each list uses one numeric value per cell.
Eight reproducible examples
The native column contains saved 4.1.16 results; independent references use high-precision arithmetic and the stated source rules. Values are shown to twelve decimal places where needed. The range examples use the numeric setup above.
| Formula | Native 4.1.16 result | Independent reference |
|---|---|---|
=INDEX(FREQUENCY(F10:F17;G10:G12);1;1) |
3 |
3 |
=INDEX(FREQUENCY(F10:F17;G10:G12);2;1) |
2 |
2 |
=INDEX(FREQUENCY(F10:F17;G10:G12);3;1) |
1 |
1 |
=INDEX(FREQUENCY(F10:F17;G10:G12);4;1) |
2 |
2 |
=INDEX(FREQUENCY(F10:F17;H10:H12);1;1) |
1 |
1 |
=INDEX(FREQUENCY(F10:F17;H10:H12);2;1) |
3 |
3 |
=INDEX(FREQUENCY(F10:F17;H10:H12);3;1) |
2 |
2 |
=INDEX(FREQUENCY(F10:F17;H10:H12);4;1) |
2 |
2 |
Practical worksheet
The data 1,2,2,3,5,8,13,21 and thresholds 2,5,10 give counts 3,2,1,2. Three observations are ≤2; two are >2 and ≤5; one is >5 and ≤10; and two exceed 10. All eight observations are accounted for.
The two observations equal to 2 are in the first bin, and the value 5 is in the second. A frequency of zero for a bin would mean no included observations in that interval, not that the interval’s endpoint was omitted.
Advanced interpretation and checks
The source sorts thresholds for counting but writes each count back to its original threshold position. With the same thresholds entered as 10,2,5, the native output is 1,3,2,2: the first three entries follow the original threshold order, and the last remains the overflow count.
This means an unsorted output should not be read as a sequence of adjoining intervals in worksheet order. Sort the bins first when presenting a histogram. For the sorted example, dividing counts by 8 gives proportions 0.375,0.25,0.125,0.25, which sum to 1.
Boundaries and troubleshooting
The implementation checks exactly two arguments, collects and sorts the data, and allocates BinsCount+1 rows. Empty data, text, Boolean cells, duplicate thresholds and invalid arguments were not executed; the guide does not infer their behavior from the numeric example.
The native checks use INDEX to retrieve all four entries for each threshold order. They establish the returned component counts without claiming a GUI whole-array placement method. Keep the overflow row when reconciling totals, or large observations will be silently left out of the displayed count.
Related functions
Official evidence and checking scope
The generated ODF produced the informational load warning “Not all attributes could be read.” The sheet was hard-recalculated and saved separately. All eight ordinary formula identities, inputs and selected results were reconciled; a stale SUM cache changed from 999999 to 3 and an uncached SUM returned 7. This establishes the stated examples, not every workbook style, invalid input or GUI whole-array entry. INDEX wrappers select individual returned components. Other explanatory identities are independent calculations. The authoring-tool XLSX was not executed in OpenOffice, and its preview values are not the native results reported here.