4.3 Merge by row - different name and number of columns - keep all columns

 

Before merging:

FruitsPriceStock.xlsx

imagepng

MeatsPriceStock.xlsx

imagepng

After merging:

imagepng

Script:

A
1 =file(“FruitsPriceStock.xlsx”).xlsimport@t()
2 =file(“MeatsPriceStock.xlsx”).xlsimport@t()
3 =create(${(A1.fname()&A2.fname()).concat@c()})
4 =A3.insert@f(0:A1)
=A3.insert@f(0:A2)
=file(“FoodsPriceStock.xlsx”).xlsexport@t(A3)

A3: All columns need to be kept, so use the union of column names


esProc Desktop and Excel Processing
4.2 Merge by column - same name and number of rows
4.4 Merge by row - different name and number of columns - keep only duplicate columns