ReferenceFunctionsText Functions
CHAR
Returns the character specified by a number Excel uses Windows-1252 encoding for codes 1-255.
Summary
Returns the character represented by a numeric code.
CHAR follows Excel-style Windows-1252 behavior for codes 1..255.
Remarks
- Input is truncated to an integer code.
- Valid code range is
1through255; outside this range returns#VALUE!. - Codes in the Windows-1252 extension range (128-159) are mapped to Unicode equivalents.
- Errors are propagated unchanged.
Examples
ASCII character
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
A
Out-of-range code
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
#VALUE!
Related functions
FAQ
Which character set does CHAR use for codes 128-159?
It follows Excel-style Windows-1252 mappings, including extended symbols in that range.
Runtime metadata
Category
Text
Signature
CHAR(arg1: Any)Arity
min 1, max 1
Arguments
arg1Any · Scalar
Caps
PURE
Source