Syntax
=CODE(text)Arguments
| Argument | Required | Description |
|---|---|---|
text | Required | The text whose first character you want the code of |
How to use CODE
CODE takes 1 required argument. Type =CODE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=CODE("A")Result =CODE("!")Result =CODE("")Result Related text functions
- ASCChanges full width (double byte) letters, digits and katakana to half width (single byte) characters.
- BAHTTEXTConverts a number to Thai text and adds the suffix Baht.
- CHARReturns the character for a code number from 1 to 255.
- CLEANRemoves nonprinting characters (codes 0 to 31) from text.
- CONCATJoins texts and the values of whole ranges into one text.
- CONCATENATEJoins several texts into one.
- DBCSChanges half width (single byte) letters, digits and katakana to full width (double byte) characters.
- DOLLARFormats a number as currency text, rounded to the given number of decimals.
- EXACTChecks whether two texts are exactly the same, including upper and lower case.