Select the cells, and then click the Merge Cells or Split Cells button in the Merge group on the Layout tab.