Im automating a database using apache poi. I need to get the sum of cell range B3:H3
I have successfully get the output. Now I need to loop the equation for 300+ rows. I used following equation for a single row.
sheet1.getRow(1).createCell(8).setCellValue("TOTAL");
sheet1.getRow(2).createCell(8).setCellFormula("SUM(B3:H3)");
I need to find the last row number and loop the process till then. How can I do that?