Common Functions
Common Functions
Common Functions
ppt
Functions
are predefined formulas that perform
calculations by using specific values, called
arguments, in a particular order, or
structure.
Formula Structure
Function name
Equal sign
=Sum(A1:B3,5)
arguments
Formula Structure
Arguments canFunction
be: name
Equal sign
Numbers
=Sum(A1:B3,5)
Text
logical values, such as TRUE or FALSE
arguments
cell references
other functions
Example:
A B C
Supposed we are to get
1 column1 column2 Sum
the sum of all the
2 1 2 values of Column1 and
3 3 4 Column2
4 5 6
E2
Error!
Errors in Formulas
• #DIV/0 – The formula divides a number by zero (0).
Excel considers a blank cell to have a value of zero.
Where:
num1,num2,… are 1 to 30 arguments for which
you want the total value or sum.
Example:
Syntax:
AVERAGE(num1,num2,…)
Where:
num1,num2,… are 1 to 30 arguments for which you
want the average
Syntax:
MAX(number1,number2,...)
Where:
Example
number1, number2, ... are 1 to 30 numbers for
which you want to find
the maximum value.
Syntax
MIN(number1,number2,...)
Example
Where:
Number1, number2, ... are 1 to 30 numbers for which you
want to find the minimum value.
Syntax:
VLOOKUP(X,Y,Z)
Where:
X is the value to be found in the first column of the
array. X can be a value, a reference, or a text string.
Y is the table of information in which data is looked up.
Use a reference to a range or a range name.
Z is the column number in Y from which the matching
value must be returned.
Ms. Jennifer Ventus 9/28/2008
Example
Syntax:
IF(X,Y,Z)
Where:
X is the value or expression that can be evaluated to
TRUE or FALSE.
Syntax:
IF(X,Y,Z)
X Y and Z
Where:
X is the value or expression that can be evaluated to
X Y Z If average<=74 then
TRUE or FALSE.
write(“FAILED”)
=if(D2<=74,”FAILED”,”Passed”) else
Y is the value that is returned if X is TRUE.
write(“PASSED”)
Z is the value that is returned if X is FALSE.
Ms. Jennifer Ventus 9/28/2008
Counts the number of cells within a range that meet the
given criteria.
Syntax
COUNTIF(range,criteria)
Where:
Example
Range is one or more cells to count, including
numbers or names, arrays, or references that
contain numbers. Blank and text values are
ignored.
Criteria is the criteria in the form of a number,
expression, cell reference, or text that defines
which cells will be counted. For example,
criteria can be expressed as 32, "32", ">32",
"apples", or B4.
Ms. Jennifer Ventus 9/28/2008
Ms. Jennifer Ventus 9/28/2008
Common Functions.ppt