XSSFWorkbook book = new XSSFWorkbook(file.getInputStream()); XSSFSheet sheet = book.getSheetAt(0); for (int i = 1; i < sheet.getLastRowNum() + 1; i++) { XSSFRow row = sheet.getRow(i); row.getCell(0).setCellType(CellType.STRING); row.getCell(1).setCellType(CellType.STRING); row.getCell(2).setCellType(CellType.STRING); String v1 = row.getCell(0).getStringCellValue(); String v2 = row.getCell(1).getStringCellValue(); String v3 = row.getCell(2).getStringCellValue(); }