Showing posts with label average. Show all posts
Showing posts with label average. Show all posts

Sunday, September 26, 2010

DAVERAGE

Averages the values in a column of a list or database that match conditions you specify.
Syntax
DAVERAGE(database,field,criteria)
Database    is the range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
Field    indicates which column is used in the function. Field can be given as text with the column label enclosed between double quotation marks, such as "Age" or "Yield," or as a number that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
Criteria    is the range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying a condition for the column.

Example
The example may be easier to understand if you copy it to a blank worksheet.


A
B
C
D
E
1
Tree
Height
Age
Yield
Profit
2
Apple
>10



3
Pear




4
Tree
Height
Age
Yield
Profit
5
Apple
18
20
14
105.00
6
Pear
12
12
10
96.00
7
Cherry
13
14
9
105.00



















Tuesday, August 31, 2010

AVERAGE

AVERAGE
Returns the average (arithmetic mean) of the arguments.
Syntax
AVERAGE(number1,number2,...)
Number1, number2, ...    are 1 to 30 numeric arguments for which you want the average.
Remarks
  • The arguments must either be numbers or be names, arrays, or references that contain numbers.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
Tip
When averaging cells, keep in mind the difference between empty cells and those containing the value zero, especially if you have cleared the Zero values check box on the View tab (Options command, Tools menu). Empty cells are not counted, but zero values are.

Example
The example may be easier to understand if you copy it to a blank worksheet.
 
1
2
3
4
5
6







A
Data
10
7
9
27
2

Formula
Description (Result)
=AVERAGE(A2:A6)
Average of the numbers above (11)
=AVERAGE(A2:A6, 5)
Average of the numbers above and 5 (10)