# COLUMN

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

**COLUMN**(*range*; *columnIndex*)

* *range* - a range of values - ***Value type**: range*
* *columnIndex* - the index of the column to return - ***Value type**: number (optional, default value: 1)*

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

* If *columnIndex* is greater than the number of columns in *range* or smaller than 1, an empty column with the same amount of rows as *range* is returned.
* *columnIndex* can contain the text “last”. In this case, the last column of *range* is returned.
* The function COLUMN can be used to ensure that a parameter or operand is always handled as a column during an operation.

#### Example

The left widget is filled with the second column of table2, by calling the COLUMN function with 2 as second parameter.

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