Back to Functions

CODE

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

TextCODE(string)

The CODE function in Google Sheets returns the numeric Unicode map value of the first character in the string provided.

Parameters

  • string: The string or cell reference containing the character to evaluate.

Step-by-Step Tutorial

  1. Using CODE with a string:
    • Example: =CODE("A")
    • Result: 65

Use Cases and Scenarios

  1. Character Analysis: Determine the Unicode value of a specific character.
  2. Encoding: Convert characters to their Unicode values for encoding purposes.

Related Articles

Newsletter

More CODE examples coming soon.

We are building short, practical updates for Sheets power users.