更新 ExcelUtil.java

读取单元格公式的值
pull/109/head
厚积薄发 2019-07-25 09:17:52 +08:00 committed by Gitee
parent 9cf4b8935f
commit 75d1872b02
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ public class ExcelUtil<T>
Cell cell = row.getCell(column);
if (cell != null)
{
if (cell.getCellTypeEnum() == CellType.NUMERIC)
if (cell.getCellTypeEnum() == CellType.NUMERIC || cell.getCellTypeEnum() == CellType.FORMULA)
{
val = cell.getNumericCellValue();
if (HSSFDateUtil.isCellDateFormatted(cell))