Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

376
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda