Skip to content

Data in the spreadsheet: sorting, filters and tools

The Spreadsheet data menu (the funnel button on the toolbar; on a narrow screen, under More tools) changes the order and visibility of rows: sorting, turning on a filter, personal filter views, data cleaning, subtotals, groups, and freezing and hiding of rows and columns.

  1. Stand in a cell of the column you need, or select a range. If you stand in one cell, the menu works with the whole filled area of the sheet; if you selected a range, it works with that range. The column for sorting and splitting text is the one where the cursor is.
  2. Open Spreadsheet data. The items are grouped into Sort, Filter, Data cleanup and Rows and columns. On the right of an item you can see what it will apply to: for sorting, the column and rows (“C, rows 2–15”); for Create a filter and Remove filter, the filter range; for Remove duplicates…, Trim spaces and Subtotals…, the range; for Split text into columns…, the column; for Filter views, the name of the view that is on.
  3. Headers in row N (N is the first row of the area) is a tick: with it, the first row stays in place when sorting, removing duplicates and adding subtotals. The rows shown next to sorting change at once. The same tick with the same name is in the By several columns, Remove duplicates and Subtotals windows; it is one setting.
  4. Sort A → Z and Sort Z → A sort by the cursor column. The items are inactive if the cursor is left or right of the filled area, or there are fewer than two rows under the header. For several columns, use By several columns…: in the By several columns window the range is shown in small type next to the title; First by, then by, Add level, and then Sort.
  5. Create a filter turns on a filter on the range shown on the right, and Remove filter removes it, like the items with the same names in the cell menu. Conditions, values and colour are set with the buttons in the header of the area — see Sheet filter.
  6. Filter views: enter a name in Save current filters as and click Save (the button is available when the sheet has at least one column filter). Everyone sees the list of views, but a view is switched on only for you: a click on its name switches it on, Turn off filter view switches it off, and × deletes it. While a view is on, the filter buttons, Create a filter and Remove filter change the view.
  7. Split text into columns… works on the cursor column: choose a Separator (Automatic, Comma, Semicolon, Tab, Vertical bar or Space), look at the preview, and click Divide. If there is data on the right, the window shows how many cells will be overwritten.
  8. Remove duplicates…: tick Columns for comparison, then click Remove duplicates. Letter case and spaces at the edges are not taken into account. The first row of the repeats stays, and empty rows are not removed.
  9. Trim spaces removes spaces at the edges of the text and double spaces inside it.
  10. Subtotals… (in the Rows and columns group): the group column (With every change in), the Function (Sum, Count, Average, Maximum or Minimum), and the columns in Add totals by, then Add totals. The data is sorted by the group column. A total row appears after each group, and a grand total at the end. The groups are collapsed with the buttons to the left of the row numbers. Row labels are in the interface language of the person who added the totals: “ Total”, “ Count”, “ Average” and so on. At the end: Grand Total, Grand Count, Grand Average, Grand Max and Grand Min. A group without a value is labelled (blank).
  11. Freeze ▸: No rows, 1 row, 2 rows, Up to row N (present when the cursor is in rows 3–10); below them, No columns, 1 column, 2 columns, Up to column X (cursor in columns C–J). The current freeze has a tick; No rows and No columns remove the freeze.
  12. Group ▸: Row 2 or Rows 2–3, Column B or Columns B–D, by the selection. Ungroup (present when the sheet has groups) removes the groups in the selected rows and columns.
  13. Hide ▸: the same Row… and Column… items by the selection; Show all rows and columns brings everything back (inactive if nothing is hidden).
  14. If an action fails, the menu stays open and shows the error. Any action of the menu is undone with Ctrl+Z, except switching on a filter view: that is personal.
  • The menu is available only to those who can edit the spreadsheet. In view mode it is absent.
  • You can freeze up to 10 rows and up to 10 columns.
  • No more than 50 filter views per sheet, and a view name can be up to 100 characters.
  • Subtotals: up to 190 groups, and the sheet must not grow beyond 99 999 rows after rows are inserted.
  • Groups can nest up to 8 levels. Groups for rows or columns: up to 500.
  • Splitting text does not go beyond the 999th column. The preview shows the first 10 rows.
  • Sorting, removing duplicates and totals do not work over merged cells.
  • You cannot hide all the rows or all the columns of a sheet.
What you see on the screen Why What to do
Unmerge cells before sorting The range has merged cells Unmerge them, or select a range without them
Unmerge cells in the range The same happens when removing duplicates The same as above
Unmerge cells at the freeze boundary A merge crosses the freeze line Unmerge it, or freeze a different number of rows
Leave one visible row and column An attempt to hide everything Hide less
Column D: nothing to split. Put the cursor in a column with text (in the split window; Divide is unavailable) The cursor column has no text with a separator under the header, there are no rows, or the parts would go beyond the 999th column Put the cursor in a column with text, or choose another Separator
Enter a title for the view, or No more than 50 views An empty name, or the limit has been reached Enter a name, or delete an extra view
Too many groups or rows for totals There are more than 190 groups, or the sheet would grow beyond 99 999 rows Reduce the range
Select a column with groups and at least one value column without merged cells The totals columns are not selected, or merges get in the way Tick a value column, and unmerge the cells
No more than eight nesting levels A ninth level of groups Ungroup the outer level
No extra spaces found, No duplicates found There is nothing to change No action needed