BiffRec cell = refCell[0];
if (cell != null){
if (cell.getFormulaRec() != null){
Formula f = (Formula)cell.getFormulaRec();
retValue =f.calculateFormula();
}else{
if (cell.getDataType().equals("Float")){
retValue =new Double(cell.getDblVal());
}else {
retValue = cell.getInternalVal();