Spread Formula Reference
Formula Functions / Functions A to C / CODE
In This Topic
    CODE
    In This Topic

    This function returns a numeric code to represent the first character in a text string. The returned code corresponds to the Windows character set (ANSI).

    Syntax

    CODE(text)

    Arguments

    The argument is the text from which you want to determine the code of the first character.

    Data Types

    Accepts string data. Returns string data.

    Examples

    CODE(H6)

    CODE(R6C8)

    CODE(""B"") gives the result 66

    CODE(""Buffalo"") gives the result 66

    Version Available

    This function is available in product version 1.0 or later.

    See Also

    CHAR | Text Functions