Select the data. Click the Data tab and click the Group button arrow, and then click Group. Click the Rows or Columns option. Click OK.