FormulaCraft

QUERY (Google Sheets)

QUERY is a Google Sheets superpower: filter, group, and sort data with a SQL-style string. There is no direct Excel equivalent — FormulaCraft suggests SUMIFS/FILTER instead when you target Excel.

Excel
=SUMIFS(C:C, A:A, "Sales")
Google Sheets
=QUERY(A:C, "select A, sum(C) where B = 'Sales' group by A", 1)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A:C is the data range.
  2. 2The query string filters where B = Sales and sums C grouped by A.
  3. 31 tells QUERY there is one header row.

Need a version for your data?

Try: “In Google Sheets, sum column C grouped by A where B is Sales using QUERY

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: