FxFormula Drills

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.

Starter sheet for this exercise
RowABCDEF
1ProductRegionUnitsFormula goes in E1. formula
2PenEast10
3BookWest25
4PenWest15

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.

Solve this drill

Practice this formula

Loading the practice grid…

Google Sheets is a trademark of Google LLC. Formula Drills is not affiliated with Google. Excel drills on this site are a separate track.