> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66/nedyx/clearlines-functions/range-functions/combine.md).

# 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.

![](/files/4kWRNXHcZFwj9LMecpoq)

<figure><img src="/files/cBQVtEqYP9I4j408lVDX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/CvbztoXli8KRqX26SZVa" alt=""><figcaption></figcaption></figure>
