# CODE

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

**CODE**(*character*)

* *character* - the character from which the Unicode value is to be returned - ***Value type**: text*

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

* If character is a text with several characters, only the Unicode value of the first character is returned.

#### Examples

CODE with a single character:

**Content =&#x20;**<mark style="color:blue;">**CODE**</mark>(<mark style="color:blue;">#cell1</mark>)

<div align="left"><figure><img src="https://3148043601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL43fiRbeRtPnTjMpbGNO%2Fuploads%2Fgit-blob-456c35b6e58168c786466b85c0a4a6bd92f57588%2Fgrafik%20(536).png?alt=media" alt=""><figcaption></figcaption></figure></div>

CODE with multiple characters:

**Content =&#x20;**<mark style="color:blue;">**CODE**</mark>(<mark style="color:blue;">#table1</mark>)

<div align="left"><figure><img src="https://3148043601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL43fiRbeRtPnTjMpbGNO%2Fuploads%2Fgit-blob-00cc0eea72aafd0008f6ce9007812a1a6416f51d%2Fgrafik%20(537).png?alt=media" alt=""><figcaption></figcaption></figure></div>

In combination with the CSVTORANGE function, you can determine all the Unicode values of a text.

In this case, the text *mytext* is first split into its individual letters using the CSVTORANGE function. The CODE function can then be applied to the individual cells.

**Content =&#x20;**<mark style="color:blue;">**CSVTORANGE**</mark>(<mark style="color:blue;">#cell1;""</mark>)

<div align="left"><figure><img src="https://3148043601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL43fiRbeRtPnTjMpbGNO%2Fuploads%2Fgit-blob-0fd97de540ebb952a0cebe8f637a31e5182fd40b%2Fgrafik%20(538).png?alt=media" alt=""><figcaption></figcaption></figure></div>
