Statistical functions

MODE.MULT

Matches all 22 recorded answers

Recorded: 22 workbook cells. How we measure this · See the Rust code

Local names in 40 languages
LanguageName in Excel
ArabicMODE.MULT
BulgarianMODE.MULT
CzechMODE.MULT
DanishHYPPIGST.FLERE
GermanMODE.MULT
GreekMODE.MULT
English (Australia)MODE.MULT
English (United Kingdom)MODE.MULT
English (United States)MODE.MULT
SpanishMODA.VARIOS
EstonianMODE.MULT
FinnishMOODI.USEA
FrenchMODE.MULTIPLE
HebrewMODE.MULT
CroatianMODE.MULT
HungarianMÓDUSZ.TÖBB
IndonesianMODE.MULT
ItalianMODE.MULT
JapaneseMODE.MULT
KoreanMODE.MULT
LithuanianMODE.MULT
LatvianMODE.MULT
NorwegianMODE.MULT
DutchMODE.MULT
PolishWYST.NAJCZĘŚCIEJ.TABL
Portuguese (Brazil)MODE.MULT
Portuguese (Portugal)MODO.MÚLT
RomanianMODE.MULT
RussianМОДА.НСК
SlovakMODE.MULT
SlovenianMODE.MULT
Serbian (Latin)MODE.MULT
SwedishTYPVÄRDE.FLERA
ThaiMODE.MULT
TurkishENÇOK_OLAN.ÇOK
UkrainianMODE.MULT
VietnameseMODE.MULT
Chinese (Simplified)MODE.MULT
Chinese (Hong Kong)MODE.MULT
Chinese (Traditional)MODE.MULT

Names from Microsoft's support site.

What it does

MODE.MULT(number1, [number2], ...)

MODE.MULT(number1,[number2],...) returns all values tied for the highest repetition count, as a vertical array. It finds a repeated value, not a middle value or an average.

Try it

Input cells (optional)

Example: {"B2": 3, "B3": 4}. A1 holds the formula. Other cells need values before a formula can read them.

Enter a formula, then calculate.

Runs locally in your browser with OneCalc. Its answer may differ from Excel. Use English function names and commas between arguments.

=MODE.MULT({2,5,2,5,9}) returns a vertical array containing two and five: each occurs twice, while nine occurs once.

Quirks

The recorded collection rule takes numbers only, including when text or logicals are typed directly. It skips numeric-looking text and TRUE rather than converting them. Thus MODE("2",2) and MODE(TRUE,1) have only one admitted number and give #N/A; MODE("x",2,2) still returns two.

A data set without any repeated number gives #N/A. Numeric zero participates. Error values propagate, with the first recorded error winning; arbitrary text is skipped rather than turned into a conversion error. Modern Excel needs space for the vertical result to spill.

MODE ignores direct text and logicals instead of converting them or giving an error

MODE, MODE.SNGL and MODE.MULT take only numbers from their arguments, even when text or a logical is typed directly into the call. A direct "2" or TRUE is not converted, so MODE("2",2) and MODE(TRUE,1) are #N/A: one number, no repeat. Text that is not a number gives no error either: MODE("x",2,2) is 2, and MODE("x") is #N/A. Error values do come through: MODE(2,2,A3) with #DIV/0! in A3 is #DIV/0!, and of two errors the first is returned.

FormulaExcelMathematical value
=MODE("2",2)
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
Inputs and reference value

Typed formula.

#N/A—
=MODE(TRUE,1)
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
Inputs and reference value

Typed formula.

#N/A—
=MODE("x",2,2)
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
Inputs and reference value

Typed formula.

2
0x4000000000000000
—
=MODE("x")
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
Inputs and reference value

Typed formula.

#N/A—
=MODE.SNGL("x",2,2)
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
Inputs and reference value

Typed formula.

2
0x4000000000000000
—
=MODE.MULT("x",2,2)
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
Inputs and reference value

Typed formula.

2
0x4000000000000000
—
MODE(2, 2, A3)
Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file
Inputs and reference value

Number supplied through a cell.

number1: 2
0x4000000000000000

number2: 2
0x4000000000000000

number3: #DIV/0!

#DIV/0!—

Inputs, build details and evidence

How to implement

Collect numeric values only from direct arguments and held collections; skip text and logical values, and propagate errors. Normalize positive and negative zero as one key, and count occurrences. Track each key’s first occurrence. Find the largest count; if it is below two, return #N/A. Return all keys attaining that count in a single-column array. The current code orders tied modes by first appearance and uses that order for the single-result choice. That is the implementation’s tie policy, not a whole-domain identification from the public function page. Keep the tie case in compatibility tests.

Rust code

Show the CalcFunc source of this function

Quoted from the public repository DnaCalc/DnaCalc, crates calc-func and calc-fml, at commit 9e1884369a67. Comments are the source's own. A kernel shared with other functions appears once, on its module page.

MODE.MULT · 8 lines · calc-func/src/catalogue/statistics.rs on GitHub
8 mode_mult "MODE.MULT" (1, 255) [R "number1", R "number2"] |s, a, sv| {
    let found = modes(&all(s, a, sv, Held::ModeNumbers)?);
    if found.is_empty() {
        return fail(WorksheetErrorCode::NA);
    }
    let rows: Vec<Vec<f64>> = found.into_iter().map(|m| vec![m]).collect();
    out_matrix(s, &rows)
}

Kernels shared with other functions

  • all catalogue/statistics
  • modes catalogue/statistics

Argument and result plumbing

No implementation has been published with a Handbook test suite for this function.

Version differences

No same-input comparison between named Excel builds is recorded for this function here. The documented behaviour below is not a measurement of every Excel release.

Excel 16.0.20527.20088

Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA

=MODE.MULT("x",2,2) returned 2 (0x4000000000000000). Inputs were supplied through formula literals. These are controls from this environment, not a same-input comparison with another build.

Observed formulas and results
  • =MODE.MULT("x",2,2) → 2
    0x4000000000000000 (formula-literal)

Alternatives

MODE.SNGL returns one mode. MEDIAN gives the middle value and AVERAGE the arithmetic mean; neither needs a repeated observation.

Named variants

No named variants are recorded yet.

Suggest a correction or contribute an implementation · For agents