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

389
Views
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 answers
Answer question

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 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!