Contact

MODE.MULT Function (LibreOffice Calc)

Statistical Intermediate LibreOffice Calc

Return all numbers tied for the highest frequency as a vertical array in LibreOffice Calc.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: LibreOffice 4.3.
  • Availability: Supported in LibreOffice 26.8.1.1, 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.

Historical validation scope: The recorded native observations are from LibreOffice Calc 25.2.3.2 on Linux, 12 October 2026 at 22:09 UTC. This review verified the saved manuscript and evidence hashes, all 135 ODS/result pairs, and independently checked 14 modal sets plus four worked counts or sums. Calc was not rerun. Array padding and ordering are explicitly version-specific observations.

Quick answer: what does MODE.MULT do?

MODE.MULT identifies all distinct numbers tied for the highest repetition count in a numeric dataset. It returns a vertical array, unlike MODE.SNGL, which returns one mode. A number is a mode only if it appears at least twice. [LO-1]

For example, if your numbers are 2, 2, 3, 3, 4, 5, the modes are 2 and 3, because both occur twice and no other value occurs more often. If a single value is most frequent, the mathematical result contains that one mode. If all numbers appear only once, there is no repeated mode and Calc 25.2.3.2 returns #VALUE! (native observation, not an Excel claim). [N-1]

To see every tied mode, select a vertical output range with enough rows, type =MODE.MULT(A2:A13), and confirm as an array formula with Ctrl+Shift+Enter on Windows/Linux (the Help describes the corresponding Command/Ctrl shortcut for macOS). Ordinary Enter only displays the first mode. Do not type the surrounding braces yourself. [LO-1, LO-2]

LibreOffice syntax and arguments

MODE.MULT(Number 1 [; Number 2 [; … [; Number 255]]])
Argument Required Accepted meaning Default
Number 1 Yes Numeric value, cell reference, or range containing the data None; supply a numeric data argument
Number 2 … Number 255 No Additional numeric values or ranges to include in the same distribution Omitted

This is the official current LibreOffice Help syntax. There can be up to 255 arguments; a single range such as A2:A13 is one argument and may contain many cells. [LO-1]

Number 1 means the first numeric data argument, not a request to return the first number. Semicolons are the default English Calc function-argument separators in the documented examples; comma separators and localized function names can be configured at Tools → Options → LibreOffice Calc → Formula. Do not simply paste Excel’s comma-delimited syntax into an installation using semicolons. Decimal characters and formula separators are separate locale considerations. [LO-3]

Support and format: LibreOffice Help documents availability since LibreOffice 4.3. MODE.MULT is not a standard ODF 1.3 OpenFormula function; LibreOffice documents the namespace COM.MICROSOFT.MODE.MULT. This matters when exchanging ODF files with other spreadsheet applications; keeping a formula in an ODS file does not establish identical recalculation behavior elsewhere. [LO-1]

Example 1 — reproduce three tied modes

Enter this data into A2:A13 in Calc. The same data appears in the saved native-test workbook:

Cell Number Cell Number
A2 1 A8 1
A3 2 A9 2
A4 3 A10 3
A5 4 A11 5
A6 3 A12 6
A7 2 A13 1

Check the counts before applying the function: 1 occurs three times (A2, A8, A13), 2 occurs three times (A3, A7, A9), and 3 occurs three times (A4, A6, A10). The other numbers each occur once. Therefore the independently calculated set of modes is {1, 2, 3}. [I-1]

  1. Select P2:P4 (three vertically adjacent, empty cells).
  2. Enter =MODE.MULT(A2:A13) without braces.
  3. Confirm with Ctrl+Shift+Enter; Calc identifies it as one array formula.
Output cell Expected mode Observed native Calc 25.2.3.2
P2 1 1
P3 2 2
P4 3 3

The native test generated the same first three values in an eight-row array output; its next five rows showed #N/A. The three-row result is the reproducible example to use. Independently computed frequencies agree with the observed set. The current LibreOffice function documentation does not explicitly promise an ordering for tied modes, so do not rely on the first/second/third row being sorted in other releases or changed input orders. [N-1, I-1]

Sanity-check formulas (ordinary single-cell formulas):

=COUNTIF(A2:A13;1)      → 3
=COUNTIF(A2:A13;2)      → 3
=COUNTIF(A2:A13;3)      → 3
=COUNT(A2:A13)          → 12

All four counts here follow directly from the twelve displayed source values and are independent calculations, not additional native executions. The saved native COUNTIF test used the separate F2:F9 dataset, where 3 also occurred three times. [N-1, I-1]

Example 2 — why a single ordinary formula misses modes

In B2:B9, enter 9, 9, 1, 1, 9, 1, 4, 4 (one number per row). The independent counts are 9 → 3, 1 → 3, 4 → 2. [I-1]

=MODE.MULT(B2:B9)

