POI读取带有公式的Excel单元格-xssf

if(CellType.FORMULA == row.getCell(j).getCellTypeEnum()) {
try {
cellValue = String.valueOf(row.getCell(j).getStringCellValue());
} catch (IllegalStateException e) {
cellValue = String.valueOf(row.getCell(j).getNumericCellValue());
}
}

posted on 2018-07-25 17:09  qiujiababy  阅读(534)  评论(0编辑  收藏  举报

导航