ASC function
Converts full-width (double-byte) letters, digits and katakana to their half-width (single-byte) forms.
Available in All versions of Excel, including Microsoft 365, Excel for Mac and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
ASC(text)| Argument | What it means | |
|---|---|---|
text | Required | The text, or a cell containing text, to convert. Characters that have no half-width form are left unchanged. |
Returns: The same text with full-width characters replaced by half-width ones.
How ASC works
Japanese, Chinese and Korean input methods can type Latin letters and digits in a full-width form that takes the space of a CJK character: ABC123 instead of ABC123. To a person they look like the same letters, but to Excel they are completely different characters, so lookups, COUNTIF and duplicate checks fail. ASC fixes this by converting each full-width character to its ordinary half-width equivalent.
ASC also converts full-width katakana to half-width katakana (for example エクセル becomes エクセル) and full-width spaces to normal spaces. Kanji, hiragana and characters that already are half-width pass through untouched. The opposite conversion is done by DBCS.
ASC is mainly useful when data comes from forms or systems used in East Asia, but it works in any language version of Excel, so it is a safe cleaning step for any imported list of product codes or phone numbers.
Examples
1Clean product codes typed in full-width
| A | B | |
|---|---|---|
| 1 | Typed code | Clean code |
| 2 | SKU-204 | SKU-204 |
| 3 | SKU-118 |
Result: SKU-204
Every full-width letter, the full-width hyphen and the digits become ordinary ASCII characters, so the code now matches SKU-204 in a price list.
2Half-width text is left alone
| A | B | |
|---|---|---|
| 1 | Typed code | Clean code |
| 2 | SKU-204 | |
| 3 | SKU-118 | SKU-118 |
Result: SKU-118
A3 already uses half-width characters, so ASC returns it unchanged. That makes it safe to fill the formula down a whole column.
3Full-width katakana to half-width
| A | B | |
|---|---|---|
| 1 | Product (kana) | |
| 2 | エクセル | エクセル |
Result: エクセル
Each full-width katakana character is replaced by its narrow half-width form, which some older invoicing and banking systems require.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | Rare: the argument is an error value passed from another cell. | Fix the source cell or wrap it in IFERROR. |
Tips
- Combine with TRIM for imported lists:
=TRIM(ASC(A2))also turns full-width spaces into normal ones and then removes the extras. - If a VLOOKUP or XLOOKUP fails although the codes look identical, compare
=CODE(A2)for both cells; a value above 255 for a Latin letter is a sign of full-width input. - Numbers typed in full-width are stored as text. After
ASC, wrap in VALUE to get a real number:=VALUE(ASC(A2)).
Google Sheets
ASC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
ASC in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Norwegian (Bokmål) | STIGENDE |