FormulaCamp
Completed
← All functions
Text

CODE

Code of the first character.

Syntax

CODE(text)

Example: =CODE(A2)

Available in: All versions

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =CODE(A5)

Example spreadsheet for CODE
ABCD
1TextOtherResult
2Alice Johnsonalice johnson83
3[email protected][email protected]
4 extra spaces
5SKU-2026-0415
6iced coffee, tea, sugar
7Order 417 shipped
Result in D2: 83

More in Text