Formulas > =CODE()
How To Use CODE() Function in Google Sheets
Description
How To Actually Use CODE() in Sheets
CODE(string)
Try CODE yourself
In cell B1, use the CODE function to find the Unicode value of the first character in cell A1. The result should be a number representing the Unicode value.
Hints (2)
-
Remember to reference the correct cell for the string.
-
The CODE function only looks at the first character of the string.
Related formulas
CODE is the reverse of CHAR. Give it a character, get back the number.
Browse all characters
Open the CHAR Google Sheets character table to click any glyph and copy its CHAR number.
Looking for a video tutorial? Members can email me anytime! Check out the blogs below for more info on this formula. Or generate your formula. Find more formulas here at BetterSheets.co/formulas
Learn more about the CODE() formula:
Generate a CODE() formula for your needs
Describe your task in plain English and get a paste-ready formula that uses CODE(). 2 free AI generations, no signup. Members get unlimited use.
Generate a CODE() formula