4.9 Merge by row - convert file names to column values - unfixed number of files

 

Before merging:

Apple.xlsx
imagepng

Bread.xlsx
imagepng

Pork.xlsx
imagepng

After merging:
imagepng

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


esProc Desktop and Excel Processing
4.8 Merge by column - different name, number and order of rows - keep only rows of the first file and align the rows
4.10 Merge by column - convert file names to column names