=VSTACK(array1,[array2],.)
The array arguments in the function syntax are the arrays you want to concatenate vertically. Let's start with a simple example. Suppose you have two tables. Each board has a corresponding number of letters and numbers. To use VSTACK:
The final syntax is:
=VSTACK(B3:C7,E3:F7)
You can also use this function and exclude headers. Here, we have a list of names. If you want to stack them side by side, do the following:
=VSTACK({"Name","Age"},B3:C8,B11:C16)
You can also sort names by combining VSTACK with the SORT function in Excel. You can achieve this by encapsulating the data in the table using the SORT and VSTACK functions.
=VSTACK({"Name","Age"},SORT(VSTACK(B3:C8,B11:C16)))
The syntax of HSTACK is:
=HSTACK(array1,[array2],.)
The array argument in this function's syntax is the array you want to concatenate horizontally. Let's start with a simple example. Here use letters and numeric data.
Final syntax:
=HSTACK(B3:C7,E3:F7)
Like VSTACK, you can use HSTACK with other functions, like the UNIQUE function in Excel. Let's see how it works. The example here needs a list of unique values from two lists of chocolates. You can include HSTACK in UNIQUE functions.
=UNIQUE(HSTACK(B4:C8, E4:F8))
Above is how to use VSTACK and HSTACK in Microsoft Excel . Hope the article is useful to you.