Formulas > =CODE()

How To Use CODE() Function in Google Sheets

Description

Returns the numeric Unicode map value of the first character in the string provided.

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)

Related formulas

CODE is the reverse of CHAR. Give it a character, get back the number.

  • CHAR turns a number into a character
  • UNICHAR is the Excel equivalent of CHAR for Unicode
  • UNICODE works like CODE in Google Sheets

Browse all characters

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