Sort & filter BigQuery data in Google Sheets

You can sort and filter billions of rows of BigQuery data in Google Sheets so it's easier to work with.

Important: To access BigQuery data in Google Sheets, you need access to BigQuery. Learn how to get started with BigQuery.

Sort & filter the preview tab

Sort your data

  1. On your computer, open a spreadsheet in Google Sheets that is connected to BigQuery data. Learn how to connect to BigQuery data.
  2. At the top of a column, click Filter Filter list.
  3. Choose whether you would like that column sorted in ascending or descending order. This sorts both text and numbers.
  4. Click Ok.
  5. At the bottom left of the sheet, click Apply.

Add a filter by condition

  1. On your computer, open a spreadsheet in Google Sheets that's connected to BigQuery data.
  2. At the top of a column, click Filter Filter list.
  3. Under “Filter by condition,” click the Drop-down Down arrow and choose your condition. 
  4. Click Ok.
  5. At the bottom left of the sheet, click Apply.

Add a filter by value

  1. On your computer, open a spreadsheet in Google Sheets that’s connected to BigQuery data.
  2. At the top of a column, click Filter Filter list.
  3. Under “Filter by value,” click Add filter.
    • Tip: BigQuery grabs the top 500 values, which may take a few seconds.
  4. When the values and their frequencies load in the sidebar, check the values that you want to use.
  5. Click OK.
  6. At the bottom left of the sheet, click Apply.

You can also filter by selected cell value:

  1. On your computer, open a spreadsheet in Google Sheets that’s connected to BigQuery data.
  2. Right-click on a cell value that you want to filter.
  3. Click Filter by cell value.
  4. At the bottom left of the sheet, click Apply.

Tip: You can also filter by selected cell value on an extract.

Sort & filter your pivot table, extract, & chart

Sort your pivot table, extract, & chart

Filter your pivot table, extract, & chart

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

5861388059496908718
true
Search Help Center
true
true
true
true
true
35
false
false
false
Search
Clear search
Close search
Main menu