4.6 Merge by column - different name and number of rows - keep all rows
Before merging:
Meats.xlsx
and
MeatStock.xlsx
After merging:
Script:
A | |
---|---|
1 | =file(“Meats.xlsx”).xlsimport@t() |
2 | =file(“MeatStock.xlsx”).xlsimport@t() |
3 | =join@f(A1:Price,Name;A2:Stock,Name) |
4 | =A3.new([Price.Name,Stock.Name].ifn():Name,Stock.Stock,Stock.MinimumStock,Price.UnitPrice) |
5 | =file(“MeatsPriceStock.xlsx”).xlsexport@t(A4) |
A3: @f option means full join
A4: Bold code means selecting the non-null Name values
esProc Desktop and Excel Processing
4.5 Merge by row - different name and number of columns - keep only columns of the first file
4.7 Merge by column - different name and number of rows - keep only duplicate rows
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/