Returns a numeric code for the first character in a text string.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
CODE(text)The CODE function returns the character code corresponding to the first character of a text string. The returned code is based on the character set used by your computer, typically ASCII or Unicode.
=CODE("A")ผลลัพธ์: 65
Returns the ASCII code for the uppercase letter A.
=CODE("Excel")ผลลัพธ์: 69
Returns the code for the first character 'E'.
It returns a #VALUE! error.