Excel has so many functions that either one of their or their combination can fulfill most of the tasks required in our work places. Out of them, one of the subcategory that is most commonly used is the TEXT functions. They are meant to manipulate texts within a formula.
The text functions are meant to manipulate and not format the text i.e. if you try to change the color of the text, that will not be possible, but if try to extract the left most or right most character of a text string, that is quite possible with these text formulas.
Besides, with text formulas, you can extract, join or concatenate, clean and remove characters, get character codes, perform searches within text strings, make substitution, trim the text, change case of text and convert text to numeric values and vise versa.
Out of these handful of functions will be taking up few to be explained in this post. For this post, we will be understanding how to use LEFT (), MID () and RIGHT () functions. The names are self explanatory, but following lines explain the syntax one by one:
An important concept – The Placeholder:
Just like we have seats to accommodate students in the class room and the hooks in the key holder for the keys, we have placeholders for characters in a string. The place holder is similar to a seat where a character should sit in.
In order to understand how the following formula works, we need to understand this concept first. Consider a string “this_is_my_school”. Each character of this string is being sat in a placeholder like below:
Character |
t |
h |
i |
s |
_ |
i |
s |
_ |
m |
y |
_ |
s |
c |
h |
o |
o |
l |
Placeholder # |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
We when we refer to the first character of the string, we will be taking about the place holder # 1 that contains “t”, and so forth. This concept will help us understanding the following discussion.