Controlling the Flow of Text


Excel offers several ways to control the flow of text within cells . Here are two of the most common text control features:

  • Indent text from the left border of the cell

  • Wrap text to break the text into multiple lines

Using Indents

You might want to indent your text to make it stand out in a column of text or numbers . Using the Detail worksheet in the My Budget workbook as an example, you can indent the Rent, Mortgage, Parking, Condo/Fees, and Misc row headings beneath the row heading Housing. That way, the items under housing stand out and are easier to depict in the column.

In the To Do exercise, you indent data using the Format Cells dialog box and the Increase Indent button on the Formatting toolbar.

To Do: Indent Data
  1. Click the Detail sheet tab. Select cells A4:A6.

  2. Choose Format, Cells. Excel opens the Format Cells dialog box.

  3. Click the Alignment tab. You should see Text Alignment options at the top of the tab.

  4. Click the Horizontal down arrow and choose Left (Indent).

  5. In the Indent box, click the up arrow once. The Indent number changes from to 1 , indicating the indentation will be one character width. Figure 8.8 shows the Indent option on the Alignment tab.

    Figure 8.8. The Indent options on the Alignment tab in the Format Cells dialog box.

    graphics/08fig08.jpg

  6. Click OK. Excel adjusts the text according to the Indent option you chose.

    graphics/lightbulb_icon.gif

    For faster indenting, based on the default of one character width of the standard font (10-point Arial), you can use the Indent tools on the Formatting toolbar. Just click the Increase Indent button to indent a cell entry to the next character width. Click the Decrease Indent button on the Formatting toolbar to move the indented text to the previous character width.


  7. Click any cell in row 4 and insert a new row. Click in cell A4, type Boston , and press Enter.

  8. Click in cell A7, type Web Site , and press Enter. Click in cell A8, type CD , and press Enter.

  9. Select cells A17 through A8.

  10. Click the Increase Indent button on the Formatting toolbar.

  11. Click any cell to deselect the range. Figure 8.9 shows the indented text in column A.

    Figure 8.9. Indented text in a column.

    graphics/08fig09.jpg

Breaking Text into Multiple Lines

Normally, Excel displays all text in a cell on one line. However, you can tell Excel to wrap long lines of text within a cell without changing the width of the cell.

The next To Do exercise lets you try your hand at breaking text into multiple lines.

To Do: Break Text into Multiple Lines
  1. Click cell A30.

  2. Type This detail sales report shows the sales for the first quarter for Boston .

  3. Press Enter.

  4. Click cell A30 to select the cell that you want to break into multiple lines.

  5. Choose Format, Cells. Excel opens the Format Cells dialog box.

  6. Click the Alignment tab. You should see Text Control options at the bottom left on the tab.

  7. Click the Wrap Text check box.

  8. Click OK.

  9. Click any cell to deselect the range. Excel wraps the text from one line to the next within the cell, as shown in Figure 8.10.

    Figure 8.10. Wrapping text on multiple lines.

    graphics/08fig10.jpg



Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours
Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours (Sams Teach Yourself in 24 Hours)
ISBN: 1435276337
EAN: 2147483647
Year: 2003
Pages: 279
Authors: Trudi Reisner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net