Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

377
Vistas
how to detect the format of a cell in excel with XLXS

I am converting the data in an excel file into JSON with the XLXS library using the sheet_to_json method, now it works fine for me, but I need to exclude some rows, in this case the rows that have red fill color.

enter image description here

in this case I want to exclude the rows with the ID 3 and 7

Can someone guide me if it is possible to do this operation with the currently used library?

Attach the code that I currently use:

return new Promise((resolve, reject) => {
    let aTemp = [];
    if (file && window.FileReader) {
      const reader = new FileReader();
      reader.onload = async function (e) {
        const data = e.target.result;
        const workbook = XLSX.read(data, {
          type: "binary",
        });

        workbook.SheetNames.forEach((sheetName) => {
          excelData = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], {
            header: 1
          });

          aTemp.push(...excelData);
        });

        resolve(aTemp);
      }.bind(this);

      reader.onerror = function (ex) {
        reject(ex);
      };

      reader.readAsBinaryString(file);
    }
  });
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda