switch (cell.getCellType()) {
    case HSSFCell.CELL_TYPE_FORMULA: //公式类型
    // cell.getCellFormula();
    try {
        value = String.valueOf(cell.getNumericCellValue());    
    } catch (IllegalStateException e) {
         value = String.valueOf(cell.getRichStringCellValue());
    }
     break;
   }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-08-29
相关资源
相似解决方案