Cell Error Values
- 2 minutes to read
If a cell contains an invalid formula, the cell displays an error. Use the Cell.Value property to obtain the SpreadsheetError type. Also, the API sets CellValue.Type to CellValueType.Error for a cell with an error.
Use the CellValue.ErrorValue property to obtain the type of an error contained in a cell. This property gets a SpreadsheetError value.
Type | Name | Description | Sample |
|---|---|---|---|
#DIV/0! | Division by zero! |
| |
#NAME? | Function does not exist. |
| |
#N/A | The value is not available to a function or formula. |
| |
#NULL! | The specified intersection includes two ranges that do not intersect. |
| |
#NUM! | Invalid numeric values in a formula or function. |
| |
#REF! | Cell reference is not valid. | A formula refers to a cell, and code deletes the column that contains this cell:
| |
#VALUE! | The value used in the formula is of the wrong data type. |
A formula refers to a blank cell that is not actually empty (it contains an empty string):
|