tech on the net
Home About Us Feedback Site Map

Microsoft

Access Excel Word

Database

SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker

Language

C Language

More

ASCII Table Linux UNIX Java Clipart Joke of the Moment

Other Sites

CheckYourMath BigActivities

Excel Functions

(Scroll to see more)

Share this page:

MS Excel: CODE Function (WS)

Learn how to use the Excel CODE function with syntax and examples.

Description

The Microsoft Excel CODE function returns the ASCII value of a character or the first character in a cell.

Syntax

The syntax for the Microsoft Excel CODE function is:

CODE( text )

Parameters or Arguments

text is the specified character to retrieve the ASCII value for. If there is more than one character, the function will return the ASCII value for the first character and ignore all of the characters after the first.

Applies To

The CODE function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The CODE function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel CODE function examples and explore how to use the CODE function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel CODE examples would return:

=CODE(A1) would return 116
=CODE(A2) would return 84
=CODE(A3) would return 84
=CODE("www.techonthenet.com") would return 119

View a listing of the ASCII values.