Excel 2007 Calculating With Advanced Formulas
Excel 2007 Calculating With Advanced Formulas
Table of Contents
Absolute Cell Reference .......................................................................................................................................... 1
Naming a Cell or Range of Cells............................................................................................................................... 1
Using Names in Formulas .................................................................................................................................... 2
Finding a Named Cell or Range ........................................................................................................................... 2
Editing a Named Cell or Range ............................................................................................................................ 2
Formula Structure ................................................................................................................................................... 3
How to write a formula using a function ............................................................................................................ 3
Individual Arguments ...................................................................................................................................... 3
Through Arguments ........................................................................................................................................ 3
Calculating Across Worksheets ............................................................................................................................... 3
Referencing Multiple Worksheets ...................................................................................................................... 3
Sheet Separators ................................................................................................................................................. 4
3-D Cell References ............................................................................................................................................. 4
Using formulas for sheets in consecutive order: ............................................................................................ 4
Using formulas for specific sheets .................................................................................................................. 5
Functions ................................................................................................................................................................. 5
Function Categories ............................................................................................................................................ 6
Calculating with Date and Time Function ........................................................................................................... 7
Today Function ................................................................................................................................................ 7
Now Function .................................................................................................................................................. 7
Calculating with Financial Functions ................................................................................................................... 7
PMT Function .................................................................................................................................................. 7
Calculating with Math and Trig Functions .......................................................................................................... 8
Sum Function................................................................................................................................................... 8
SumIf Function ................................................................................................................................................ 9
Calculating with Statistical Functions................................................................................................................ 10
Average ......................................................................................................................................................... 10
Count ............................................................................................................................................................. 10
CountA........................................................................................................................................................... 10
Calculating with Look-up and Reference Functions .......................................................................................... 11
Using the Vlookup function:.......................................................................................................................... 11
Calculating with Logical Functions .................................................................................................................... 13
A named cell or range of cells can be used in formula references. Naming a cell or range of cells is a
good time saver when writing formulas that are calculating between multiple sheets. Named cells or
ranges can also be used in place of absolute cell references.
1. Select the cell or range of cells
to be named
2. To the left of the formula bar is
the name box, as shown in the
picture to the right. By
default, the name box will
reference a cell that is selected.
3. Click in the name box
4. Type in a name for the selected cell or range of cells
5. Press the enter key
Page 1
Note: If a cell or range of cells has been named, the cell or range will need to be selected for the name
to appear in the name box.
1.
2.
3.
4.
Page 2
Formula Structure
To write complex formulas you will need to know basic formula structure. There are multiple ways to
write formulas. Choose the best one that fits your needs for each scenario.
Formulas are made up of three basic parts, the equals sign, a function or operator, and arguments.
There are two main ways to write Excel formulas, with an operator or with a function. Functions can be
used as a short cut to create commonly used formulas.
Lastly are the arguments. Arguments are the numbers or cell references that will be used to figure a
formula.
Example using operator: = B1+B2+B3+B4+B5+B6+B7. The operator in this formula is the + sign.
Example using function: =SUM(B1:B7). The function in this formula is SUM (which is for adding values).
Formulas using functions have a different format than formulas using operators. Formulas that use
function also start with an equals sign, but instead of a mixture of arguments and operators, the
function is entered right after the equal sign with the arguments following in parentheses.
Page 3
Library, to reference that sheet name I would type Library! within the parenthesis of the argument area.
The cell reference will follow the sheet name.
Sheet Separators
If you will be referencing sheets that are in a consecutive row, use the symbol for through, which is a
colon (:).
If you will be referencing only specific sheets use a comma(,) between the sheet names.
For example, I have a workbook that has a separate expense worksheet for each department. Each
worksheet is named by department (Library, IT, Reeve). I want to keep a summary sheet of the total
expanses for all departments. I added a separate sheet called Totals, for the total of all department
expanses. I will need to calculate across worksheets to determine those totals. There are multiple ways
this can be done.
Page 4
Note: All worksheets between the first and last sheet selected will be included in the formula.
The example formula uses a colon to sum the Library worksheet through the Reeve worksheet
and uses a cell reference of !B9.
7. Type a right parenthesis
8. Push the enter key for the formula results to appear
Using formulas for specific sheets
Specific sheets can be included in the formula by using a comma instead of the colon.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Functions
There are many functions in Excel that help with writing advanced formulas.
To explore the different functions choose one of two methods.
Method 1:
Select the formulas tab
Select the insert function button
The function dialog box will open
If you know the function name, type it in the search for
a function box and select the Go button
5. If you do not know the function name select a category
from the drop-down list. By default the most recently
used functions will appear. A list of functions
pertaining to the selected category will appear below,
under select a function.
6. Click on a function to see a brief description
1.
2.
3.
4.
Page 5
Function Categories
There are many categories of functions in Excel. Each category has specific functions that pertain to that
category.
Page 6
Page 7
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
Open the formula dialog box by using one of the methods discussed above
Use the drop-down to select the financial category
Scroll down and select the PMT function
The function arguments dialog box will open
Click on the red arrow next to the Rate field
Select the cell in the worksheet that contains the
interest rate
Click back on the red arrow to return to the
function arguments dialog box
Type in the division symbol and the rate per
period (how often the payment will be made)
For example, divide be 4 for quarterly, divide by
12 for monthly.
Select the red arrow next to the Nper field
Select the cell in the worksheet that contains the
number of payments
Click back on the red arrow to return to the
function arguments dialog box
Select the red arrow button next to the PV field
Select the cell in the worksheet that contains the cost of the item
Click back on the red arrow to return to the function arguments dialog box
Click OK for the formula results to appear
Page 8
Page 9
8. Select the range, criteria and sum_range by using the red arrow to the right of the field name.
Note: The red arrow next to the field name will allow you to toggle between the worksheet and
the function argument dialog box.
9. Select OK when all arguments have been entered.
CountA
The counta function can be used to count a range of cells with text values.
Using the CountA function:
1. Click in the cell were the total count should appear
2. Select the formula button
Page
10
3.
4.
5.
6.
7.
8.
9.
Page
11
Page
12
12.
13.
14.
15.
was named Lookup, so it is not showing specific cell references. Note: To name a table use the
directions provided above in the Naming a Cell or Range of Cells section of the manual).
Click on the red arrow to toggle back to the arguments dialog box
Click in the Column_index_num field
Type in the column number of the look up table (table_array) that holds the value or data you
want returned (in the example we want the value for job title, which is held in column 2 of the
Vlookup table). Note: Column A = 1, Column B = 2, Column C = 3, etc.
Select OK when all arguments have been entered
Page
13