この関数は Google スプレッドシートでも Excel と同じように機能します。構文も引数も同じです。
ERROR.TYPE(error_val)The ERROR.TYPE function returns a specific integer that identifies the type of error in a cell. If the referenced cell does not contain an error, the function returns the #N/A error value.
=ERROR.TYPE(#DIV/0!)結果: 2
Returns 2 because #DIV/0! is the second error type in the system.
=ERROR.TYPE(#N/A)結果: 7
Returns 7 because #N/A is the seventh error type.
The function returns the #N/A error value.