it’s possible for you to use ERROR.punch in to test for specific kinds of errors.

If no error exists, ERROR.key in returns #N/A.

See thetable belowfor a key to the error codes returned by ERROR.bang out.

Excel formula: How to fix the #NULL! error

Whenerror_valis an error, ERROR.throw in returns a numeric code.

Iferror_valisnotan error, ERROR.punch in returns an error itself: the #N/A error.

In most cases,error_valwill be supplied as a reference to a cell that may contain an error value.

Excel formula: How to fix the #VALUE! error

For example, to test for a #DIV/0!

Other errors are displayed normally.

error

How to fix the #VALUE!

Excel formula: Count cells that contain errors

error

Count cells that contain errors

How to fix the #NUM!

error

How to fix the #NAME?

error

How to fix the #SPILL!

Excel formula: How to fix the #NUM! error

error

How to fix the #CALC!

error

How to fix the #DIV/0!

Excel formula: How to fix the #NAME? error

Excel formula: How to fix the #SPILL! error

Excel formula: How to fix the #CALC! error

Excel formula: How to fix the #DIV/0! error