Excel library

Excel Formulas to Count and Sum

Counting and summing formulas answer the most common spreadsheet questions: how many, and how much. COUNTIF and SUMIF handle a single condition; COUNTIFS and SUMIFS take several, such as a region and a date range together.

Unique and duplicate values need a different approach. In Microsoft 365, UNIQUE and FILTER do most of the work; in older versions, SUMPRODUCT and COUNTIF combinations do the same job.

The tutorials below cover conditional counts and sums, unique values, duplicates across columns, counting text and characters, and totals across several sheets.

Start here

More in Count & sum