SUMIF in Excel: How to Get GROUP BY-Style Totals in a Single Cell
The article explains that Excel's SUMIF function works like a SQL GROUP BY with a WHERE clause, condensed into one cell. Its syntax puts the test range first and the optional sum range last, which can confuse people coming from SQL. For grouped totals, the author suggests listing group names in a column and dragging one formula down, while noting that SUMIFS reverses the argument order and is a frequent cause of wrong totals. The piece warns that text-formatted numbers sum to zero and recommends DATE() for date criteria to avoid locale problems. It advises switching to a pivot table or Power Query beyond roughly five conditions or when multiple measures are needed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in