18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Worksheet Formatting 7<br />

The Shrink To Fit option reduces the size of the text so that it fits into the cell without spilling over to the<br />

next cell. Usually, it’s easier to make this adjustment manually.<br />

NOTE<br />

If you apply Wrap Text formatting to a cell, you can’t use the Shrink To Fit formatting.<br />

Merging worksheet cells to create additional text space<br />

Excel also enables you to merge two or more cells. When you merge cells, you don’t combine the contents<br />

of cells. Rather, you combine a group of cells into a single cell that occupies the same space. The worksheet<br />

shown in Figure 7.6 contains four sets of merged cells. For example, range C2:I2 has been merged into a<br />

single cell, and so has range J2:P2. In addition, ranges B4:B8 and B9:B13 have also been merged. In the latter<br />

two cases, the text direction has been changed (see “Displaying text at an angle,” later in this chapter).<br />

FIGURE 7.6<br />

Merge worksheet cells to make them act as if they were a single cell.<br />

You can merge any number of cells occupying any number of rows and columns. In fact, you can merge all<br />

17,179,869,184 cells in a worksheet into a single cell. However, the range that you intend to merge should<br />

be empty except for the upper-left cell. If any of the other cells that you intend to merge are not empty,<br />

Excel displays a warning. If you continue, all the data (except in the upper-left cell) will be deleted. To<br />

avoid deleting data, click Cancel in response to the warning.<br />

You can use the Alignment tab in the Format Cells dialog box to merge cells, but using the Merge And<br />

Center control on the Ribbon (or on the Mini toolbar) is simpler. To merge cells, select the cells that you<br />

want to merge and then click the Merge And Center button. This button acts as a toggle. To unmerge cells,<br />

select the merged cells and click the Merge And Center button again.<br />

After you’ve merged cells, you can change the alignment to something other than Center.<br />

Displaying text at an angle<br />

In some cases, you may want to create more visual impact by displaying text at an angle within a cell. You<br />

can display text horizontally, vertically, or at an angle between 90 degrees up and 90 degrees down.<br />

The Home ➪ Alignment ➪ Orientation drop-down lets you apply the most common text angles. But for<br />

more control, use the Alignment tab of the Format Cells dialog box. In the Format Cells dialog box, use the<br />

Degrees spinner control — or just drag the pointer in the gauge. You can specify a text angle between –90<br />

and +90 degrees.<br />

Figure 7.7 shows an example of text displayed at a 45-degree angle.<br />

117

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

Saved successfully!

Ooh no, something went wrong!