e.g. say an excel cell has a formula like: =5/0 This displays in excel as: #DIV/0!
In c#, the ExcelCell.ValueType
is returned as CellValueType.String
, and Excell.Value
is returned as "#DIV/0!".
Is there a standard way to detect if the cell has an error ?
EDIT: clarification: is there a general way to detect if a cell has an error ? For example, in another Excel library (spreadsheet Gear), there is a SpreadsheetGear.ValueType of Error, which allows you to tell for any cell, if there is an error in that cell.