Returns the arithmetic mean (average) of a set of numbers. Calculates the sum of values divided by the count of values. Essential for data analysis, statistical calculations, reporting, and understanding central tendency in datasets.
Master the fundamentals of Excel AVERAGE function
The AVERAGE function returns the arithmetic mean of a set of numbers. It calculates the sum of all numeric values divided by the count of numeric values. Formula: AVERAGE = SUM(values) / COUNT(values). AVERAGE ignores text values, logical values (TRUE/FALSE), and empty cells. It is one of the most important measures of central tendency in statistics, representing the typical value in a dataset. Essential for data analysis, reporting, statistical calculations, quality control, and performance measurement.
Sum divided by count
Only counts numeric values
Accepts up to 255 arguments
All values weighted equally
Function-specific parameters
Function-specific return type
Calculate central tendency
Report average values
Calculate performance averages
Average measurements
Exact matching required
Returns numeric position
Handles missing text gracefully
=AVERAGE(number1, number2)First number, cell reference, or range to average.
Additional numbers, cell references, or ranges (up to 255 arguments).
The arithmetic mean (average)
Description: Returns the arithmetic mean of a set of numbers
Calculate average of numbers
Returns 30 because (10+20+30+40+50)/5 = 150/5 = 30. AVERAGE sums all values and divides by the count.
Use AVERAGE function in VBA
' Basic AVERAGE in VBA
Range("C1").Value = Application.WorksheetFunction.Average(Range("A1:A10"))
' Returns: Average value
' Calculate average
Sub CalculateAverage()
Dim avgValue As Double
avgValue = Application.WorksheetFunction.Average(Range("A1:A10"))
Range("B1").Value = avgValue
End Sub
' Calculate average with conditions
Sub AverageWithConditions()
Dim dataRange As Range
Dim avgValue As Double
Set dataRange = Range("A1:A100")
' Average excluding zeros
avgValue = Application.WorksheetFunction.AverageIf(dataRange, "<>0")
Range("B1").Value = avgValue
End Sub
' Calculate weighted average
Sub WeightedAverage()
Dim values As Range
Dim weights As Range
Dim weightedSum As Double
Dim weightSum As Double
Set values = Range("A1:A10")
Set weights = Range("B1:B10")
weightedSum = Application.WorksheetFunction.SumProduct(values, weights)
weightSum = Application.WorksheetFunction.Sum(weights)
Range("C1").Value = weightedSum / weightSum
End Sub
' Calculate average of multiple ranges
Sub AverageMultipleRanges()
Dim avgValue As Double
avgValue = Application.WorksheetFunction.Average( _
Range("A1:A10"), _
Range("B1:B10"), _
Range("C1:C10"))
Range("D1").Value = avgValue
End SubCalculate central tendency in analysis
Calculate average performance
Average measurements and quality metrics
Average prices, returns, or values
AVERAGE returns #DIV/0! when no numeric values
=IF(COUNT(A1:A10)>0, AVERAGE(A1:A10), "No data")Solution: AVERAGE requires at least one numeric value. If all values are text or empty, use IF(COUNT(range)>0, AVERAGE(range), "No data"). Check for numeric values in range.
Average seems wrong
Check: =COUNT(A1:A10) vs expected countSolution: Check if text values are being counted. AVERAGE ignores text. Ensure all expected values are numeric. Verify range doesn't include hidden rows with zeros.
Zeros are included in average
=AVERAGEIF(A1:A10, "<>0")Solution: This is expected behavior. AVERAGE includes zeros. To exclude zeros, use AVERAGEIF(range, "<>0") or filter data first.
Need different weights for values
=SUMPRODUCT(values,weights)/SUM(weights)Solution: AVERAGE gives equal weight to all values. For weighted average, use SUMPRODUCT(values, weights)/SUM(weights).