CODE Function in Excel – Get the ASCII Value in Excel

CODE function in Excel gets the character as an input and returns the corresponding ASCII Value

NOTE: The Returned code may vary based on the operation system.

Syntax of CODE Function in Excel:

CODE( text )

Where,

  • text – text argument for which you want to find the ASCII value.

 

Example of CODE Function in Excel:

Formula

CODE function in Excel 1

CODE Function takes up the text as an input and matches with the ASCII value and returns the corresponding ASCII Value.

Result

CODE function in Excel 2

NOTE : Windows uses the ANSI character set, whereas Macintosh uses the Macintosh character set.

previous CODE Function in Excel                                                                                                                next CODE Function in Excel