4.6 Merge by column - different name and number of rows - keep all rows

 

Before merging:

Meats.xlsx
imagepng

and

MeatStock.xlsx

imagepng

After merging:

imagepng

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