title: Get Cell Value from Excel Sheet with Apache Poi
body: <p>How to get cell value with poi in java ?</p>
  
  <p>My code is look like this </p>
  
  <pre><code>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 + ")");
  </code></pre>
  
  <p>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</p>