Skip to content

Filter column window

The window at the filter button in a column header: it sorts the table and sets which rows to show — by values, by colour or by condition. How to create a filter and which rows get into it is on the page Sheet filter.

  1. Press the filter button in a header cell, or stand on this cell and press Alt+↓. The window opens under the button (if there is little room below — above it; it never goes left of the edge of the table).
  2. The top row is sorting; it works at once and closes the window. A → Z and Z → A sort the rows under the header. The button with the sort icon and an arrow (Sort by color) → Fill color or Text color → a colour: the rows of this colour move to the top, the others keep their order.
  3. Below are three tabs: By values, By color, By condition. The window opens on the tab where the column already has a filter (a condition — By condition, only a colour — By color), otherwise on By values. A tab with a filter set has a dot in its corner. From the keyboard, tabs are switched with the ← and → arrows, Home and End.
  4. By values: a search field (its sample is the first value of the list), under it, in a frame, the All (X/Y) checkbox and Invert, and below them the values with the number of rows in brackets, for example “Moscow (2)”. Clear the checkboxes of the values you want to hide. Y is how many rows all values of the list have, X — the checked ones; if only some are checked, the All checkbox shows a dash. All and Invert act only on the values found by the search.
    • The list has the values of the rows that are not hidden by the filters of other columns; values hidden by this column stay in the list unchecked.
    • The order is numbers by size, then text in the alphabetical order of the interface language (in Russian, Cyrillic before Latin), (Empty) at the end.
    • A long list is shown in portions of 200; the next one comes with the More button. A long value is cut with an ellipsis, and the full text is in the tooltip.
    • A value that someone types later stays visible: only the cleared values are hidden.
  5. By color: None (a crossed-out square), then the Fill color and Text color groups — a fill square or a letter “A” in the text colour, and the name of the colour. Choose one colour: the rows where the cell of this column has this colour stay. None removes the colour filter. The list has the colours of the rows that are not hidden by other columns.
  6. By condition: choose a Condition and fill in Value (Is between and Is not between also have Second value):
    • Is empty, Is not empty;
    • Text contains, Text does not contain, Text starts with, Text ends with, Text is exactly;
    • Date is, Date is before, Date is after and under them Today, Tomorrow, Yesterday, In the past week, In the past month, In the past year or Exact date (the sample in the field is today’s date);
    • Greater than, Greater than or equal to, Less than, Less than or equal to, Is equal to, Is not equal to, Is between, Is not between;
    • Data is valid, Data is invalid — whether the cell passed its data validation rule;
    • Custom formula is — a formula for the first data row, for example =B2>100; for the other rows the references shift by themselves. A row stays if the formula gives TRUE. The Value field shows a sample from this column; for Custom formula is — a ready formula with the address of the first data cell. Enter in the field works like OK.
  7. On the By color and By condition tabs, under the choice, there is Rows: X of Y — how many rows stay visible with all filters after OK. The count changes at once, as you choose.
  8. The bottom of the window:
    • Reset removes the filter of this column — values, colour and condition — and closes the window; if the column has no filter, the button is inactive;
    • Cancel, Escape and a click outside the window close it without changes;
    • OK applies the values, colour and condition together. It also checks again the rows added under the filter after the previous setup — even if you changed nothing. Sorting from the window applies the filter again too.
  9. On a low screen the window scrolls, and Reset, Cancel and OK stay at the bottom. On a phone, the same window slides up as a sheet from the bottom; to close it, pull the sheet down or tap the dimmed background.
  • Sorting from the window changes the order of rows for everyone, even with a personal filter view switched on.
  • Sorting does not work if the filter range has merged cells.
  • If there are no visible rows under the header, Sort by color is inactive, and the By color tab has only None. A cell without fill counts as white, a cell without text colour — as black.
  • One colour per column: either fill or text.
  • A condition value is up to 500 characters. The list of values is shown in portions of 200.
  • Text conditions do not tell capital letters from small ones, Text is exactly too. A condition is compared with how the cell looks in Russian and in English: “1,5” and “1.5”, “ИСТИНА” and “TRUE” select the same rows.
  • Today, Yesterday and the other dates are counted in Coordinated Universal Time (UTC), like the TODAY function.
  • You cannot export the count of values to a sheet. A filter set in the window is visible to everyone; for a filter only for yourself there are filter views in Spreadsheet data.
What you see on the screen Why What to do
Enter a value A condition without a value; Is between and Is not between — without the second one Fill in the fields
Enter a date Exact date is not recognized Type the date as in the sample
Check the formula (the window switches to By condition by itself) The formula in Custom formula is cannot be parsed Fix the formula
Unmerge cells to sort The filter range has merged cells Unmerge them
No values in the list The search found nothing, or there are no rows under the header Change the search text
Reset cannot be pressed This column has no filter Nothing: there is nothing to reset
A row is visible though it does not match the filter It was added after the filter was set up Press OK