Using the Group Rows or Columns Shortcut
Windows keyboard shortcut
Mac keyboard shortcut
This Excel shortcut groups selected rows or columns when whole rows or columns are selected.
Other useful Grid Operation keyboard shortcuts