Back to Blog

AVERAGE, SUM, and COUNT Functions in Excel: Complete Guide with Examples | SheetXAI

D
David DeSouza
Dec 1, 2025
Vector illustration showing a tablet with pie and bar charts, a clipboard with data grid, and a smartphone, representing statistical calculation functions for analyzing data ranges

The Problem

You have a list of sales numbers in column A and need to find the total sales, average sales, and count how many sales there are. These are the most basic calculations you'll do in Excel.

The Easy Way: Use SheetXAI

If you don't want to mess with formulas, the fastest way to do this is simply by asking.

With SheetXAI, you can open the sidebar and type:

Calculate the sum, average, and count of all values in column A.

SheetXAI will instantly write the formula or script for you and fill the cells. It handles the syntax so you can focus on the result.

The Manual Way: The Formulas You Need

To do this manually, you need to use: SUM, AVERAGE, or COUNT.

1. SUM

Adds all the numbers in a range of cells. Returns the total of all numeric values.

Syntax: =SUM(number1, [number2], ...)

  • number1: The first number or range to add.
  • [number2]: Additional numbers or ranges to add (optional, can add many).

Example: SUM(A1:A100) adds all numbers in cells A1 through A100.

2. AVERAGE

Calculates the average (mean) of a range of numbers. Adds all numbers and divides by the count.

Syntax: =AVERAGE(number1, [number2], ...)

  • number1: The first number or range to average.
  • [number2]: Additional numbers or ranges to average (optional).

Example: AVERAGE(A1:A100) calculates the average of all numbers in cells A1 through A100.

3. COUNT

Counts how many cells in a range contain numbers. Ignores text and blank cells.

Syntax: =COUNT(value1, [value2], ...)

  • value1: The first value or range to count.
  • [value2]: Additional values or ranges to count (optional).

Example: COUNT(A1:A100) counts how many cells in A1:A100 contain numbers.

Understanding the Logic

  1. SUM: Adds all numbers together. Use when you need a total.
  2. AVERAGE: Calculates the mean (sum divided by count). Use when you need the typical or central value.
  3. COUNT: Counts how many cells have numbers. Use when you need to know how many data points you have.

Key differences:

  • SUM: Total of all values
  • AVERAGE: Total divided by count (the mean)
  • COUNT: Just counts how many numbers exist (ignores text and blanks)

Common use cases:

  • SUM: Total sales, total expenses, sum of hours
  • AVERAGE: Average score, mean temperature, typical value
  • COUNT: Number of transactions, count of entries, data points

The Final Formula:

=SUM(A:A)

Conclusion

Now you know the "classic" way to solve this using formulas. It's a great skill to have.

But for those times when you just want the job done without the mental math, SheetXAI is there to help.

Boost your productivity today.
Start automating your spreadsheets.

Join thousands of professionals saving hours every week. No credit card required to start.

Learn more