# 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/rMtcdwfDDyZPiMn9AMZa)

<figure><img src="/files/4OJ0DlDwoT70S5rBaj5q" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/range-functions/combine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
