java Poi 操作执行excel 文件中函数问题
poi 读取excel 文件,当excel 有函数时,poi直接读取返回的是excel 函数,并不能返回函数计算结果:
解决步骤:
sheet.setForceFormulaRecalculation(true);
判断该列格式是否为函数,为函数直接getNumericCellValue()可获取计算结果
Cell cell = row.getCell(gCel...
原创
2019-10-15 17:19:15 ·
1815 阅读 ·
0 评论