Documenting the Workbook
The textbook often talks about designing a good workbook. One of the
good elements is the idea of isolating the assumptions,
another is the idea of a Documentation Worksheet
Each workbook contains up to 255 worksheets, since workbooks are often
shared by a group of people in a
corporation it is often a very good idea to have a page of the worksheet
that is just for documenting the workbook.
This documentation worksheet shows
All of these things seem obvious to you but will be appreciated
by the person that follows you in the organization or by you
yourself after having to look at the workbook after not seeing it for
several months or years.
Example:
Linking External Workbooks
Instead of consolidating worksheets within one workbook,
it might be necessary to leave data in separate workbooks (source workbooks)
and then link these to a summary workbook (dependent workbook).
This is done by using (external references) in formulas.
The syntax for referencing a cell in another workbook is as follows
=[Atlanta.xls]Sheet1!B3where
Atlanta.xls is the name of the file containing
the workbook. The square brackets[] are required to be there to
tell
Excel that this is the filename of an external
workbook.
Sheet 1 is the name of the Worksheet
within the file Atlanta.xls. The exclamation point (!)
is required to separate the
name of the worksheet from the name of the
file.
B3 is the name of the cell within the
worksheet Sheet1
Hands on Exercise:
Here is the table with the workbook reference filled in.
type of reference | Cell Reference | Cell Reference including Worksheet Reference |
---|---|---|
Relative Cell Reference | B3 | Atlanta!B3 |
Absolute Cell Reference | $B$3 | Atlanta!$B$3 |
Relative Range Reference | B3:F3 | Atlanta!B3:F3 |
Absolute Range Reference | $B$3:$F3 | Atlanta!$B$3:$F$3 |
Same Relative cell in a range of worksheets | Atlanta:Chicago!B3 | |
Same Relative cell Range in a range of worksheets | Atlanta:Chicago!B3:F3 | |
Same Absolute cell in a range of worksheets | Atlanta:Chicago!$B$3 | |
Same Absolute cell Range in a range of worksheets | Atlanta:Chicago!$B$3:$F$3 | |
Syntax of referencing a cell in another Workbook | [filename.xls]sheetname!B3 | |
Syntax of referencing a cell range in another Workbook | [filename.xls]sheetname!B3:F3 |
You can create workbook reference as you need them in one of two ways:
=[Atlanta.xls]Sheet1!$C$4When you hit F4 it takes you to the mixed reference(relative column, row fixed) .
=[Atlanta.xls]Sheet1!C$4Hit F4 again and it takes you to the mixed reference(fixed column, relative row ).
=[Atlanta.xls]Sheet1!$C4Hit F4 again an it will take you to the Relative reference
=[Atlanta.xls]Sheet1!C4
=[Atlanta.xls]Sheet1!C4When you close the source workbook window (atlanta.xls) the format of the workbook cell reference will change to include the full drive and path of the filename. In this case:
='H:\Exploring Excel 97\[Atlanta.xls]Sheet1'!C4
If you click yes it will refresh all of the links (without opening workbooks
in your application window).
Assignments: