<< Go back to all functions

CODE

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

Function Syntax and Parameters

Syntax: CODE(string)

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