# ROWTORANGE

#### Syntax

**RANGETOROW**(*row*; *numColumns*)

* *row* - the row which should be converted to a range - ***Value type**: row with cells of any value type*
* *numColumns* - the number of columns of the return range - ***Value type**: number*

#### Remarks

1. The function returns a range with
   1. *numColumns* as number of columns
   2. as many rows so that all cells of *row* are included
   3. the cells of *row* are added row-wise, from in the order from top left to bottom right
   4. the cells have the same value and value type as the according cells of *row*

#### Example

Here, the widget wine list row is converted to a range with an appropriate number of columns (5 in this case):

<figure><img src="/files/DmtAs3umZP4Yqn9fHbwu" 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/rowtorange.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.
