Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
ERROR.TYPE maps each Excel error to a numeric code: 1=#NULL!, 2=#DIV/0!, 3=#VALUE!, 4=#REF!, 5=#NAME?, 6=#NUM!, 7=#N/A, and 8=#GETTING_DATA. It returns #N/A when the referenced cell contains no error. Use it to write targeted error-handling formulas that respond differently depending on the specific error type.
=IF(ISERROR(A2),ERROR.TYPE(A2),"OK")=IF(ISERROR(A2),ERROR.TYPE(A2),"OK")Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need a version for your data?
Try: “Identify whether my formula errors are divide-by-zero or reference errors so I can fix each type”
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: