I have applied formula on a cell to calculate sum of the doubles in cells of a row, I want the answer to be printed with symbol pound(GBP).
This is the formula:
Cell cellDynamic = row.createCell(59); cellDynamic.setCellFormula("SUM(J10*$J9+K10*$K$9+L10*$L$9+M10*$M$9+N10*$N$9)");
I have tried to set the cell-style but it does not work:
CellStyle style = workbook.createCellStyle();
cellDynamic.setCellStyle(style.setDataFormat((short)8));
I am getting answer as (for eg) : 225.45, whereas it should be : £225.45