ID EN
#Text

UNICODE

Excel Functions 🇮🇩 Bahasa Indonesia

Dapatkan nomor dari karakter Unicode

Syntax

EXCEL
=UNICODE(text)

Arguments

Parameter Deskripsi
text Unicode character to convert to number.

Return Value

Titik kode Unicode dalam notasi desimal

Details

Fungsi UNICODE Excel mengembalikan angka (titik kode) yang sesuai dengan karakter Unicode yang diberikan sebagai teks. Hasilnya adalah angka dalam notasi desimal. Misalnya, simbol Euro (€) adalah titik kode 8364 dalam notasi desimal, jadi UNICODE mengembalikan 8364: Untuk mendapatkan nilai heksadesimal, yang biasanya merupakan cara poin kode unicode dinyatakan, Anda dapat menggunakan fungsi DEC2HEX seperti ini: Jika teks lebih dari satu karakter, UNICODE mengembalikan jumlah karakter pertama: Catatan: fungsi UNICHAR melakukan konversi sebaliknya, mengembalikan karakter Unicode pada titik kode tertentu. Unicode memberikan setiap karakter nilai numerik dan nama yang unik. Nilai numerik ini disebut sebagai "titik kode". Poin kode biasanya diwakili oleh notasi "U+" diikuti dengan angka heksadesimal. Misalnya

Contoh

Example 1

The Excel UNICODE function returns a number (code point) corresponding to a Unicode character given as text. The result is a number in decimal notatio

EXCEL
=UNICODE("€") // returns 8364
Example 2

To get the hexadecimal value, which is usually how unicode code points are expressed, you can use the DEC2HEX function like this:

EXCEL
=DEC2HEX(UNICODE("€")) // returns 20AC
Example 3

If text is more than one character, UNICODE returns the number of the first character:

EXCEL
=UNICODE("a") // returns 97
=UNICODE("apple") // returns 97
Examples

In decimal representation, the code point for "A" is 65, and the code point for the "😊" emoji is 128522, therefore:

EXCEL
=UNICODE("A") // returns 65
=UNICODE("😊") // returns 128522
Examples

In Excel, you can use the DEC2HEX function to translate numbers from hexadecimal to decimal if needed.

EXCEL
=DEC2HEX(UNICODE("😊")) // returns 1F60A
UNICODE versus UNICHAR

The UNICODE function translates a Unicode character into a code in decimal number format. To perform the opposite conversion, see the UNICHAR function

EXCEL
=UNICHAR(HEX2DEC("1F60A")) // returns "😊"

See Also

UNICODE UNICHAR CODE CHAR