A to Z of Excel Functions: The CODE Function
7 August 2017
Welcome back to our regular A to Z of Excel Functions blog. Today we look at the CODE function.
The CODE function
If you find it CODE outside, this function may assist you. CODE returns a numeric code (great dictionary definition) for the first character in a text string. The returned code corresponds to the character set used by your computer.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2017/a-to-z-functions/64.-code1.png/27a02eebf7e7ef8ecb6e386c5bc6eea9.jpg)
The CODE function employs the following syntax to operate:
CODE(text)
The CODE function has the following arguments:
- text: this is required and represents the text for which you want the code of the first character.
Please see my example below:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2017/a-to-z-functions/64.-code2.png/d0375fdee94b72965ac3aa441fa4ddda.jpg)
We’ll continue our A to Z of Excel Functions soon. Keep checking back – there’s a new blog post every other business day.
A full page of the function articles that have been released can be found here.