The saved ordinary-cell test used the equivalent tie =MODE.MULT(9;9;1;1) and displayed 9. The range B2:B9 was tested in an eight-row array: its first two outputs were 9, 1, followed by #N/A. Selecting two output cells is the corresponding compact example, rather than a separately saved execution. Both modes are equally frequent. 9 appearing before 1 is a native version-specific observation, not a guaranteed ranking rule. [N-1]

The difference matters if a report includes ties: a non-array MODE.MULT may silently look like a MODE.SNGL result and conceal additional modes. LibreOffice Help explicitly warns that only the first mode is returned if you fail to enter an array formula. [LO-1]

Example 3 — decimal modes and numeric text

Enter 0.5, 0.5, 0.3, 0.3, 1.1, 1.1 in I2:I7. Confirm =MODE.MULT(I2:I7) over three vertical output cells. The first three rows of the saved eight-row Calc 25.2.3.2 array displayed 0.5; 0.3; 1.1. The independently calculated modal set is {0.3, 0.5, 1.1}, since each appears twice. This is an example of equal-frequency ties, not a sorting operation. [N-1, I-1]

In L2:L8, enter actual numbers 3, 4, 4, 3, 3, with cells containing text "3" and "4" interspersed (use text formatting or a leading apostrophe to prevent auto-conversion). In the native test, =MODE.MULT(L2:L8) returned 3, because there were three numeric 3s and two numeric 4s; the numeric-looking text was excluded. [N-1]

This distinction can change reports built from imported CSV data. Before calculating, check for numbers stored as text. Explicitly convert data only when you have verified its decimal and grouping conventions; indiscriminate conversion can alter identifiers. The separate NUMBERVALUE and VALUE functions can help with intentional text-to-number conversion, but are not part of MODE.MULT itself.

Example 4 — blank cells and labels

In E2:E9, enter 1, blank, text n/a, 1, 7, 7, text "5", 0. Confirm =MODE.MULT(E2:E9) across two vertical output cells. The first two rows of the saved eight-row Calc 25.2.3.2 array returned 1, then 7. The blank and text entries did not act as numeric zero; the actual 0 occurred only once. This is a native Calc observation matching an independent count over the numeric cells. [N-1, I-1]

If all inputs are text or every numeric value is unique, there is no repeated numeric mode. In native tests, MODE.MULT returned #VALUE! for an all-text range and for a range where every number appeared once. [N-1]

Advanced patterns

A. Verify or chart the repeat count of a returned mode

If P2 contains a mode from the first example, use:

=COUNTIF($A$2:$A$13;P2)

Expected result: 3, because each modal value in that sample occurs three times. This count is independently derived from the example’s source data (the specific direct native test executed =COUNTIF(F2:F9;3) and also returned 3 for that separate sample). You can fill the formula down next to each modal output to label a frequency chart. [I-1]

B. Combine samples into one analysis

The official signature accepts multiple numeric ranges:

=MODE.MULT(A2:A13;B2:B9)

This illustrates documented argument structure, not a separately native-tested result. Both ranges contribute to the same pool. Do not read this as two independent MODE.MULT calculations. To make a formula easier to audit, consolidating values into one column and checking COUNTIF counts may be preferable. [LO-1]

C. Sum the multiple modal values

For the first dataset, native Calc 25.2.3.2 evaluated:

=SUM(MODE.MULT(A2:A13))

Observed result: 6, agreeing independently with 1+2+3. This is a derived calculation over the modal values; it does not tell you how many observations are in the dataset. To count entries, use COUNT(A2:A13); to count the repetitions of a mode, use COUNTIF. [N-1, I-1]

D. Handle cases with no repeated value

Native execution of

=IFERROR(MODE.MULT(1;2;3);"No repeated value")

returned No repeated value, replacing the underlying #VALUE! error. This is useful for a single-cell summary. When used over a multi-cell array output, check how error handling interacts with the selected range before relying on it; this exact array-wrapped combination was not separately tested. [N-1]

Do not confuse MODE.MULT with MODE or MODE.SNGL. MODE.MULT can return several tied values via an array. MODE.SNGL returns a single mode. The legacy MODE function also returns one mode and is marked separately as an ODF standard function in LibreOffice Help. In an observed Calc 25.2.3.2 tie, MODE.SNGL(9;9;1;1) returned 9, while MODE(9;9;1;1) returned 1. Help 26.8 says MODE.SNGL selects the smallest tied number; that conflicts with this older installed version’s native behavior. Do not generalize the tie policy across Calc versions without testing. [LO-1, N-1]

Errors, limits, and troubleshooting

