Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to union headers from multiple excel sheets and files?

$
0
0
Hi,

I have several excel files (sheets) with different headers.
How can I union all headers, change the headers of each sheet files, and padding the value with empty string if the sheet has no that headers before?
I need to append the data from all files, but for now pentaho works only when all sheets have the same headers.

For example, I have two files - file1.xls and file2.xls.
The headers of each file are:

file1.xls
sheet1
header1
header2

sheet2
header1
header2
header3
header4

file2.xls
sheet1
header5 <-- header1 and header2 are at different columns
header6
header1
header2

sheet2
header3
header4

How can I change the headers to header1...header6 for all sheets before appending the data?


Thanks for any help,
gintau

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>