# COMBINE

#### Syntax <a href="#syntax.11" id="syntax.11"></a>

**COMBINE**(*range1*; *range2*; …; *rangeN*; *orientation*)

* *range1-N* - ranges of values - ***Value type**: range*
* *orientation* - the orientation of the combination - ***Value type**: constant (optional, <mark style="color:red;">horizontal</mark> as default).*\
  Possible values are:
  * *<mark style="color:red;">horizontal</mark>* - the ranges are combined horizontally
  * *<mark style="color:red;">vertical</mark>* - the ranges are combined vertically

#### Remarks <a href="#remarks.8" id="remarks.8"></a>

* If *orientation* is *<mark style="color:red;">horizontal</mark>*, the total number of rows is defined by the range which contains the maximum number of rows for all ranges. For orientation *<mark style="color:red;">vertical</mark>* analogue.
* If a *range* is empty, it is not used for the combination (not even as an empty row or column).

#### Example <a href="#example.1" id="example.1"></a>

In the two examples below table1 and table2 are combined horizontally (which is the default) and vertically.&#x20;

![](https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/MGCJcdvCOuwWZOTmfJEl/grafik.png)

<figure><img src="https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/i86AvXmOzya8cq7wWnMG/grafik.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/4tJgPAPy9xo6yz2lptea/grafik.png" alt=""><figcaption></figcaption></figure>
