While parsing an excel file for the values in the column with the formula format I receive null. Here is my code:
Cell cell = row.getCell(i);
CellValue cellValue = evaluator.evaluate(cell);
switch(cell.getCellType())
{
case Cell.CELL_TYPE_NUMERIC:
returnedMap.put(arrayForMappingNames[index], ""+cell.getNumericCellValue());
break;
case Cell.CELL_TYPE_STRING:
returnedMap.put(arrayForMappingNames[index], cell.getStringCellValue());
break;
case Cell.CELL_TYPE_FORMULA :
returnedMap.put(arrayForMappingNames[index], cellValue.getStringValue());
break;
default :
returnedMap.put(arrayForMappingNames[index], ExcellUtil.DEFAULT_VALUE);
}