Select the columns or rows you want to hide. Select multiple rows or columns by holding down the Shift key and clicking the first and last row or column. You can select rows or columns that are not adjacent by holding down the Ctrl key.
Click Visibility > Hide columns or Visibility > Hide rows.