4.10 Merge by column - convert file names to column names
Before merging:
Apple.xlsx
Bread.xlsx
Pork.xlsx
After merging:
Script:
A | |
---|---|
1 | =directory@p(“tmp/*.xlsx”) |
2 | =A1.(filename@n(~)) |
3 | =A1.(T(~)) |
4 | =A3(1).new(Name,Amount:${A2(1)},A3(2)(#).Amount:${A2(2)},A3(3)(#).Amount:${A2(3)}) |
5 | =file(“Amount.xlsx”).xlsexport@t(A4) |
A1: List all file names in the directory
A2: Obtain file names without extension
A3: Read files as a table sequence
A4: Convert Amount fields of the original table sequence to corresponding file names while generating a new table sequence
esProc Desktop and Excel Processing
4.9 Merge by row - convert file names to column values - unfixed number of files
4.11 Merge by column - one to many - copy data
SPL Official Website 👉 https://www.scudata.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProc_Desktop/
SPL Learning Material 👉 https://c.scudata.com
Discord 👉 https://discord.gg/cFTcUNs7
Youtube 👉 https://www.youtube.com/@esProcDesktop
Linkedin Group 👉 https://www.linkedin.com/groups/14419406/