Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

ASC

Also known as: ASCII code function, CODE function

1 min read Updated November 10, 2026

Definition A function in some programming languages that returns the numeric ASCII code of a character.

What it is

In BASIC, ASC("A") returns 65. Excel's equivalent is CODE, and JavaScript uses charCodeAt. The reverse operation turns a number back into a character.

Why it matters for your business

Useful when cleaning data with hidden characters, such as invisible spaces from copy-pasted bank statements.

Real-world example

An analyst used CODE() in Excel to discover non-breaking spaces breaking lookups in imported M-Pesa statements.

Design Corner tip

Use TRIM and CLEAN in Excel to remove stray spaces and hidden characters from imported data.