DataGenius BI ← All Guides

Guide • Updated October 2026

How to Summarize Data by Category in Excel (Sum, Average, Count)

A long list of rows is hard to read. A summary adds it up by category, such as sales by region or expenses by month, so the answer is easy to see.

Way 1: A pivot table

Click a cell in your table and choose Insert → PivotTable. Drag the category field to Rows and the number field to Values. See our guide on pivot tables for the full steps.

Way 2: SUMIF, AVERAGEIF and COUNTIF

Use one formula per category:

=SUMIF(A:A, "North", C:C) adds column C where column A says North.

=AVERAGEIF(A:A, "North", C:C) gives the average for North.

=COUNTIF(A:A, "North") counts the rows for North.

Way 3: A summary table in your browser

Upload your file to DataGenius BI and open Summary Table. Pick the column to group by, an optional second column for the table columns, a number column and a calculation: Sum, Average, Count of rows, Smallest or Largest. You get totals for every row and column, and you can download the table as Excel.

Tips

Common questions

What is the quickest way to total by category?

A pivot table or the Summary Table in DataGenius BI handles many categories at once. SUMIF suits a single category.

Why are some groups listed twice?

The spelling differs, for example a trailing space or a different capital letter. Clean the column first.

Why is a value missing from my total?

Numbers saved as text are skipped. Convert them to real numbers first.

Related guides

Got a messy Excel or CSV file?
Check its quality score and clean it in your browser. Free, no signup, and your file is never uploaded.
Try DataGenius BI