![](https://xlncad.com/wp-content/uploads/2020/07/CODE_1.png)
Table of Contents
About
CODE function in Excel returns the numeric code of the given character. For example, =CODE(“B”) returns the number 66.
Function Type
Text
Purpose
Get the numeric code of a character.
Return value
A number equivalent to the numeric code of the character.
Syntax
=CODE(text)
Arguments
text – The text of which you want the numeric code.
Example
![](https://xlncad.com/wp-content/uploads/2020/07/CODE_2.png)
Notes
CODE function returns the numeric code of first character in the text string.
Excel Functions in Alphabetical Order (Complete list)
Complete List of Excel Functions (Category wise)