Premium Google Sheets drill · QUERY
QUERY two columns
Practice Google Sheets QUERY select to return the product and units columns, including the header row.
A1:C4 is a small product table with a header row. QUERY column A means the first column of the range you pass in.
In E1, select columns A and C and keep 1 header row. The result should spill from E1.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| 1 | Product | Region | Units | Formula goes in E1. formula | ||
| 2 | Pen | East | 10 | |||
| 3 | Book | West | 25 | |||
| 4 | Pen | West | 15 |
Hint
The query text is "select A, C" inside double quotes.
Explanation
select A, C returns Product and Units and drops Region. With a header count of 1, the labels stay on the first result row and the three products follow.
The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.