Select a cell or a range.
Click the Home tab.
To center cell contents across selected columns,
click the Merge & Center button arrow.
Click one of the options: Merge & Center, Merge Across, Merge Cells, Unmerge Cells,
To wrap text in a cell, click the Wrap text button.
![To wrap text in a cell, click the Wrap text button. To set multiple alignment options or shrink text to fit in a cell, click the Alignment Dialog Box Launcher.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Control_Flow_Of_Text_In_Cell___To_Wrap_Text_In_Cell_Click_Wrap_Tex.PNG)
To set multiple alignment options or shrink text to fit in a cell,
click the Alignment Dialog Box Launcher.
![The Format Cells dialog box opens and select the Alignment tab.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Control_Flow_Of_Text_In_Cell___The_Format_Cells_Dialog_Box_Opens_A.PNG)
The Format Cells dialog box opens and select the Alignment tab.
Choose Wrap text moves the text to multiple lines within a cell.
![Choose Wrap text moves the text to multiple lines within a cell.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Control_Flow_Of_Text_In_Cell___Choose_Wrap_Text_Moves_Text_To_Mult.PNG)
Or Choose Shrink to fit reduces character size to fit within a cell.
![Or Choose Shrink to fit reduces character size to fit within a cell.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Control_Flow_Of_Text_In_Cell___Or_Choose_Shrink_To_Fit_Reduces_Cha.PNG)
Or Merge cells combines selected cells into a single cell. Click OK.
![Or Merge cells combines selected cells into a single cell. Click OK.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Control_Flow_Of_Text_In_Cell___Or_Merge_Cells_Combines_Selected_Ce.PNG)