← All functions

IFERROR

Quirk found

Category: Logical · Last tested 2026-09-01

Real compatibility results for the IFERROR function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel (desktop)Yes No — documented only n/a
Excel for the web— Yes (recalc, 2026-09-01) Supported, behaves as documented
Google SheetsYes Yes (Drive import, 2026-08-29) Supported, behaves as documented
LibreOffice CalcYes Yes (25.8.7.3, 2026-08-28) Quirk found

LibreOffice version history

We executed the same test cases under each LibreOffice release to show exactly when IFERROR’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
24.2.0.3 Quirk found 2026-08-29
24.8.7.2 Quirk found 2026-08-29
25.2.0.3 Quirk found 2026-08-29
25.8.7.3 Quirk found 2026-08-28

Why isn't IFERROR working in LibreOffice?

IFERROR exists in LibreOffice 25.8.7.3, but it is not a drop-in match for Excel — our executed tests found real behavioral differences (detailed in the test results on this page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage against the failing cases above before assuming your data is wrong.

Excel for the web: one case set aside as a round-trip artifact. The readback proves this cell became an unresolved external-workbook reference. The uploaded workbook contains no externalLinks part; the downloaded one contains two, targeting Nope and NotACell — the literal text arguments of the INDIRECT calls. Excel for the web read 'Nope'!B2 as a reference into a workbook named Nope and could not resolve it, which is why the cell holds 0 rather than #REF!, why ISERROR is FALSE and why ISREF is TRUE. Whether the blank comes from the declined “trust externally linked workbooks” prompt or from an unresolvable external evaluating empty in this engine, this run cannot tell — and both are facts about the link, not about the function. The value is published as it came back and no verdict is drawn from it.

Discovered quirks

Executed test cases

Excel for the web (executed 2026-09-01 via OneDrive recalculation)

These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.

FormulaDescriptionResultExpectedVerdict
=IFERROR(10/2,"err") No error: original value passes through unchanged 5 5 Matched
=IFERROR(10/0,"err") #DIV/0! is caught and replaced err err Matched
=IFERROR(VLOOKUP("z",A1:B3,2,FALSE),"not found") Catches #N/A bubbling up from a failed VLOOKUP not found not found Matched
=IFERROR(INDEX(A1:A3,10),"bad index") Catches #REF! from an out-of-bounds INDEX bad index bad index Matched
=IFERROR(INDIRECT("'Nope'!B2"),"missing") INDIRECT pointed at a sheet that does not exist in the workbook raises #REF!; IFERROR is documented as trapping ANY error value, so the fallback text should be returned 0 missing
Provenance

Microsoft documents IFERROR as returning value_if_error for any of #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME? and #NULL! -- #REF! is explicitly in that list, so the source of the #REF! (a missing sheet name inside INDIRECT) should not matter. Excel function reference: https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188

Inconclusive
=IFERROR(INDIRECT("NotACell!!"),"bad") Contrast case: the same IFERROR wrapper around an INDIRECT whose ref_text is simply not a valid reference (see INDIRECT_malformed_ref_error), which also raises #REF! bad bad
Provenance

Same documented rule as IFERROR_indirect_missing_sheet: IFERROR traps #REF! whatever produced it. Excel function reference: https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188

Matched

Google Sheets (executed 2026-08-29 via Drive import)

Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.

FormulaDescriptionResultExpectedVerdict
=IFERROR(10/2,"err") No error: original value passes through unchanged 5 5 Matched
=IFERROR(10/0,"err") #DIV/0! is caught and replaced err err Matched
=IFERROR(VLOOKUP("z",A1:B3,2,FALSE),"not found") Catches #N/A bubbling up from a failed VLOOKUP not found not found Matched
=IFERROR(INDEX(A1:A3,10),"bad index") Catches #REF! from an out-of-bounds INDEX bad index bad index Matched
=IFERROR(INDIRECT("'Nope'!B2"),"missing") INDIRECT pointed at a sheet that does not exist in the workbook raises #REF!; IFERROR is documented as trapping ANY error value, so the fallback text should be returned missing missing
Provenance

Microsoft documents IFERROR as returning value_if_error for any of #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME? and #NULL! -- #REF! is explicitly in that list, so the source of the #REF! (a missing sheet name inside INDIRECT) should not matter. Excel function reference: https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188

Matched
=IFERROR(INDIRECT("NotACell!!"),"bad") Contrast case: the same IFERROR wrapper around an INDIRECT whose ref_text is simply not a valid reference (see INDIRECT_malformed_ref_error), which also raises #REF! bad bad
Provenance

Same documented rule as IFERROR_indirect_missing_sheet: IFERROR traps #REF! whatever produced it. Excel function reference: https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-28)

FormulaDescriptionResultExpectedVerdict
=IFERROR(10/2,"err") No error: original value passes through unchanged 5 5 Matched
=IFERROR(10/0,"err") #DIV/0! is caught and replaced err err Matched
=IFERROR(VLOOKUP("z",A1:B3,2,FALSE),"not found") Catches #N/A bubbling up from a failed VLOOKUP not found not found Matched
=IFERROR(INDEX(A1:A3,10),"bad index") Catches #REF! from an out-of-bounds INDEX bad index bad index Matched
=IFERROR(INDIRECT("'Nope'!B2"),"missing") INDIRECT pointed at a sheet that does not exist in the workbook raises #REF!; IFERROR is documented as trapping ANY error value, so the fallback text should be returned #REF! missing
Provenance

Microsoft documents IFERROR as returning value_if_error for any of #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME? and #NULL! -- #REF! is explicitly in that list, so the source of the #REF! (a missing sheet name inside INDIRECT) should not matter. Excel function reference: https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188

Mismatch
=IFERROR(INDIRECT("NotACell!!"),"bad") Contrast case: the same IFERROR wrapper around an INDIRECT whose ref_text is simply not a valid reference (see INDIRECT_malformed_ref_error), which also raises #REF! bad bad
Provenance

Same documented rule as IFERROR_indirect_missing_sheet: IFERROR traps #REF! whatever produced it. Excel function reference: https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188

Matched

Docs & syntax

Related how-to recipes

Where IFERROR behaves differently

Compared against other functions