FN-MODE-001: MODE ignores direct text and logicals instead of converting them or giving an error
Documentation differs from behaviour · measured · recorded 2026-11-04
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.
Documentation: Arguments that are error values or text that can't be translated into numbers cause errors. Source documentation
| Call and input route | Inputs | Excel | Correct value | Recorded in |
|---|---|---|---|---|
=MODE("2",2)formula-literal | As typed | #N/A | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=MODE(TRUE,1)formula-literal | As typed | #N/A | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=MODE("x",2,2)formula-literal | As typed | 20x4000000000000000 | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=MODE("x")formula-literal | As typed | #N/A | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=MODE.SNGL("x",2,2)formula-literal | As typed | 20x4000000000000000 | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=MODE.MULT("x",2,2)formula-literal | As typed | 20x4000000000000000 | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
MODE(2, 2, A3)cell-value2 | number1: 20x4000000000000000number2: 20x4000000000000000number3: #DIV/0! | #DIV/0! | — | Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file |
Basis: 30 recorded formula readings across the three functions, and 21 readings each of MODE and MODE.SNGL covering direct text, logicals and errors.
Open: How a reference to one empty cell counts is not settled by these readings.
Evidence and capture sources
- DnaCalc · apps/dna-onecalc/tests/acceptance.rs c5defbd38b292450d7baf6f4bb1e81b9f2fc91bc · delivered_fn4_mode_ignores_text_and_logicals recorded answers pinned
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheets ql104 to ql133 30 recorded readings
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/MODE.reading.json 2d0eddcac86413014643af81d646581d54ba57bc · 21 recorded readings
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/MODE.SNGL.reading.json 2d0eddcac86413014643af81d646581d54ba57bc · 21 recorded readings
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql111, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql112, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql110, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql105, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql120, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql130, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/MODE.reading.json 2d0eddcac86413014643af81d646581d54ba57bc · fn7-MODE-error-after-duplicates