# ROWS

#### Syntax

**ROWS**(*range*; *rowIndex1*; row*Index2*; …; row*IndexN*)

* *range* - the range from which the rows should be extracted *- **Value type**: range*
* *rowIndex1-N* - the indicees of the rows which should be included in the return range - ***Value type**: number*

#### Remarks

* The order of the rows in the return range is the same as the order of the *rowIndex* parameters.
* If a row does not exist in *range*, a row with empty cells is included in the range.
* It is possible to use the same index multiple times, then the same row is included multiple times in the result range.

#### Examples

The left table is filled with the rows 1 and 3 of table1:

<div align="left"><figure><img src="/files/dpn6jRHIC4elHo9ye0dn" alt=""><figcaption></figcaption></figure></div>

The left table is filled with several rows of table2 in a custom order. Including an empty row, by using 0 as index:

<div align="left"><figure><img src="/files/VXv1sjLEIZdrUtT9EI5G" alt=""><figcaption></figcaption></figure></div>


---

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