0
0
Google Sheetsspreadsheet~5 mins

SELECT clause in Google Sheets - Step-by-Step Guide

Choose your learning style9 modes available
Introduction
The SELECT clause in Google Sheets is used inside the QUERY function to choose which columns of data you want to see. It helps you pick only the information you need from a larger table, making your data easier to read and analyze.
When you want to show only the names and prices from a product list without all other details.
When you have a sales table but only want to see the sales amounts and dates.
When you want to create a summary table that includes just specific columns from a big dataset.
When you need to filter out unnecessary columns before sharing data with others.
When you want to rearrange columns by selecting them in a different order.
Steps
Step 1: Click
- a blank cell where you want the result
The cell is ready for you to type a formula
Step 2: Type
- the formula bar
You start entering the QUERY formula
💡 Start with =QUERY(
Step 3: Select
- the range of your data inside the formula
The data range is included in the formula
💡 Example: A1:D10
Step 4: Type
- the formula bar after the range
You add the SELECT clause inside quotes
💡 Example: "SELECT A, C" to pick columns A and C
Step 5: Close
- the QUERY formula with a parenthesis
The formula is complete and ready to run
Step 6: Press
- Enter key
The selected columns from your data appear in the cell and below
Before vs After
Before
A table with columns: Name, Category, Price, Stock with all data visible
After
A new table showing only the Name and Price columns from the original data
Settings Reference
Data range
📍 First argument of QUERY function
Defines which data the QUERY function will look at
Default: None
Query string
📍 Second argument of QUERY function
Specifies which columns to show and how to filter or sort data
Default: None
Headers
📍 Third argument of QUERY function
Tells QUERY how many header rows your data has
Default: 1
Common Mistakes
Using column letters without quotes in the SELECT clause
The QUERY function requires the SELECT clause to be a text string inside quotes
Write the SELECT clause inside double quotes, like "SELECT A, B"
Selecting columns that are outside the data range
QUERY cannot select columns that are not in the specified range, causing errors
Make sure the data range includes all columns you want to select
Forgetting to close the QUERY formula with a parenthesis
This causes a formula error and no result is shown
Always end the formula with a closing parenthesis )
Summary
The SELECT clause in QUERY lets you pick specific columns from your data.
You write the SELECT clause inside quotes, using column letters like A, B, C.
Make sure your data range includes all columns you want to select.