Chapter 4
Chapter 4
4.0 Introduction
4.1 What are Formulas and Functions?
4.2 The Formula Bar
4.3 Entering Formulas
4.5 Using the Fill Handle
4.6 Mathematical Functions
Trunc . Sum , SumIF , Ceiling , Round , RoundUP , RoundDown
4.6.1 Statistical Functions
Average , AverageIF , Count , CountIF , Max ,Min
4.6.2 Logical Functions
AND , FALSE , IF , NOT , OR ,TRUE
4.6.3 Date and Time Functions
DATE, DAY , HOUR , MINUTE
4.6.4 Lookup and Reference Functions
COLUMN , ROW , LOOKUP , VLOOKUP
4.7 Referencing Data
Relative , Absolute Mixed
3-D Referencing
INTRODUCTION
This lesson introduces formulas and the different elements that are required to write
a formula.
Values
Values are any numerical data entered in a worksheet. Once values are entered in the
worksheet, they can be used in formulas.
Formulas
Formulas are values, but unlike regular values, formulas contain information to
perform a numerical calculation, such as adding, subtracting, or multiplying. A cell
with the formula =5+3 will display the result of the calculation: 8.
All formulas must start with an equal sign (=). Then you specify more information: the
values you want to calculate and the arithmetic operator(s) or function name(s)
you want to use to calculate the values.
Operators are the basic symbols used in mathematics: + (plus), - (minus), /
(divide), * (multiply). In Excel, you use these just as you would to write out a math
problem.
Functions are used more often in Excel. Functions are pre-made formulas that you
can use as shortcuts, or to perform calculations that are more complicated
What are Formulas and Functions?
When you combine several operations and functions into a single formula, Excel performs the
operations in a predetermined order.
When a formula contains several operators with the same precedence, Excel calculates the formula
from left to right. You can change the order by enclosing the part of the formula you want Excel to
calculate first in parentheses. The table below, Order in Which Excel Performs operations in Formulas,
is a good reference for how to structure formulas with multiple operations.
Statistical Functions
Overview of Statistical Functions
AVERAGE
=AVERAGE(number1, number2…)
Calculates the average, or arithmetic mean, of the numbers in the range or arguments.
COUNT
=COUNT(number1, number2…)
Counts the number of cells that contain numbers, including dates and formulas. Ignores all blank cells and cells that contain text
or errors.
COUNTA
=COUNTA(number1, number2…)
Counts the number of cells in a range that are not empty.
COUNTIF
=COUNTIF(range,criteria)
Counts the number of cells within a range that meet the given condition.
MAX
=MAX(number1, number2…)
Returns the largest value in a range. Ignores logical values and text.
MEDIAN
=MEDIAN(number1, number2…)
Returns the median, or the number in the middle of the set of given numbers.
MIN
=MIN(number1, number2…)
Returns the smallest value in a set of numbers. Ignores logical values and text.
Mathematical Functions
ABS
=ABS(number)
Determines the absolute value of a number. The absolute value of a number is the number
without its sign.
ACOS
=ACOS(number)
Returns the arccosine of an angle. ACOS is the inverse of the COS function.
ACOSH
= ACOSH(number)
Returns the inverse hyperbolic cosine of a number.
AGGREGATE
=AGGREGATE(…)
Returns an aggregate in a list or database.
ASIN
=ASIN(number)
Returns the arcsine of an angle. ASIN is the inverse of the SIN function.
Logical Functions
Overview of Logical Functions
AND AND(logical1,logical2, . Checks whether all arguments are TRUE, and returns
..) TRUE if all arguments are TRUE.
FALSE FALSE() Returns the logical value FALSE.
IF IF(logical_test,value_if_t Checks whether a condition is met, and returns one value if
rue,value_if_false) TRUE, and another value if FALSE.
IFERROR IFERROR(value,value_i Returns value_if_error if expression is an error and the
f_error) value of the expression itself otherwise.
NOT NOT(logical) Changes FALSE to TRUE, or TRUE to FALSE.
OR OR(logical1,logical2,...) Checks whether any of the arguments are TRUE, and
returns TRUE or FALSE. Returns FALSE only if all
arguments are FALSE.
TRUE TRUE() Returns the logical value TRUE.
Date and Time Functions
Information functions
Referencing Data
RELATIVE AND ABSOLUTE CELL REFERENCES
Formulas can contain numbers, like 5 or 8, but more often
they reference the contents of cells. A cell reference
tells Excel where to look for values you want to use in
a formula. For example, the formula =A5+A6 adds the
values in cells A5 and A6.
Using cell references is advantageous because if you
change the values in the referenced cells, the formula
result automatically updates using the new values.
There are two types of cell references: relative and
absolute.
Relative: Relative references refer to cells in relation
to the cell that contains the formula. When the
formula is moved, it references new cells based on
their location relative to the formula. Relative
references are the default type of references in Excel.
Absolute: Absolute references always refer to the
same cell, even Absolute references are indicated
with dollar signs ($A$1) in formulas. Pressing <F4>
changes a cell reference to absolute.
Mixed : Refers to a method of referencing that uses both
absolute and relative referencing in the same formula
3-D Referencing