CHAR Function in Excel (Table of Contents)
CHAR Function in Excel
CHAR means CHARACTER. In Excel CHAR, the function is a TEXT formula that returns the character, which is specified by the numbers from 1 to 255. These characters are inbuilt by Microsoft based on the numbers that we supply. It is very useful to insert characters to our strings while writing something. These characters ordinarily cannot type from our normal keyboard. Instead, we need to use the CHAR function.
CHAR Formula in Excel:
The CHAR Formula in Excel is as follows.
The Formula of CHAR function involves only one argument, i.e. number
Number: It is the integer number ranging from 1 to 255.
This argument can be given cell reference as well as direct supply to the argument. Since we only need to supply numbers as an argument, we need not specify the number and double-quotes.
How to Use CHAR Function in Excel?
This CHAR is very simple easy to use. Let us now see how to use the CHAR Function in Excel with the help of some examples.
Example #1
Firstly, we need to look into which number specifies which character. The below list tells the associated character for each number.
CHAR number 1 unleashes nothing, i.e. empty cell but only for the outset. There is always a character in it. You can use the LEN formula to check.
Example #2
Assume you are working in a college as an assistant. You have a list of all the students, and you need to post the attendance report to their respective homes. You have addressed in three different columns, and you need to merge those 3 into 1 column and insert line breakers after each and every column.
In column G, you need to combine the full address by giving a line breaker after each address. We can insert the line breaker by using the CHAR function. Important to know which number we need to use to insert a line breaker. Number 10 we need to use to insert the line breaker after each address column.
Initially, our data looks like this. One tuning we need to do here. The tuning is we need to wrap the text to see the difference.
Now, see how your address column looks.
Example #3
We can insert alphabets by using the CHAR function. Below are the lists of numbers to insert the alphabets.
Apply these codes in excel to see the magic.
Now we have inserted UPPER case alphabets. In order to insert the LOWER case alphabets, we need to use the below codes.
Example #4
We can insert those CHARACTERS by using the keyboard too. Below is the list of those keys.
Example #5
Assume you have downloaded the below data from the web, and you need to remove all those line breakers and special characters from this.
In order to remove those special characters and remove line breakers, we can use the SUBSTITUTE function.
We have used a three-nested SUBSTITUTE function to remove special characters and line breakers.
Things to Remember
- CODE function can return the number if you give the special character as a reference. For example, =CODE (“A”) will return 65 as the answer.
- The first 32 characters are non-printable characters that can be removed by using a CLEAN function in excel.
- We can insert the characters by using ALT + numbers instead of the CHAR formula.
- If the supplied number is not triggered, then we will get #VALUE! Error, i.e. numbers more than 255.
- If the supplied is the number is not in the numeric format, we will get the same error.
Recommended Articles
This has been a guide to CHAR Function. Here we discuss the CHAR Formula and how to use CHAR Function in Excel along with excel example and downloadable excel templates. You may also look at these useful functions in excel –
16 Online Courses | 23 Hands-on Projects | 140+ Hours | Verifiable Certificate of Completion
4.8
View Course
Related Courses