Function Problems

Excel Formulas for SUM, AVERAGE, MIN, and MAX

Huma Ashraf ChHuma Ashraf Ch Dec 2, 2026 868 views

Question details

The user wants to calculate the total, average, smallest value, and largest value in an Excel range.

Use SUM, AVERAGE, MIN, and MAX Formulas in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Summarizing numeric values in a worksheet using formulas.
Observed behavior
The user needs formulas that return the sum, arithmetic mean, minimum, and maximum of the selected values.
Before you start

Identify the range containing your numbers and choose empty cells outside that range for the results. The examples below use A2:A100; replace it with your actual range.

Solution 1Recommended

Calculate summary values with Excel functions

Use four formulas to summarize the numbers in a worksheet range.

1
Calculate the total

Select an empty cell, enter =SUM(A2:A100), and press Enter.

2
Calculate the average

Select another empty cell, enter =AVERAGE(A2:A100), and press Enter.

3
Find the smallest value

Select an empty cell, enter =MIN(A2:A100), and press Enter.

4
Find the largest value

Select an empty cell, enter =MAX(A2:A100), and press Enter.

Calculate summary values with Excel functions
Check the range: These functions ignore blank cells in the referenced range. If the range contains no numeric values, AVERAGE returns a #DIV/0! error.
Calculate in WPS Spreadsheets

Calculate totals and ranges in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use the same SUM, AVERAGE, MIN, and MAX formulas to summarize your data.

  1. 1. Open your workbook: In WPS Office, open WPS Spreadsheets and select Open to choose your workbook.
  2. 2. Enter the total and average: In two empty cells, enter =SUM(A2:A100) and =AVERAGE(A2:A100), pressing Enter after each formula.
  3. 3. Enter the minimum and maximum: In two more empty cells, enter =MIN(A2:A100) and =MAX(A2:A100), pressing Enter after each formula.
  4. 4. Adjust the range: Select each formula cell and edit A2:A100 in the formula bar if your data is in a different range.
Calculate totals, averages, minimums, and maximums with familiar formulas.Open and edit Microsoft Excel XLS and XLSX files.Use a familiar spreadsheet interface to work with cell ranges.
microsoft office alternative - wps office

Frequently Asked Questions

Do these Excel functions include blank cells?

SUM, AVERAGE, MIN, and MAX ignore blank cells in a referenced range. A cell containing the number zero is included.

How do I use these formulas for a different range?

Replace A2:A100 with your range. For example, enter =SUM(B2:B20) in an empty cell to total the numbers in B2 through B20.

Why does AVERAGE show #DIV/0!?

AVERAGE returns #DIV/0! when the referenced range has no numeric values. Check the range and make sure it contains numbers.

Can I use these formulas in WPS Spreadsheets?

Yes. Open the workbook in WPS Spreadsheets, select an empty cell, and enter the same formulas, such as =MAX(A2:A100).