Skip to main content

CODE function

The CODE function is one of the text and data functions. Is used to return the ASCII value of the specified character or the first character in a cell.

Syntax​

CODE(text)

The CODE function has the following argument:

ArgumentDescription
textThe text for which you want to get the code of the first character.

Notes​

The CODE function is case-sensitive.

How to apply the CODE function.

Examples​

The figure below displays the result returned by the CODE function.

CODE Function