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


https://c.scudata.com/article/1651916536524
https://c.scudata.com/article/1652670522953
https://c.scudata.com/article/1652743559640