Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=SUMIFS(C2:C10,B2:B10,E2)=QUERY(A1:C10,"SELECT B, SUM(C) WHERE A IS NOT NULL GROUP BY B LABEL SUM(C) 'Total'",1)Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need the Google Sheets version instead? Open Sheets variant in workspace →
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
No. QUERY is Google Sheets-only and uses the Google Visualization API Query Language. In Excel, use SUMIFS to aggregate by category, or build a PivotTable from the Insert menu.
Yes. SELECT B, SUM(C), COUNT(C), AVG(C) GROUP BY B will give you sum, count, and average side by side in one formula output.
Use an open-ended range like A1:C instead of A1:C10 so QUERY automatically picks up new rows without needing formula changes.
Extract a specific value from a PivotTable using field names and item values as explicit identifiers.
How-toBuild a formula-driven pivot-style cross-tab in Excel or Google Sheets using SUMIFS with mixed references — live totals by row and column without inserting a pivot table.
How-toLearn how GETPIVOTDATA extracts specific values from a pivot table in Excel and Google Sheets, avoiding broken references when the pivot refreshes.
How-toUnderstand how pivot calculated fields work and when to replace them with SUMIFS-based formulas in Excel and Google Sheets for more control and flexibility.
How-toUse SUMIF and SUM to calculate each category's percent of grand total in Excel and Google Sheets — no pivot table required.
How-toGroup and sum transaction data by month using SUMIFS with EOMONTH or TEXT in Excel and Google Sheets — no pivot table needed.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: