I must add formulas to an Excel worksheet and I found out this is done in the following way:
String strFormula= "SUM(A1:A10)";
cell.setCellType(HSSFCell.CELL_TYPE_FORMULA);
cell.setCellFormula(strFormula);
My questions are:
It may happen that the users use different language versions, means on an English system the formula will be
"SUM(A1:A10)"
but on a German system will be"SUMME(A1:A10)"
. How can I distinguish or don't I have to distinguish at all?How can I use the column- and row-index I'm using in the code also for the formular instead of the column letters? Means: How can I express the row index
1
without having to find out that is a rowB
?
Thank you for your support !