Excel Counting & Aggregation Functions: Quick Reference

Summary of Functions

FunctionDescription
COUNTCounts the number of cells within the range that have numeric values
COUNTACounts the number of non-empty cells in a range (values can be numbers, text, or dates) (i.e. NOT blank)
COUNTBLANKCounts the number of blank/empty cells in a range
COUNTIFCounts the number of cells meeting a single condition
COUNTIFSCounts number of rows meeting multiple conditions
SUMIFAdds values in a range meeting one condition
SUMIFSAdds values meeting multiple conditions
AVERAGEIFCalculates the average of values meeting a condition

Example Table

NameDepartmentSalesStatus
JohnMarketing100Active
JaneMarketing150Inactive
MikeSales200Active
SaraSales250Active
TomMarketingActive

Basic Counting

COUNT → counts numbers only

=COUNT(C2:C6)  → 4

COUNTA → counts all non-empty cells

=COUNTA(C2:C6) → 4 (counts numeric and text if present)

COUNTBLANK → counts empty cells

=COUNTBLANK(C2:C6) → 1

Conditional Counting

COUNTIF → counts cells that meet one condition

=COUNTIF(B2:B6,"Marketing") → 3
=COUNTIF(D2:D6,"Active") → 4

COUNTIFS → counts cells that meet multiple conditions

=COUNTIFS(B2:B6,"Marketing",D2:D6,"Active") → 2

Conditional Summing

SUMIF → sum values based on one condition

=SUMIF(B2:B6,"Sales",C2:C6) → 450

SUMIFS → sum values based on multiple conditions

=SUMIFS(C2:C6,B2:B6,"Marketing",D2:D6,"Active") → 100

Conditional Average

AVERAGEIF → average values based on a condition

=AVERAGEIF(B2:B6,"Marketing",C2:C6) → 125

Key Takeaways

  • COUNT / COUNTA / COUNTBLANK → basic counting of numbers, non-empty, or blank cells
  • COUNTIF / COUNTIFS → count based on one or more conditions
  • SUMIF / SUMIFS → sum values conditionally
  • AVERAGEIF → average values based on a condition
  • Use these functions for quick data aggregation, reporting, and analytics

Leave a comment