Problem Meaning or likely cause Practical remedy
Only one mode appears Formula was entered normally rather than as a multi-cell array Preselect vertically adjacent cells and confirm as an array formula; do not type {}. [LO-1, LO-2]
#VALUE! when all numbers are different There is no number occurring at least twice; native Calc 25.2.3.2 showed error code 519 Verify frequencies or handle absence with IFERROR. [N-1]
#VALUE! with labels or text-only range No repeated numeric values are available Inspect cell types and intentionally convert import data when appropriate. [N-1]
#N/A in unused rows below several modes In Calc 25.2.3.2, over-allocating an array range with several distinct modes produced #N/A after the last mode Select the appropriate number of result cells, or filter/error-handle extra output cells after checking how they behave in your version. [N-1]
Repeated identical output down a long array Observed quirk in Calc 25.2.3.2 when the dataset had exactly one modal value and an eight-row array was selected Use one output cell for a single mode; do not assume the excess rows mean distinct modes. This is not an official cross-version guarantee. [N-1]
Err:511 No arguments were supplied: MODE.MULT() returned error code 511 in native Calc Supply at least the first data argument. [N-1]
Err:504 for a literal text argument The native test MODE.MULT("x";3;3) returned error code 504 Pass valid numeric arguments; text inside a referenced range is handled differently from a text literal passed directly. [N-1]
Existing #N/A errors feed through An input NA() caused #N/A in the native test Clean or explicitly handle errors in source cells before statistical calculations. [N-1]
Different separators or unrecognized function name Locale or formula-language settings differ Review Tools → Options → LibreOffice Calc → Formula for English names and separators. [LO-3]
Cannot edit one array cell Calc protects the linked result range Select the whole array before editing or deleting. [LO-2]

Important limits: LibreOffice Help specifies a maximum of 255 separate arguments, not a 255-row maximum for one referenced range. It does not provide a blanket maximum number of returned distinct modes in the cited page; practical limits depend on array selection, data, and application. Do not invent a return-length limit. [LO-1]

What happens if the output selection is too large?

The native reproduction script deliberately used an eight-row result range, even for tiny datasets. For 1, 2, 3 tied as three distinct modes, the first three rows were modes and the remaining five showed #N/A. With only one numeric mode (for example, 3 most frequent), the eight-row selection returned 3 in every row in that tested Calc build. For a data range without any mode, all eight rows showed #VALUE!. These three cases illustrate why it is unsafe to promise one simple overflow rule across every case or version. They are observed outputs in Calc 25.2.3.2, not a general rule supplied by the current Help text. [N-1]

Compatibility: Excel and Google Sheets

Program Function documented by its vendor? What was checked What was not checked
LibreOffice Calc Yes, official 26.8 Help Syntax, since-4.3 support, array requirement, ODF namespace; native formulas executed in 25.2.3.2 Native execution in Calc 26.8 and other operating systems
Microsoft Excel Yes, Microsoft’s MODE.MULT Help Same named statistical purpose and multiple-mode/array concept; Excel help demonstrates comma-separated arguments Excel formulas were not executed, and output ordering or errors were not asserted equivalent to Calc [MS-1]
Google Sheets Yes, official Google Editors Help lists MODE.MULT Google documents the function as returning commonly occurring values; Google Help shows comma-separated inputs Google Sheets was not executed; dynamic output and error behavior are not assumed identical [GS-1]

Cross-program portability warning: matching function names do not establish identical handling of ties, error cells, blank cells, excess array rows, or locale syntax. Save and retest a copy when importing/exporting .xlsx or editing in Sheets. Check the displayed results, rather than trusting a matching formula name. [LO-1, LO-3, MS-1, GS-1]

Official references, verification, and reproducibility

Primary LibreOffice documentation checked again 13 October 2026 (the pages displayed LibreOffice 26.8 Help):

  1. [LO-1] Statistical Functions Part Four — MODE.MULT and MODE.SNGL. Supports the official MODE.MULT description, 255-argument syntax, since-4.3 availability, array requirement, and COM.MICROSOFT.MODE.MULT namespace/ODF status. Documentation check, not native 26.8 execution.
  2. [LO-2] Array Functions — creating and editing array formulas. Supports selection of the output range, array shortcut, Function Wizard checkbox, braces, and linked-array editing. Documentation check.
  3. [LO-3] Formula Options. Supports configurable function names and argument/array separators. Documentation check.

External vendor documentation checked again 13 October 2026 (documentation comparison only):

  1. [MS-1] Microsoft Excel — MODE.MULT. Used only for the documented Excel name/purpose/array concept. No Excel execution.
  2. [GS-1] Google Docs Editors Help — MODE.MULT. Used only to verify Sheets documents the function name and multi-modal purpose. No Google Sheets execution.

Reproducible native and independent evidence:

  • [N-1] Saved run_native.py and MODE_MULT_native_tests.ods, executed in actual LibreOffice Calc 25.2.3.2 / Linux via UNO. native-results.json preserves each formula, source data, displayed results, and native error code; 15 array datasets and 15 additional ordinary formulas were executed. The array range was created using Calc’s native UNO array-formula method, equivalent in purpose to the documented UI array entry.
  • [I-1] Saved validate_native.py and independent-validation.json recalculate numeric frequencies in Python, verify modal sets and error/overflow patterns against the recorded native results, and clearly separate independent calculation from native formula execution. 23/23 prespecified independent assertions passed; seven remaining native observations were documented but not scored as frequency assertions. Independently calculated results are not presented as additional Calc runs.