|
Excel Index and Search Tool (Click
on the buttons below) |
Excel Lesson 29 de 30: Microsoft Excel Text Functions Microsoft offers you 24 Excel functions in the Text category. Of them 10 are interesting and here they are. Below you will find tips on text functions, examples of basic formulas using a single function, examples of formulas using more than one function and exercises. |
Excel Text Functions | What it Does |
CONCATENATE | Joins several text items into one text item |
FIND | Finds one text value within another (case-sensitive) |
LEFT | Returns the leftmost characters from a text value |
LEN | Returns the number of characters in a text string |
MID | Returns a specific number of characters from a text string starting at the position you specify |
REPT | Repeats text a given number of times |
RIGHT | Returns the rightmost characters from a text value |
TEXT | Formats a number and converts it to text |
TRIM | Removes spaces from text |
VALUE | Converts a text argument to a number |
To Concatenate: To assemble strings of text. When you concatenate the result is always in text format even if your are concatenating numbers. For example: if you have 1 in cell A1 and 2 in cell A2 the formula =A1+A2 will return 3. If instead of the plus sign (+) you use the ampersand (&) the formula =A1 & A2 will return 13 because concatenating is not adding it is creating a chain of characters with the content of many cells. The result 13 is not even a number with which you could execute calculations it is a text just like Peter. The TEXT functions in Excel are great "Time Saving" tools. When you have data that you receive from colleagues, clients or suppliers, when you download data from a database or the Internet and the format is not right for you, you need to RE-ENTER the data manually and this task is time consuming, error prone and very frustrating. The TEXT functions will allow you to do the reformatting automatically. I have developed hundreds of spreadsheets to convert data and make them usable within Excel. I have also developed spreadsheets to convert large quantities of Excel data into a format uploadable in large databases (Oracle, Sybase, SQL Server...) or ERP systems (JDEdwards, SAP, PeopleSoft, SmartStream...) as batch files. Excel is a great translator to move data from one system to the other. You download data from system A, convert and either use it in Excel or upload in system B. |
|||||||||||||||||||||||
Basic Excel Formulas using TEXT Functions CONCATENATE and the
ampersand (&) FIND
or SEARCH
LEFT,
RIGHT, MID
LEN REPT TEXT TRIM VALUE |
|||||||||||||||||||||||
1
- The surname is in cell A1, the first name is in cell B1 and in
cell C1 you want both of them separated by a comma and a space.
The formula in cell C1 is: 2
- You download data from a database and what
you have in cell A1 "Peter "
with five spaces at the end and in
B1 "Clark "
with five spaces at the end.
What you want in C1 is "Peter Clark". The formula in C1
is: 3
- In cell A1 you have a serial number (SKU). The SKU is built like this: a letter then 3 digits for the style,
three digits for the color and three digits for the print. For example
A305888765 means product "A" with style number "305",
color "888" and print "765". In cell B1 you
just want the color. The formula in B1 will look like this: |
|||||||||||||||||||||||
1- You receive data with both surname and first name separated by a comma and a space in a single cell. You want them separated in two cells. Clues:
2- You receive data where the complete name appears in a single cell. You want the initial, a period, a space and the surname. Clues:
3- My client's SKU's are built like this: a letter then 3 digits for the style, three digits for the color and three digits for the print. For example A305230765 means product "A" with style number "305", color "230" and print "765". They bought another company producing the same kind of goods but their SKU's are built like this: a letter then 2 digits for the color, three digits for the print and three digits for the style. For example A23486235 means product "A" with color number "23", print "486" and style "235". They need to get both databases unified and want to change the other company's SKU's to be the same as theirs style/color/print. We will add a "0" to the color code. Clues:
4- You have three pieces of information in columns A, B and C. You want to upload them in the central database but the database administrator tells you that the system will only accept a single string of characters where the first field is 10 characters long justified to the left with spaces as filler, the second field is 20 characters long justified to the left with spaces as filler and the third field is 8 characters long justified to the right with zeros as filler with NO decimal point. Clues:
|
Excel Index and Search Tool (Click
on the buttons below) |
|