Sub topic 9
Workbooks and Worksheets: What Contains What
This chapter assumes you can open a blank workbook, recognize the Name Box, formula bar, and sheet tabs, and select cells with the mouse and keyboard. Here you will learn how Excel's files are structured, because that structure explains how sheet tabs, file saving, and cross-sheet formulas behave.
The containment model
A workbook is the Excel file. A worksheet is one page inside that file. A worksheet is made of a grid of rows and columns, and each box in that grid is a cell.
Keep these points in mind:
- One workbook holds one or more worksheets. Sheet tabs at the bottom of the window show them.
- Each worksheet has its own grid. Cell B4 on one sheet is a different cell from B4 on another.
- The workbook is what you save, send, and open. A worksheet cannot be saved as a separate file unless you copy it into a new workbook.
- Workbooks can also hold other sheet types, such as chart sheets. These show a chart that fills the whole sheet instead of a grid.
Why the distinction matters
Many common mistakes come from mixing up the two terms.
| Task | Applies to | Example |
|---|---|---|
| Save, close, or email | Workbook | Saving `Budget.xlsx` |
| Rename, color, or hide a tab | Worksheet | Renaming Sheet1 to Jan |
| Open a second Excel file | Workbook | Opening two budgets side by side |
| Freeze headings | Worksheet | Keeping row 1 visible |
Formulas are also affected. A reference with no sheet name points to the same sheet as the formula. To use a cell from another worksheet, you add the sheet name:
=SUM('Q1 Sales'!B2:B10)The sheet name comes first, then an exclamation mark, then the address. Single quotes are required because the name contains a space.
Practice: build a three-sheet workbook
- Open a blank workbook. Excel usually starts with one sheet.
- Press Shift+F11 twice to insert two more worksheets. You now have three tabs.
- Switch between them with Ctrl+PageDown and Ctrl+PageUp.
- On each sheet, type 10 in cell B2. Then change the value on the second sheet to 20.
- On the third sheet, type
=Sheet1!B2+Sheet2!B2in cell B2. Adjust the names if your tabs are named differently.
The result is 30, because the formula reads cell B2 from each of the two other worksheets. The B2 on the third sheet holds the formula and is separate from the other two.
Common errors
- Saving "just the sheet." Only the whole workbook is saved. If you need to share one sheet, copy it to a new workbook first.
- Editing the wrong sheet. Look at the active tab, which is highlighted, before typing.
- Unquoted sheet names. A name with spaces needs single quotes in a formula, such as
'Q1 Sales'!B4. - Expecting two open files to be one workbook. Each open file is a separate workbook, even if the windows sit side by side.
Exercise
You type =B2 in cell B2 of a sheet named Summary, and a colleague asks which worksheet's B2 you mean. Which cell does =Jan!B2 refer to, and what do you need to change if the sheet is named "Jan Totals"?
Show answer
=Jan!B2 refers to cell B2 on the worksheet named Jan, not the sheet holding the formula. For a sheet named "Jan Totals", the name contains a space, so write ='Jan Totals'!B2. Note that =B2 typed into B2 itself creates a circular reference.