Apache POI is capable enough to update or modify an existing Excel file in java. eg. new FileInputStream(new File(filePath)); WorkbookFactory.create(inStream); Sheet sheet = workbook.getSheetAt(0); int rowCount = sheet.getLastRowNum();