Skip to content

CODE

TextExcel 2007

The numeric code of the first character of a string.

Syntax

CODE(text)

Examples

=CODE("A")

65

Related functions

More Text functions

← All 510 functions

Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.