シート情報を sheet1 ,セル情報をcell23 にセット後、
cell23.CellType で見る。
CellType.String
CellType.Numeric
DateUtil.IsCellDaTeFormatted(cell23)
CellType.Boolean
CellType.Blank
CellType.Formula
CellType.Error
CellType.Unknown
値はここから、
cell23.StringCellValue
cell23.NumericCellValue
cell23.DateCellValue
cell23.BooleanCellValue
CellType.Formula の時、cell23.CashedFormulaResultType で表示形式が取れる。
cell23.ErrorCellValue
NPOI でExcel セルの書式,表示形式を取得する

コメント