4.8 Merge by column - different name, number and order of rows - keep only rows of the first file and align the 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@1(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: @1 option is left join, note that here is the number “1” rather than the letter “l”
A4: ifn() means selecting non-null Name values
https://c.scudata.com/article/1651916536524
https://c.scudata.com/article/1652572267903
https://c.scudata.com/article/1652671073839
SPL Official Website 👉 https://www.esproc.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProc_Desktop/
SPL Learning Material 👉 https://c.esproc.com
Discord 👉 https://discord.gg/2bkGwqTj
Youtube 👉 https://www.youtube.com/@esProcDesktop
Linkedin Group 👉 https://www.linkedin.com/groups/14419406/