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



















COUNTBLANK

Counts empty cells in a specified range of cells.
Syntax
COUNTBLANK(range)
Range    is the range from which you want to count the blank cells.
Remark
Cells with formulas that return "" (empty text) are also counted. Cells with zero values are not counted.
Example
The example may be easier to understand if you copy it to a blank worksheet.


A
B
1
Data
Data
2
 
 
3
6
=IF(B4<30,"",B4)
4
 
27
5
4
34


Formula
Description (Result)
=COUNTBLANK(A2:B5)
Counts empty cells in the range above. The formula returns empty text. (4)

Wednesday, September 15, 2010

HOUR

Returns the hour of a time value. The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
Syntax
HOUR(serial_number)
Serial_number    is the time that contains the hour you want to find. Times may be entered as text strings within quotation marks (for example, "6:45 PM"), as decimal numbers (for example, 0.78125, which represents 6:45 PM), or as results of other formulas or functions (for example, TIMEVALUE("6:45 PM")).
Remark
Microsoft Excel for Windows and Excel for the Macintosh use different date systems as their defaults. Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented as 0.5 because it is half of a day).
Example
The example may be easier to understand if you copy it to a blank worksheet.


A
1
Time
2
3:30:30 AM
3
3:30:30 PM
4
15:30

Formula
Description (Result)
=HOUR(A2)
Hour of first time (3)
=HOUR(A3)
Hour of second time (15)
=HOUR(A4)
Hour of third time (15)