# CELLREF

#### Syntax

**CELLREF**(*widget*; *rowIndex*, *columnIndex*)&#x20;

* *widget* - the widget in which the area is to be inserted - ***Value type**: Widget*&#x20;
* *rowIndex* - the index of the row in which the range is to be inserted - ***Value type**: Number (optional, default value: 1)*&#x20;
* *columnIndex* - the index of the column in which the range is to be inserted - ***Value type**: Number (optional, default value: 1)*&#x20;

Remarks&#x20;

* The CELLREF function is always used directly before an assignment operator (=) -  see example below.&#x20;
* rowIndex and/or columnIndex can contain the text "last". In this case, the last row or the last column of the range is used as the index.&#x20;

#### Example

<figure><img src="https://content.gitbook.com/content/4X6nN2wTlDsVpd8P1WDM/blobs/gfxByejg8kZbl32iGoIi/grafik.png" alt=""><figcaption></figcaption></figure>
