关于POI下标的问题(注意事项)


1、如果你用getRow()、getCell 这样的方法时,下标则是从0开始。

2、但是当你用

String totalClleFormulaStr = "I"+(rowIndex+1)+"*"+"E"+(rowIndex+1);
cell10.setCellFormula(totalClleFormulaStr);

设置公式时,下标则是从1开始