FN-IRR-001: IRR with a direct non-number gives #NUM!, and the guess is still checked
Quirk · measured · recorded 2026-11-04
Text or a logical typed directly as the values argument of IRR is not an error of type: "", "2", "x", "0", "-2", TRUE and FALSE all give #NUM!, never #VALUE!. The guess is read anyway, and its error wins: with any of those values, a guess of "x" gives #VALUE! and a guess of NA() gives #N/A, while 0.1 or an empty guess leaves #NUM!. A direct error in values wins over the guess: IRR(NA(),"x") is #N/A.
| Call and input route | Inputs | Excel | Correct value | Recorded in |
|---|---|---|---|---|
=IRR("2")formula-literal | As typed | #NUM! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=IRR(TRUE)formula-literal | As typed | #NUM! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=IRR("2","x")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=IRR("2",NA())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 |
=IRR("2",)formula-literal | As typed | #NUM! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=IRR(NA())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 |
=IRR(NA(),"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 |
Basis: 40 recorded readings: seven direct non-numbers and NA() as values, each with five guesses (none, 0.1, "x", NA(), empty).
Open: A reference to one cell holding the same values answers differently. Those readings are not in a published capture, so this note covers direct values only.
Evidence and capture sources
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheets ql001 to ql040 40 recorded readings
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql006, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql026, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql008, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql009, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql010, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql036, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql038, row 20, column 10