尝试评估工作簿中的所有单元格时出现以下异常。我正在为 Apache poi 使用 3.13 版。公式是 CELL("文件名")
org.apache.poi.ss.formula.eval.NotImplementedFunctionException: CELL
有什么办法让它工作吗?或者有没有其他公式可以给我同样的结果?
尝试评估工作簿中的所有单元格时出现以下异常。我正在为 Apache poi 使用 3.13 版。公式是 CELL("文件名")
org.apache.poi.ss.formula.eval.NotImplementedFunctionException: CELL
有什么办法让它工作吗?或者有没有其他公式可以给我同样的结果?
就我而言,公式评估器不起作用。我们决定使用 cell.getNumericCellValue() 从函数单元格中提取数值,得到函数求值的结果:
XSSFFormulaEvaluator formulaEvaluator = new XSSFFormulaEvaluator(workbook);
formulaEvaluator.evaluateInCell(cell); // NotImplementedException (caused by NotImplementedFunctionException)
cell.getNumericCellValue(); // OK
Apache POI 版本 3.17