Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

312
Views
Cómo reemplazar los valores de celda en blanco con una palabra en Excel Java POI

ingrese la descripción de la imagen aquí

¿Cómo puedo llenar todas las celdas en blanco en un archivo de Excel con la palabra "No disponible" usando Java Apache POI?

He usado el siguiente código, pero solo funciona para algunas de las columnas, solo que no puedo entender cuál es el motivo. Para ser exactos desde la fila 1000 funciona. (Tengo un documento de Excel muy grande)

 XSSFRow r1; for(Row r : firstSheet) { r1=(XSSFRow) r; for (Cell cell : r) { if(cell == null || cell.getCellType() == Cell.CELL_TYPE_BLANK) { XSSFCell cell2 = r1.createCell(cell.getColumnIndex()); cell.setCellValue("Not Available"); } } }
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Sin su código, es difícil de entender. Código de muestra

 CellReference cr = new CellReference(entry.getKey()); int r = cr.getRow(); int c = cr.getCol(); Row row = sheet.getRow(r); if (row == null) row = sheet.createRow(r); Cell cell = row.getCell(c, Row.CREATE_NULL_AS_BLANK); cell.setCellValue("Not Available");
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!