Excel - UNICHAR Function



UNICHAR Function

The UNICHAR and UNICODE functions, part of the Excel Text functions, are contrary and generally used in the encoding system. The Excel UNICHAR function retrieves the Unicode character corresponding to the numeric value. It allows users to interpret symbols using encoding. UTF stands for the Unicode Transformation Format and may include the UTF-16, UTF-8, etc.

Compatibility

The UNICHAR function is compatible with the following versions of MS-Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016

Syntax

The syntax of the UNICHAR function is as follows −

UNICHAR (number)

Arguments

You can use the following argument with the UNICHAR function −

Argument Description Required / Optional
Number A numeric value/cell reference refers to a specific number that will be transformed into the Unicode number denoting a particular character. Required

Points To Remember

  • The UNICHAR character retrieves the Unicode character that may be the character's string.
  • The UNICHAR function will retrieve the #N/A error for the partial surrogates Unicode numeric value.
  • If the number argument is zero, the UNICHAR function will retrieve zero value.
  • If the numeric values reside outside the defined range, the UNICHAR function will retrieve the error value.
  • If the non-numeric values are specified in the Number, the UNICHAR function will return to the #VALUE!.
  • If you specify the cell reference points to an invalid data value, this function will return the #VALUE!.
  • If the first argument, "Numbers", contains invalid data types, the UNICODE function will retrieve the #VALUE!.

Examples of UNICHAR Functions

Practice the following example to learn the use of the UNICHAR function in Excel.

Example 1: Apply the UNICHAR Function on Different Numbers

Solution

Step 1 − Assume the sample dataset consists of two columns, Number and Result. The Number column specifies the list of random numbers. The UNICHAR function will be computed in the C column.

Apply UNICHAR Function on Different Numbers1

Step 2 − Furthermore, select the cell range C2:C9 and write the formula =UNICHAR(C2) in the formula box.

Apply UNICHAR Function on Different Numbers2

After that, hit the "ctrl + Enter" tab to populate the results in the selected range of cells.

Apply UNICHAR Function on Different Numbers3

As you can observe in the screenshot, the #VALUE! error will be retrieved if the Number argument contains the 0 value.

Example 2

If you specify the cell reference points to an invalid data value, this function will return the #VALUE!.

Solution

Let's suppose you enter the formula =UNICHAR(SUM("a","P")) in the B3 cell. In this expression, the characters passed to the SUM function are invalid, as the SUM function contains only the numeric value.

Specify Cell Reference Points to an Invalid Data Value

After pressing the Enter tab, the UNICHAR function will return the #VALUE! Error.

Specify Cell Reference Points to an Invalid Data Value2

Download Practice Sheet

You can download and use the sample data sheet to practice the UNICHAR function.

Advertisements