Home › Functions › Text › CODE
fx
CODE
Text  ·  Since: Excel 2003  ·  9 languages

Returns a numeric code for the first character in a text string. The returned code corresponds to the character set used by your computer.

🌐 Translations

English CODE
Deutsch CODE
Français CODE
Español CODIGO
Italiano CODICE
Português CÓDIGO
Nederlands CODE
Polski KOD
Русский КОДСИМВ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

CODE(text)

Arguments

text (required) — The text for which you want the code of the first character.

▶ Examples

=CODE("A")
=CODE("!")

Related functions

Copied to clipboard