Google Sheets UNICODE Function

This post will guide you how to use Google Sheets UNICODE function with syntax and examples.

Description


The Google Sheets UNICODE function returns the decimal Unicode value of the first character of the text.

The UNICODE function can be used to return a number corresponding to a Unicode character in google sheets.  The purpose of this function is to get number from a Unicode character and its returned value is a decimal number.

The UNICODE function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the UNICODE function is as below:

= UNICODE(text)

Where the UNICODE function argument is:

  • text -This is a required argument. The string containing the character to be converted

Note:

  • Unicode can be implemented by different character encodings. The Unicode standard defines Unicode Transformation Formats (UTF): UTF-8, UTF-16, and UTF-32, and several other encodings.
  • The UNICODE function only words properly if the input text string is not empty and the first character has a Unicode representation.
  • Number can be passed directly into the UNICODE function, returning as a string.

Google Sheets UNICODE Function Examples


The below examples will show you how to use google sheets UNICODE function to convert a Unicode character to a number.

#1 To get a number from a Unicode character in cell B1, just using the following formula:

=UNICODE(B1)  //it returns E

google sheets unicode1

Note: you can use the UNICHAR function to perform the opposite conversion to return the Unicode character for a number.

 

 

 

Google Sheets UNICHAR Function

This post will guide you how to use Google Sheets UNICHAR function with syntax and examples.

Description


The Google Sheets UNICHAR function returns the Unicode character for a given number. This function support to return characters in both the UTF-8 and UTF-16 character set.

The UNICHAR function can be used to returns a Unicode character based on a given number in google sheets.  The purpose of this function is to get Unicode character by a number and its returned value is a Unicode character.

The UNICHAR function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the UNICHAR function is as below:

= UNICHAR(number)

Where the UNICHAR function argument is:

  • number -This is a required argument. The number to convert into a Unicode character.

Note:

  • Unicode is a character set. It is a very large character set. And it contains 137439 characters.
  • If number argument is 0, the UNICHAR function returns a #VALUE! Error message.
  • If the number does not have a corresponding Unicode character, and the UNICHAR function returns a #VALUE! Error.

Google Sheets UNICHAR Function Examples


The below examples will show you how to use google sheets UNICHAR function to convert a number to Unicode character.

#1 To get a Unicode character for a number value in cell B1, just using the following formula:

=UNICHAR(B1)  //it returns E

google sheets unichar function1