FxFormula Drills

Premium Google Sheets drill · QUERY

QUERY the East rows

Practice a Google Sheets QUERY where clause that keeps East rows. Text inside the query is case-sensitive.

A1:C5 lists products, regions, and units. Inside QUERY, text comparisons are case-sensitive, unlike a normal Sheets equals test.

In E1, select product and units where the region is East. Keep the header row.

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
5ClipEast8

Hint

The where clause uses single quotes around East: where B = 'East'.

Explanation

where B = 'East' keeps Pen and Clip. The query language matches East exactly, so 'east' would not count. The header stays above the two rows.

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.