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

338
Views
Convert an excel xlsx file with nested headers into json

I am converting my excel file to json using the below library and it works fine when I have one header row and the remaining rows are data.

var excelToJson = require('convert-excel-to-json');

var result = excelToJson({
sourceFile: 'Auto.xlsx',
header: {
    rows: 2 //Used 2 to skip the first line of headers
},
columnToKey: {
   '*': '{{columnHeader}}'
}
}); 

But I have a file that has nested rows as headers similar to below and want to convert that into json.

enter image description here

Something like this, with multiple sheets enter image description here

Appreciate any help or pointers. Thanks!

about 4 years ago · Juan Pablo Isaza
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!