Formulas > =QUERY()

How to Use QUERY() in Google Sheets

Description

Runs a Google Visualization API Query Language query across data.

How To Actually Use QUERY() in Sheets

QUERY(data, query, [headers])

Try QUERY yourself

Use the QUERY function to select all data from the range A1:C10. Your formula should return all rows and columns.

Hints (2)

2 Better Sheets Tutorials

Make Unsplash in a Google Sheet w/ BuyMeACoffee - Part 1

Make Unsplash in a Google Sheet w/ BuyMeACoffee - Part 1

Create a photo search site inside with Google Sheets. Using this template you can empower users to: Enter a search term and get an image without leaving the sheet! And learn how to monetize this Google Sheet.
QUERY()
Kristy Asks How to Get Percentages from Scores

Kristy Asks How to Get Percentages from Scores

How to figure out a percentage score when our reporting numbers are a formatted in a particular way. In this case we have a score and then a slash and then the total possible score in a single cell. We go through each option of solution and try to derive a solution that is both useful in the exact situation and possibly useful for other problems too.

We find that the Query formula and other solutions are inflexible or time intensive. We want a solution that does actually solve the problem at hand, in a quick way, and also is easy to edit and flexible to solve other problems.
ARRAYFORMULA() IF() INDEX() ISBLANK() LEFT() +3 more

Learn more about the QUERY() formula:

Generate a QUERY() formula for your needs

Describe your task in plain English and get a paste-ready formula that uses QUERY(). 2 free AI generations, no signup. Members get unlimited use.

Generate a QUERY() formula