- Why does UNICODE return #VALUE! when I reference a numeric cell?
- UNICODE expects a text string. When you pass a pure number, Excel cannot determine a character to evaluate, so it throws #VALUE!. Convert the number to text first, for example with TEXT(A1,"0") or by concatenating an empty string.
- Can UNICODE handle emojis or other multi-byte characters?
- Yes. UNICODE returns the code point for the first Unicode scalar value, even for emojis. However, some emojis are represented by surrogate pairs; UNICODE will only give the code of the first surrogate, which may not be the full emoji.
- What is the difference between UNICODE and CODE in older versions of Excel?
- CODE was limited to the ANSI character set and returned values 1-255. UNICODE supersedes it by supporting the full Unicode range, returning values up to 1,114,111. Use UNICODE for modern multilingual datasets.
- How can I get the Unicode code point of the last character in a cell?
- Combine RIGHT to extract the last character with UNICODE. For example, =UNICODE(RIGHT(A2,1)) will return the code point of the final character in cell A2, regardless of string length.