The first thing to do:
When you work with the Excel 2007 format, it is more reasonable to use XSSF implementations because you used abstract implementations. Always keep this in mind when using any implementation.
To add to an existing file, you need to go to the end of the lines in this sheet of the book. This can be achieved:
int rows = sheet.getPhysicalNumberOfRows();
XSSF-. .