Excel 2003 - Tutorial 3
Excel 2003 - Tutorial 3
Errors in Formulas
Additional Readings
Text to Speech
Formula Definition
A formula allows you to calculate and analyze data in your worksheet. Formulas perform
calculations such as addition or multiplication; formulas can also combine values.
Formula Syntax
Formula syntax is the structure or order of the formula elements. All formulas begin with
an equal sign (=) in Excel followed by operands (the data to be calculated) and the
operators. Operands can be values that don’t change (constants), a range reference, a
label, a name, or a worksheet function.
Formula Bar
The Formula bar is an area located at the top of the worksheet window that is used to
enter or edit values or formulas in cells or charts. The Formula bar displays the constant
value or formula in the active cell. To display or hide the Formula bar; select from the
Menu bar, View > Formula.
Function Definition
Function Syntax
The syntax of a function begins with the function name, followed by an opening
parenthesis, the arguments for the function separated by commas, and a closing
parenthesis. If the function starts a formula, an equal sign (=) displays before the function
name. Example: =SUM (D2:F8)
Arguments
An argument is the reference behind the function. The reference can be any of the
following type:
Argument Types
Argument Example
Numbers 1,2,3
Text “January”
Logical Values (True or False)
Cell References / Range B7 or B7:B20
Operators
Operators are mathematical symbols that are broken into four categories
Keystroke Operators
Arithmetic Explanation Example
+ Addition 2+3
- Subtraction 5-1
* Multiplication 7*3
/ Division 8/2
% Percent 90%
^ Exponentiation 7^2
Comparison Explanation Example
= Equal to B1=D1
> Greater than B1>D1
< Less than B1<D1
>= Greater than or equal to B1>=D1
<= Less than or equal to B1<=D1
<> Not equal to B1<>D1
Text Explanation Example
& Adjoins text or cell references "Scott" & "Hi" produces
"Scott Hi"
Reference Explanation Example
: Includes cells of a column or row B3 : B20
between the designated limits
, Separates arguments in a function (B3, B20)
Formulas are calculated left to right, using order of precedence, the parentheses have high
order of precedence, i.e.: every thing inside them is evaluated first.
Notice that percent has the highest precedence, multiplication and division have same
order of precedence, also addition and subtraction have same order of precedence.
Excel performs all operations within sets of parentheses first, and you can use this to get
exactly the order of operations you want. If multiple operations are encased in multiple
sets of parentheses, the operations are performed from inside to outside, then follow the
order of operations, and then left to right.
Function Wizard
The function wizard is designed to help provide the necessary arguments and descriptions
for the various Excel functions.
1. Select the cell in which you want the results of the function to display.
To enter the same formula in several cells at once, follow these steps:
1. Select all the cells you want to enter the formula in.
3. When the formula is complete, press CTRL + ENTER. The formula is entered in all
the selected cells simultaneously.
You can also edit or delete any formula. To delete a formula, click on the cell that
contains the formula, and press the DELETE key on your keyboard. If you need to alter
the formula, follow these steps:
2. Click on the Insert Function button on the formula bar to edit the function arguments.
Change the appropriate argument(s) and click OK.
Error Values
Error Meaning How to Fix
#### The column is too narrow to display the Widen the column
result of calculation
# VALUE Wrong type of argument or reference Check operands and arguments
#DIV/0! Data is attempting to divide by zero Change the value or the cell
reference so that the formula
doesn't divide by zero
#NAME? Formula is referencing an invalid name Be sure the name still exists or
correct the misspelling
#REF! Excel can't locate the referenced cells(for Click Undo to restore
example, the cells were deleted) references and then change
formula references
#NULL Reference to intersection of two areas that Check for typing and reference
do not intersect errors
Given that:
• Range: Represents the set of values (number1, number2…)
You can use the Round ( ), Ceiling ( ), or Floor ( ) function to round a number to any
number of digits you want.
1. Sum Function
• Adds the numbers in a range or multiple ranges of cells.
• Written as: Sum (number1, number2…)
• Number1, Number2..: are written as a number, a reference to a cell, or to a range
of cells for which you want the total value or sum.
2. Round Function
• Rounds a number to a specified number of digits.
• Written as: Round (number, num_digits)
• Number: The value you want to round.
• Num_digits: The number of decimal places you want to round.
3. Ceiling Function
• Returns number rounded up, away from zero, to the nearest multiple you specify.
• Written as: Ceiling (number, significance)
• Number: The value you want to round
• Significance: The multiple you want to round to
4. Floor Function
• Rounds number down, toward zero, to the nearest multiple you specify.
• Written as: Floor (number, significance)
• Number: The value you want to round.
• Significance: The multiple you want to round to
Information functions are generally made up of logical results and can be used in many
business situations. Combined with other functions, the information functions can
IsNumber Function
• Returns true if the value is a number.
• Written as: ISNUMBER (value)
• Value: this is the cell or range you want tested.
Logical functions test cells & ranges and can return only: True or False. Commonly used
logical functions are:
1. AND
2. OR
3. NOT
4. IF
1. AND Function
• Returns True if all the logical arguments are true.
• Returns False if one or more arguments is false.
• Written as: AND (logical1, logical2 …)
• Logical Value 1, 2 … : The test results in a logical TRUE or FALSE return. Up
to 30 conditions can be tested together.
2. OR Function
• Returns False if all the logical arguments are false
• Returns True if one or more arguments is true
• Written as: OR (logical1, logical2…)
• Logical Value 1, 2 …: These are the conditions to be met to test a logical true or
false result. You can use up to 30 conditions within the formula.
3. NOT Function
• Returns the opposite of the logical value
• Written as: NOT (logical)
Logical : This is the value that can be evaluated with a True or False Condition.
If True, NOT returns False, if False, NOT returns True.
4. IF Function
• The IF ( ) function decides the contents of a cell on a spreadsheet based on
whether a test condition is true or false.
= Equal to
<> Not equal to
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
If you wish to test more than one condition, you can nest an if () function within another
Additional Readings
Text to Speech
1. Show the Text to Speech toolbar by selecting from the Menu bar, View >
Toolbars > Text to Speech
******************************