...
4.9 Merge by row - convert file names to column values - unfixed number of files
Before merging:
Apple.xlsx
Bread.xlsx
Pork.xlsx
After merging:
Script:
A | |
---|---|
1 | =directory@p(“tmp/*.xlsx”) |
2 | =A1.conj((fn=filename@n(~),T(~).derive(fn:Commodity))) |
3 | =file(“Amount.xlsx”).xlsexport@t(A2) |
A1: List all files in the directory, which can be used to process unfixed number of files