int evaluatedCellType = evaluator.evaluateFormulaCell(cell);Be aware that your cell will hold both the formula, and the result. If you want the cell replaced with the result of the formula, use {@link #evaluateInCell(org.apache.poi.ss.usermodel.Cell)} @param cell The cell to evaluate @return -1 for non-formula cells, or the type of the formula result
int evaluatedCellType = evaluator.evaluateFormulaCell(cell);Be aware that your cell will hold both the formula, and the result. If you want the cell replaced with the result of the formula, use {@link #evaluateInCell(Cell)} @param cell The cell to evaluate @return The type of the formula result (the cell's type remains as Cell.CELL_TYPE_FORMULA however)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|