AVERAGE

AVERAGE(number1 [,number2] [..])

Returns the arithmetic mean of the values in a list, range or array.

number1The first number.
number2(Optional) The second number.

REMARKS
* The arithmetic mean is the most common measure of central tendency.
* For an illustrated example refer to the [[Central Tendency]] page.
* This function includes hidden cells.
* Arguments that are just numbers are included.
* Arguments that are just numbers passed as text ("3") are included. See Example 15.
* Arguments that are just logical values are included. True evaluates to 1. False evaluates to 0. See Example 19.
* Arguments that are just text will generate a #VALUE! error. See Example 16.
* Arguments that are references to empty cells are excluded. See Example 8.
* Arguments that are references to cells containing zeros are included. See Example 9.
* Arguments that are references to cells containing dates are included and the date serial number is used. See Example 12.
* Arguments that are references to cells containing logical values are excluded. See Example 11.
* Arguments that are references to cells containing text are excluded. See Example 10.
* Arguments that are arrays containing logical values are excluded. See Example 20.
* Arguments that are arrays containing text are excluded. See Example 17.
* If any cell references are empty, then these are excluded. See Example 8.
* If any cell references contain an error, then that error is returned. See Example 14.
* You can have a maximum of 255 arguments.
* You can use the AVERAGEA function to include logical values and text.
* You can use the AVERAGEIFS function to satisfy multiple conditions.
* You can use the AGGREGATE function to exclude hidden cells.
* You can use the AVERAGEVISIBLE - User Defined Function to exclude hidden cells.
* This is similar to the COUNT, MAX, MIN and SUM functions.
* You can enter the abbreviated function name "=AVG()" although you will be prompted to change this to "AVERAGE".
* For the Microsoft documentation refer to support.microsoft.com
* For the Google documentation refer to support.google.com

 AB
1=AVERAGE(2,4) = 35
2=AVERAGE(5,10,15) = 1010
3=AVERAGE(5,10,15,0) = 7.515
4=AVERAGE(-2,-3,4,5,6) = 2 
5=AVERAGE({-2,-3,4,5,6}) = 20
6=AVERAGE(B1:B3) = 10text
7=AVERAGE(B1,B2,B3) = 10FALSE
8=AVERAGE(B1,B2,B3,B4) = 10=DATE(2023,1,1) = 01 Jan 2023
9=AVERAGE(B1,B2,B3,B5) = 7.5=10/0 = #DIV/0!
10=AVERAGE(B1,B2,B3,B6) = 10 
11=AVERAGE(B1,B2,B3,B7) = 10 
12=AVERAGE(B1,B2,B3,B8) = 11239.3 
13=AVERAGE(named_range) = 10 
14=AVERAGE(B5,B6,B9) = #DIV/0! 
15=AVERAGE(2,"3") = 2.5 
16=AVERAGE(2,"some text") = #VALUE! 
17=AVERAGE({2,"some text"}) = 2 
18=AVERAGE(2,TRUE) = 1.5 
19=AVERAGE(2,FALSE) = 1 
20=AVERAGE({2,TRUE}) = 2 

1 - What is the average (or arithmetic mean) of 2 and 4. 6 divided by 2.
2 - What is the average of 5, 10 and 15. 30 divided by 3.
3 - What is the average of 5, 10, 15 and 0. Zeros are always included. 30 divided by 4.
4 - What is the average of -2, -3, 4, 5 and 6. 10 divided by 5.
5 - What is the average of -2, -3, 4, 5 and 6 passed in as an array. 10 divided by 5.
6 - What is the average of the values in the range "B1:B3". 30 divided by 3.
7 - What is the average of the values in the range "B1", "B2" and "B3". 30 divided by 3.
8 - What is the average of the values in the range "B1", "B2", "B3" and "B4". B4 is empty. Empty cells are always excluded. 30 divided by 3.
9 - What is the average of the values in the range "B1", "B2", "B3" and "B5". B5 is zero so this gets included. 30 divided by 4.
10 - What is the average of the values in the range "B1", "B2", "B3" and "B6". B6 is text so this is excluded. 30 divided by 3.
11 - What is the average of the values in the range "B1", "B2", "B3" and "B7". B7 is a logical value so this is excluded. 30 divided by 3.
12 - What is the average of the values in the range "B1", "B2", "B3" and "B8". B8 is a date so this gets included as a date serial number.
13 - What is the average of the values in the named range that refers to the range "B1:B3". 30 divided by 3.
14 - What is the average of the values in the range "B5", "B6" and "B9". B9 contains an error so that gets returned.
15 - What is the average of the values 2 and "3". Text values that are actually numbers are included.
16 - What is the average of the values 2 and "some text". The text generates an error.
17 - What is the average of the values 2 and "some text" passed in as an array. The text is excluded. 2 divided by 1.
18 - What is the average of the values 2 and the logical value True. TRUE is replaced with 1 so the logical value gets included. 3 divided by 2.
19 - What is the average of the values 2 and the logical value False. FALSE is replaced with 0 so the logical value gets included. 2 divided by 2.
20 - What is the average of the values 2 and the logical value True passed in as an array. The logical value is excluded. 2 divided by 1.

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited Top