Skip to content

Sort, filter & chart your data in Google Sheets

Updated For Google Workspace

Sort, filter & chart in Sheets (0:48)

Sorting, filtering and charts help you make sense of lists such as sales, stock or customer records. Before you start, give each column a heading in row 1 and freeze it with View → Freeze → 1 row.

Sorting puts rows in order, for example from the highest sale to the lowest.

  1. Select the cells you want to sort, including the heading row.

  2. Click Data → Sort range → Advanced range sorting options.

    Data → Sort range with Advanced range sorting options highlighted

  3. Tick Data has header row so the headings stay at the top.

    Sort range box with Data has header row ticked

  4. Choose the column to sort by and the order (A to Z or Z to A). Click Add another sort column to sort by a second column as well.

    Sort by column and order set to Z to A

  5. Click Sort.

    Sort range box with the Sort button

To sort the whole sheet by one column, right-click the column letter at the top and choose Sort sheet A to Z or Sort sheet Z to A.

A filter hides the rows you do not need, for example to show only one salesperson or one month.

  1. Select your data, including the heading row.

  2. Click Data → Create a filter. A filter icon appears in each heading.

    Data menu with Create a filter highlighted

  3. Click the filter icon in the column you want to filter.

    Filter icon in a column heading

  4. Choose how to filter:

    • Filter by values: untick the values you want to hide.
    • Filter by condition: for example, show only numbers greater than 1,000.
    • Filter by color: show only cells of a certain text or fill colour.

    Filter options with Filter by color, Filter by condition and Filter by values

  5. Click OK.

    A value unticked and the OK button

The bottom right of the sheet shows how many rows are displayed. To remove the filter, click Data → Remove filter.

Use a filter view that only changes your screen

Section titled “Use a filter view that only changes your screen”

A normal filter changes the sheet for everyone who has it open. A filter view lets you filter for yourself without disturbing your colleagues.

  1. Click Data → Create filter view.

    Data menu with Create filter view highlighted

  2. Sort and filter the data as above.

  3. To keep the view for next time, click Save View at the top right, then Save.

    Filter view bar with Save view highlighted

    Save view box with a sample name and the Save button

To open a saved view later, click Data → Change view and pick it. Click Close at the top right to return to the full sheet.

Google Sheets suggests a chart type based on your data, and you can change it afterwards.

  1. Select the data for the chart, including the headings. For example, months in column A and sales in column B.

  2. Click Insert → Chart. The chart appears with the Chart editor on the right.

    Insert menu with Chart highlighted

  3. On the Setup tab, choose a Chart type, such as a column, line or pie chart.

    Chart editor Setup tab with Chart type

  4. On the Customize tab, click Chart & axis title to add a title.

    Customize tab with Chart & axis titles open and a sample title

  5. Close the Chart editor when you are done. Drag the chart to move it, or drag the blue corners to resize it.

    Finished column chart on the sheet

The chart updates by itself when the numbers change. To edit it later, double-click it. To analyse data or build formulas with AI, see Gemini in Google Sheets.

WhatsApp our support team at +60 16-916 3324.

Common issues

When I filter, my colleagues see the filtered sheet too. How do I stop that?

A normal filter changes the view for everyone. Use Data → Create filter view instead. A filter view only changes what you see, so others can keep working on the full list.

Create a filter is greyed out. Why?

Check for merged cells or hidden rows and columns in your data and undo them. Rules under Format → Conditional formatting or Data → Data validation can also block it. If you only have view access, use a filter view instead.

My chart does not include new rows I added. How do I fix it?

Double-click the chart, go to Setup and change Data range so it covers the new rows. Tip: set the range to the whole column, such as A1:B1000, so new rows are included automatically.

Was this article helpful?

Cookie settings

We use Google Analytics to see which guides help and where readers get stuck. It is on by default; you can turn it off. Your choice is saved on this device.