Dealing With Text in Excel

Dealing with text in Excel is essential. Generally Excel worksheets won’t contain figures, formulas and processes but additionally text. For instance when we enter data about employees or students inside a class, we’d certainly enter names, addresses, phone figures, emails, etc. We will be able to manipulate such data. Let us say, we’ve names joined into our Excel sheet as full names and we have to separate the entire names into first and last names. Or, we’ve emails and we want to compare these addresses with data within our database. We sometimes might have the foremost and last names in separate Excel worksheet cells so we might need to bring the name and surname together. Exactly how should we do such text manipulations in Excel? The functions that people should know are:

‘=LEFT(text,quantity of figures in the left)’

Example: We want to extract the name from the complete name like ‘Tom Hawkins’. We’d make use of the formula like ‘=LEFT(B1,3)’ where B1 may be the Excel cell containing the name. Similarly we’re able to extract the surname by utilizing ‘=RIGHT(B1,7)’. To date so great. What happens if there exists a listing of , say, the next names: ‘Tom Hawkins’, ‘Hari Malhotra’ and ‘Dick Chenney’.

We would need to write the formulas 3 occasions each to accomplish the written text extraction! Can there be an simpler way to avoid it? Yes!

The functions ‘length’ and ‘find’ come up here. The part ‘=length(text)’ finds the amount of figures within the name. The part ‘=find(text_in_text’,text)’ finds, for instance, the ‘space’ between the foremost and the surname. Then mixing the above mentioned four functions ‘left’, right’,’find’ and ‘length’ correctly, we’re able to easily create formulas that will allow us to to extract the data without getting to repeat the formulas for each name.

We’re able to write the next formulas to extract the name and also the surname:

‘=left(text,find(” “,text)-1)’

‘=right((text),(len(text)-find(” “,text)))

The very first function extracts the figures to the space between the foremost and the surname in the left. Because the ‘space’ also will get incorporated we subtract ‘1’ to obtain the correct result.

The 2nd function is slightly intricate. Here we want to obtain the surname so we extract in the right. And then we find the size of the name and take away the integer that people achieve with a home ‘find’ function to finally obtain the exact quantity of figures in the right.

There are more intriguing and simple to use text functions like ‘mid’, ‘proper’, ‘exact’, ‘trim’, concatenate and ‘instr’. Obviously, you may create an Excel macro to complete the above mentioned, if you want to perform such manipulations regularly inside your Excel worksheet.

Anyone that masters using Microsoft Excel for at least one year can come up for excel macro courses. This training can prove to be beneficial if you have the task of reporting data by manipulating it and presenting a good picture in front of the internal and external stakeholders.

May 2018
« Apr