To the right side of the table (I’ve used cell G1) type the following Google Sheets QUERY function using the named range notation:Īs always, excellent work! Thank you for putting together such well documented tutorials. The statement SELECT * retrieves all of the columns from our data table. In the first input box, enter a name for your table of data so you can refer to it easily. Select your data range and go to the menu:Ī new pane will show on the right side of your spreadsheet. If you’re new to named ranges, here’s how you create them: Feel free to use the named range “countries” too, which already exists in the template. In this tutorial, I have used a named range to identify the data, which makes it much easier and cleaner to use in the QUERY function. This is what our starting data looks like:
If you want to follow along with the solutions, please make a copy of the Google Sheet template above.
If you right-click the link and open it in an Incognito window you’ll be able to see it. If you can’t access the template, it might be because of your organization’s Google Workspace settings. Learn more about the QUERY Function in my newest course: The QUERY Function in Google Sheets Google Sheets QUERY Function Templateįeel free to make a copy: File > Make a copy…