Dapatkan karakter dari nomor
=CHAR(number)
| Parameter | Deskripsi |
|---|---|
number |
A number between 1 and 255. |
The CHAR function returns a character when given a valid character code. Use the CHAR to translate ASCII code page numbers into actual characters. For
=CHAR(65) // returns "A"
=CHAR(97) // returns "a"
CHAR can be useful when you want to specify characters in formulas or functions that are awkward or impossible to type directly. For example, you can
="line 1"&CHAR(10)&"Line 2" // add line break
To get the numeric code for a character, you can use the CODE function:
=CODE("A") // returns 65