CODE

CODE returns the numeric Unicode map value of the first character in the argument.

Function category: Text

Syntax

CODE(arg1)

Arguments

Description

arg1

A string.

Example

The CODE function can be used to find the numerical Unicode value of a given string:

CODE("d")

This returns the following:

100

Notes

Almost the opposite of CHAR, which takes an argument of a numerical Unicode value and returns a string.