CODE function

Category: Text
Introduced: Excel 2003

Summary

Returns a numeric code for the first character in a text string

Syntax

CODE(text) The CODE function syntax has the following arguments:
• Text Required. The text for which you want the code of the first character.

Example

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

Microsoft Support Page

https://support.microsoft.com/en-us/office/code-function-c32b692b-2ed0-4a04-bdd9-75640144b928

Back to Functions