Excel is designed to work with a range of formats including numbers, dates, times and text. There are therefore many formulas which specifically enable the user to analyse and manipulate text type data. This article looks at some of those formulas and explains how to use them.
Excel is designed to work with a range of formats including numbers, dates, times and text. There are therefore many formulas which specifically enable the user to analyse and manipulate text type data. This article looks at some of those formulas and explains how to use them. This is particularly useful when confronted with an output of data from another system that needs to be formatted in order to make it useable for your purposes.
Changing the Case of the Text
If you have text that needs to be converted to lowercase from uppercase or vice versa then there are two handy formulas which allow this as follows:
=Lower()
=Upper()
In the brackets should be the cell that needs converting, for example, =Lower(A3). The formula can be dragged down to automatically convert a list. All text in the cell will be converted to the new requested case. The only problem with this formula is that if, for example, you have a name in a cell then you may want the first letter of each word to be in uppercase and the rest of the letters in lowercase. The formula to achieve this is as follows:
=PROPER(A1)
Joining Text Together
Sometimes there are several different words all in their own column and you need to merge them into one cell. This can be done by use of the following formula:
= CONCATENATE()
Say for example you would like to merge cell A1 and cell B1 with a space in the middle, for example a first name, a space and a surname. To do this, use the following formula:
=CONCATENATE(A1," ",B1)
As you can see, cells can simply be added, while any spaces or additional text can be placed in quotation marks. Up to 30 different things can be concatenated, but if you run out of room then you can concatenate up to the maximum in one field and then complete the remaining in another field and concatenate the two results together.
Checking whether two values are the same
If there are two columns with similar data, it may be that you need to compare them to find either which ones are the same or which ones are different. Do this with the Exact formula as follows:
=EXACT(A1,B1)
If the two cells are the same then the result will be returned as 'TRUE' and if the result is not the same then the result will be returned as 'FALSE.' This can be used on mixed data types.
Changing Text Values To Number Values
It can be problematic when dealing with an output of data that contains values entered in the sheet as text. It may be that you could highlight the column and format all the values as numeric, but on occasion this does not work. To ensure that everything is converted correctly, use the converting formula to convert the text to numbers correctly as follows:
=VALUE()
Simply placing the cell number in the brackets will allow Excel to complete the conversion. This will work when converting values that appear to be values, but will also work on date fields. This is because Excel actually stores dates as numbers.
Returning a specific number of characters in a string
I have often had lists of data that contain reference numbers or ID fields which are similar to my own, but not quite right. In this case I have often found it useful to cut a certain number of characters from the left or the right of the string using the following formula:
=RIGHT(Text, Num_Chars)
The text part is asking you to specify the cell that needs to be cut and the Num_Chars part is asking you to specify how many characters you would like to return in the resulting cell. The following example takes the value in cell A1 and cuts the last 3 cells from the value, placing them in the results cell:
=RIGHT(A1,3)
So if you had a value in cell A1 of 'March_001' then the result would be '001' in the results field. A similar formula can be used to return from the left as follows:
=LEFT(Text, Num_Chars)
There are many more formulas based on text fields within Excel and many different ways in which they are used. If you are interested in learning more then perhaps a professional training course may be useful as a starting point.
You have permission to publish this article for free providing the "About the Author" box is included in its entirety.
Do not post/reprint this article in any site or publication that contains hate, violence, porn, warez, or supports illegal activity.
Do not use this article in violation of the US CAN-SPAM Act. If sent by email, this article must be delivered to opt-in subscribers only.
If you publish this article in a format that supports linking, please ensure that all URLs and email addresses are active links, without the rel='nofollow' tag.
Software Training London Ltd. owns this article. Please respect the author's copyright and above publication guidelines.
If you do not agree to these terms, please do not use this article.
Kansanshi Mining Company Mine Geologist David Kawel'
"You guys are doing a great job so far.with Access course you can solve a major problem in a second...."
ABM Senior HR Adviser Bryony Thorp
"It was great that Caroline asked us if there was anything specific we wanted to learn before we started and we then covered these throughout the day - really great trainer!"
Expleo Technology UK Limited Senior Manager - Legal Rachel Bennett
"Excellent session. Trainer kept us involved and raised interesting topics."