18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating Formulas That<br />

Manipulate Text<br />

Excel is, of course, best known for its ability to crunch numbers. It’s also<br />

quite versatile, however, with handling text. As you know, you can enter<br />

text for such things as row and column headings, customer names and<br />

addresses, part numbers, and just about anything else. In addition (as you may<br />

expect), you can use formulas to manipulate the text contained in cells.<br />

This chapter contains many examples of formulas that use a variety of functions<br />

to manipulate text. Some of these formulas perform feats that you may not have<br />

thought possible.<br />

A Few Words About Text<br />

When you enter data into a cell, Excel immediately goes to work and determines<br />

whether you’re entering a formula, a number (including a date or time), or anything<br />

else. That “anything else” is considered text.<br />

You may hear the term string used instead of text. You can use<br />

NOTE<br />

these terms interchangeably. Sometimes they even appear<br />

together, as in text string.<br />

IN THIS CHAPTER<br />

How Excel handles text entered<br />

into cells<br />

Excel’s worksheet functions that<br />

handle text<br />

Examples of advanced text<br />

formulas<br />

How many characters in a cell?<br />

A single cell can hold up to 32,000 characters. To put things into perspective,<br />

this chapter contains about 31,690 characters. How do I know that? I copied the<br />

entire chapter and pasted it into a single cell. Then I used the LEN function to<br />

count the characters. I certainly don’t recommend putting that much text into a<br />

cell. Performance is extremely sluggish, and it’s very likely that Excel will crash.<br />

205

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!