c.getType() == CellType.STRING_FORMULA ||
c.getType() == CellType.BOOLEAN_FORMULA ||
c.getType() == CellType.DATE_FORMULA ||
c.getType() == CellType.FORMULA_ERROR)
{
FormulaCell nfc = (FormulaCell) c;
StringBuffer sb = new StringBuffer();
CellReferenceHelper.getCellReference
(c.getColumn(), c.getRow(), sb);
try
{
bw.write("Formula in " + sb.toString() +
" value: " + c.getContents());
bw.flush();
bw.write(" formula: " + nfc.getFormula());
bw.flush();
bw.newLine();
}
catch (FormulaException e)
{