Get Cell Value from Excel Sheet with Apache Poi
问题 How to get cell value with poi in java ? My code is look like this String cellformula_total__percentage= "(1-E" + (rowIndex + 2) + "/" + "D" + (rowIndex + 2) + ")*100"; cell.setCellType(HSSFCell.CELL_TYPE_NUMERIC); cell.setCellStyle(this.valueRightAlignStyleLightBlueBackground); cell.setCellFormula("abs(" + cellformula_total__percentage + ")"); But if there is in this case how can i check that my cell value contain error value like #DIV/0! and how can i replace it with N/A 回答1: You have to