Uji nilai kesalahan tertentu
=ERROR.TYPE(error_val)
| Parameter | Deskripsi |
|---|---|
error_val |
The error for which to get an error code. |
If cell A1 contains displays the #DIV/0 error, then ERROR.TYPE will return 2:
=ERROR.TYPE(A1) // returns 2
If cell A1 displays the #N/A error, ERROR.TYPE returns 7
=ERROR.TYPE(A1) // returns 7
If cell A1 displays no error, ERROR.TYPE returns #N/A
=ERROR.TYPE(A1) // returns #N/A
One way to use ERROR.TYPE is to test for specific errors and display a custom message when certain error conditions exist. For example, to test for a
=IF(ISERROR(A1),IF(ERROR.TYPE(A1)=2,"Missing value",A1),"")