Microsoft Office Excel 2003 Intermediate III: Formulas and Worksheets
Microsoft Office Excel 2003 Intermediate III: Formulas and Worksheets
All formulas must begin with an equal sign (=). Formulas can have;
Cell References (including named cells and ranges)
Operators
Values or Text
Functions
Cell References
A reference identifies a cell or a range of cells on a worksheet and tells Microsoft Excel where to look for the values or
data you want to use in a formula. With references, you can use data contained in different parts of a worksheet in one
formula or use the value from one cell in several formulas. You can also refer to cells on other sheets in the same
workbook, and to other workbooks. References to cells in other workbooks are called links.
By default, Excel uses the A1 reference style, which refers to columns with letters (A through IV, for a total of 256
columns) and refers to rows with numbers (1 through 65536). These letters and numbers are called row and column
headings. To refer to a cell, enter the column letter followed by the row number. For example, B2 refers to the cell at the
intersection of column B and row 2.
Relative References
Excel adjusts the cell references and copies in a formula relative to the direction of the copying.
If the original formula in A8 is =SUM(A3:A7), when Excel copies the original formula next door to B8 it changes the
formula to =SUM(B3:B7).
All new formulas naturally contain relative cell references unless you specify otherwise.
Absolute References
There will be times when you want to compare a range of values to a single value (for example, where you want to
compute what percentage each part is to the total).
Start your formula and select the cell first, then press F4 (or type $ before the column number and the row number).
For example: =B9/$E$12
Then you can AutoFill the formula to other cells.
Operator Precedence
1 ^ Exponentiation
2 *, / Multiplication, Division
3 +, - Addition, Subtraction
4 & Concatenation
5 =, <, > Equal to, Less Than, Greater Than
Use parentheses to instruct Excel in which order you want to parts of the formula to be carried out. Every left
parenthesis must have a matching right parenthesis.
By default, Microsoft Excel calculates a formula from left to right, starting with the equal sign (=). You can control how
calculation is performed by changing the syntax of the formula.
For example if you want to add the numbers in cells C2,C3 and C4 then multiply them by cell C5 the correct formula is
If we were to assigned numeric values, such as, =(1+2+3)*4, the result is 24.
SEE SHEET 1 in cell C6= (C2+C3+C4)*C5
Use parenthesis to alter the order of operations, operations within parentheses will be done first in order from left to right.
Without the parenthesis this formula =1+2+3*4, gives a result of 15.
SEE SHEET 1 in Cell D6=D2+D3+D4*D
The cell content can also be a formula. A formula asks a question and tells Excel to display the answer to that question. A
cell containing a formula the cell can display either the formula or the result of the formula. Usually the cell containing the
Worksheets often have labels at the top of each column and to the left of each row that describe the data within the
worksheet. You can use these labels within formulas when you want to refer to the related data. You can also create
descriptive names that are not labels on the worksheet to represent cells, ranges of cells, formulas, or constants.
When you create a formula that refers to data in a worksheet, you can use the column and row labels in the worksheet to
refer to the data, once you turned on the above option.
For example, the following example contains columns labeled Product 1, Product 2, and Product 3. To calculate
the total value for the Product 1 column, use the formula =SUM(Product 1).
1 A B C D E
2 Division Product 1 Product 2 Product 3 Average
3 Northern 30 70 110
4 Southern 40 80 120
5 Total =SUM (Product1)
Or if you need to refer to the Product 3 amount for the Northern division (the value 110), you can use the formula
=Product 3 Northern. The space in the formula between "Product 3" and "Northern" is the intersection operator. This
operator designates that Microsoft Excel should find and return the value in the cell at the intersection of the row labeled
Northern and the column labeled Product 3.
Functions
A function is a predefined formula that performs a particular type of computation. All you have to do to use a function is
supply the values that the function uses when performing its calculations; these are the arguments of the function. For
help with functions, press Help and type in key words, such as, Creating Formulas or Using Functions.
Entering a formula
Select the cell(s) in which you want to enter the formula and type = (an equal sign).
If you use Insert Function , Excel inserts an equal sign for you.
Enter the formula and press ENTER. The Function Arguments box comes up. You may press ok if the correct range of
cells is listed.
Built-in functions
Built-in functions are with references the most powerful features of EXCEL. There are hundreds of these functions
available in EXCEL. Some of these function are pretty simple to use, other take several arguments and are more difficult
to understand. All built-in function returns a value and many can return error values which signals you there is a problem
Excel supplies over 350 different functions organized into 10 categories; Database, Date and Time, Engineering,
Financial, Information, Logical, Lookup, Math, Statistical, Text and Data functions. You can learn about each function
using Excel’s online Help.
########## This is not really an error, but it means that the column is not wide enough
to display the value
#DIV/0! This is a divide by zero error, it can also occur if the formula is trying to
divide by an empty cell.
#NAME? The formula has a name that Excel doesn’t recognize.
#N/A The formula is referring to a cell that uses the NA function which designates
that the data is not available.
#NULL! The formula uses an intersection of two ranges that do not intersect
#NUM! A problem with a value exists.
#REF! Wrong type of argument or operand is used
Microsoft Excel 2003: Intermediate III
Christina Jenkins, Booth Library, EIU
Page 4
#VALUE! Wrong type of argument or operand is used
AutoSum
Sum is used so often that Excel has an AutoSum button on the Standard toolbar. To insert a formula that uses Sum,
select the cell where you want the sum, click the AutoSum button. Excel will ‘suggest’ a range. If the range is correct,
press Enter. If the range is incorrect, use your mouse to click and drag to make the selection yourself.
This Table is used with the Sample Formulas below:
A B C D
1 25 28 95
2 42 91 14
3 3 4 5
SPECIAL CASES:
What happens to a 3-D reference when you move, copy, insert, or delete worksheets?
The following examples explain what happens when you move, copy, insert, or delete worksheets that are included in a 3-
D reference. The examples use the formula =SUM(Sheet2:Sheet6!A2:A5) to sum cells A2 through A5 on worksheets 2
through 6.
Insert or copy If you insert or copy sheets between Sheet2 and Sheet6 (the endpoints in this example), Microsoft Excel
includes all values in cells A2 through A5 from the added sheets in the calculations.
Delete If you delete sheets between Sheet2 and Sheet6, Excel removes their values from the calculation.
Move If you move sheets from between Sheet2 and Sheet6 to a location outside the referenced sheet range, Excel
removes their values from the calculation.
Move an endpoint If you move Sheet2 or Sheet6 to another location in the same workbook, Excel adjusts the
calculation to accommodate the new range of sheets between them.
Delete an endpoint If you delete Sheet2 or Sheet6, Excel adjusts the calculation to accommodate the range of sheets
between them.
Date and Time to insert the current date and time in a cell
To insert the current date, Press Ctrl Semicolon.
To enter the current time, Press Ctrl Shift Colon.
D E
1 Name Enter formulas here
2 tina Jenkins
Appendix
IF
Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.Use IF to
conduct conditional tests on values and formulas.
Syntax
IF(logical_test,value_if_true,value_if_false)
Logical_test is any value or expression that can be evaluated to TRUE or FALSE. For example, A10=100 is a logical
expression; if the value in cell A10 is equal to 100, the expression evaluates to TRUE. Otherwise, the expression
evaluates to FALSE. This argument can use any comparison calculation operator.
Value_if_true is the value that is returned if logical_test is TRUE. For example, if this argument is the text string "Within
budget" and the logical_test argument evaluates to TRUE, then the IF function displays the text "Within budget". If
logical_test is TRUE and value_if_true is blank, this argument returns 0 (zero). To display the word TRUE, use the logical
value TRUE for this argument. Value_if_true can be another formula.
Value_if_false is the value that is returned if logical_test is FALSE. For example, if this argument is the text string "Over
budget" and the logical_test argument evaluates to FALSE, then the IF function displays the text "Over budget". If
logical_test is FALSE and value_if_false is omitted, (that is, after value_if_true, there is no comma), then the logical value
FALSE is returned. If logical_test is FALSE and value_if_false is blank (that is, after value_if_true, there is a comma
followed by the closing parenthesis), then the value 0 (zero) is returned. Value_if_false can be another formula.
Up to seven IF functions can be nested as value_if_true and value_if_false arguments to construct more
elaborate tests. See the last of the following examples.
When the value_if_true and value_if_false arguments are evaluated, IF returns the value returned by those
statements.
If any of the arguments to IF are arrays, every element of the array is evaluated when the IF statement is carried
out.
Microsoft Excel provides additional functions that can be used to analyze your data based on a condition. For
example, to count the number of occurrences of a string of text or a number within a range of cells, use the
COUNTIF worksheet function. To calculate a sum based on a string of text or a number within a range, use the
SUMIF worksheet function. Learn about calculating a value based on a condition.
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent),
or on the Tools menu, point to Formula Auditing, and then click Formula Auditing Mode.
SEE SHEET 6
H I
1 Average Grade
2 80
3 85
4 82
=IF(H2>89,"A",IF(H2>79,"B", Assigns a letter grade to the first score (B)
IF(H2>69,"C",IF(H2>59,"D","F"))))
=IF(H3>89,"A",IF(H3>79,"B", Assigns a letter grade to the second score (B)
IF(H3>69,"C",IF(H3>59,"D","F"))))
=IF(H4>89,"A",IF(H4>79,"B", Assigns a letter grade to the third score (B)
IF(H4>69,"C",IF(H4>59,"D","F"))))
In the preceding example, the second IF statement is also the value_if_false argument to the first IF statement. Similarly,
the third IF statement is the value_if_false argument to the second IF statement. For example, if the first logical_test
(Average>89) is TRUE, "A" is returned. If the first logical_test is FALSE, the second IF statement is evaluated, and so on.
The letter grades are assigned to numbers using the following key.