Combine multiple tables into a single table by merging their rows while preserving the maximum number columns.

From the following 2 tables, lets look at how we can combine them to form one.

It would also work even if the 2 tables were in different tabs or files.

The VSTACK function enables the vertical assembly of multiple tables into a single table, combining their rows while preserving the number of columns. It particularly beneficial for merging data without requiring intricate manipulations.

=VSTACK(array1, [array2], …)

Array arguments correspond to the different tables that you want to merge.

In our example, we merge the first table and select only the data from the second (otherwise the title row will repeat).

Excel has combined the 2 tables. All you have to do is format the table formed.

HSTACK works in the same way, but horizontally. The data will be added in new columns.