Sub topic 17
Working on several sheets at once: group mode and 3D references
This chapter assumes you can add, rename, and move worksheets, and that you can write a reference to a cell on another sheet, such as ='Q1 Sales'!B4. Here you will learn two ways to act on many sheets together: group mode and 3D references.
Group mode
Group mode lets you select several worksheets so that what you type or format on one sheet is applied to all of them. It suits sheets that share a layout, such as monthly sheets named Jan, Feb, and Mar.
To group sheets:
- Click the first sheet tab.
- Hold Shift and click the last tab to select a contiguous run. Or hold Ctrl and click individual tabs to select sheets that are not next to each other.
- Check the title bar. It shows [Group] after the file name while group mode is on.
To leave group mode, click any sheet tab that is not in the group. If every sheet is grouped, right-click a tab and choose Ungroup Sheets.
While grouped, a change on the active sheet is written to the same cells on every grouped sheet. Typing Region in A1 puts Region in A1 on all of them. The same is true of number formats, column widths, and fills.
3D references
A 3D reference points at the same cell or range on a run of consecutive sheets. This formula adds cell B2 on every sheet from Jan through Mar:
=SUM(Jan:Mar!B2)Jan:Mar names the first and last sheet in the run. Excel includes every sheet that sits between those two tabs, in the order the tabs appear. The reference ends with ! and the cell address, the same as an ordinary sheet reference.
You can build it by clicking. Type =SUM(, click the Jan tab, hold Shift, click the Mar tab, click cell B2, then type ) and press Enter.
If a sheet name contains a space, wrap the whole sheet span in single quotes, for example =SUM('Q1 Sales:Q3 Sales'!B2).
| Behavior | Result |
|---|---|
| Move a sheet into the span | It is included in the total |
| Move a sheet out of the span | It is left out |
| Insert a new sheet between the end tabs | It is included |
| Delete a sheet in the span | The total adjusts |
| Move an end sheet outside the span | The reference may change its range |
Because the span follows tab order, many people put blank sheets named Start and End on either side of the data sheets and use =SUM(Start:End!B2).
Common errors
- Forgetting that group mode is on. Check the title bar for [Group] before typing.
- Layouts that differ. A 3D reference adds whatever sits in B2 on each sheet. If one sheet has its total in B3, the result is wrong without any error message.
- Unsupported functions. 3D references work with functions such as SUM, AVERAGE, COUNT, MAX, and MIN. They do not work with every function, and they cannot be used in array formulas or with the intersection operator.
Exercise
You have sheets named Jan, Feb, Mar, and Summary, in that order. You want Summary!B2 to hold the total of B2 across Jan, Feb, and Mar. Which formula do you enter, and what happens if you then drag the Feb tab to the right of Summary?
Show answer
Enter =SUM(Jan:Mar!B2) in Summary!B2. After Feb is moved to the right of Summary, it is no longer between Jan and Mar, so it is dropped from the total.
Exercise
You select Jan, Feb, and Mar as a group and type 100 in C5 on Jan. What is in C5 on Feb, and how do you stop this from happening again?
Show answer
Feb!C5 also contains 100, because group mode writes the entry to the same cell on every grouped sheet. To stop it, click a sheet outside the group or use Ungroup Sheets before entering data.