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

388
Vistas
reading Excel file on Javascript

I want to read only one row each time on excel. I can read all datas in excel but I couldn't limit it. Either I can read only 1 column in all rows or the all data. How can I read just 1 row on javascript?

I use this script and this src:

<script src="https://unpkg.com/read-excel-file@4.x/bundle/read-excel-file.min.js"></script>
<body>
   <input type="file" id="input">
   <script>
        var input = document.getElementById('input');
        input.addEventListener("change", function (){
            readXlsxFile(input.files[0]).then(function (data){
                data.map((row,index)=>{
                    var location= document.createTextNode(row);
                    console.log(location)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you need one row, don't map over entire file:

   readXlsxFile(input.files[0]).then(data => {
      console.log(data[0]) // supposed to print the first row
   })
about 4 years ago · Juan Pablo Isaza Denunciar
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