Workbook Settings, Protection, and Collaboration

Chapter 8: Workbook Settings, Protection, and Collaboration

Learning Objectives

  1. Write formulas that refer to data in other workbooks, and update, change and break those links.
  2. View and restore earlier versions of a workbook, and recover unsaved work.
  3. Restrict editing, and protect worksheets, cell ranges and workbook structure.
  4. Configure formula calculation options.

This chapter starts the MO-211 material. MO-211 assumes you can do everything on MO-210, and it adds skills for workbooks that several people use or that depend on other files. This chapter covers the first objective domain, Manage workbook options and settings: linking workbooks together, managing versions, protecting what others can change, and controlling when formulas recalculate. The macro settings in the same domain are in chapter 12.

8.1 Referencing other workbooks

A formula can use a value from another workbook. This is called an external reference or a link. Use one when the data is maintained in a separate file, such as when each department keeps its own budget and a summary workbook adds them up.

8.1.1 Creating an external reference

The easiest way is to click the cell you want while you build the formula:

  1. Open both workbooks.
  2. In the destination workbook, select the cell and type = (or start a formula, such as =SUM().
  3. Switch to the source workbook (View › Switch Windows, or click it on the taskbar), go to the right sheet and click the cell or select the range.
  4. Press Enter. Excel returns you to the destination workbook.

The formula now includes the workbook's name in square brackets:

='[Marketing Budget.xlsx]FY27'!$D$14

Notice three things:

When the source workbook is closed, Excel shows the full path:

='C:\Budgets\[Marketing Budget.xlsx]FY27'!$D$14

You can type an external reference by hand, but clicking avoids typos. External references work in any formula, such as =SUM('[Marketing Budget.xlsx]FY27'!$D$4:$D$13).

When you open a workbook with links, Excel may show a security warning and ask whether to update them. Click Enable Content to allow updates from the source files.

To see and manage every link in the workbook, choose Data › Edit Links (in some versions, Data › Workbook Links, which opens a pane):

Command What it does
Update Values / Refresh Gets the current values from the source workbook.
Change Source Points the links at a different file, such as a newer version.
Open Source Opens the source workbook.
Break Link Replaces every formula that uses the link with its current value. This can't be undone.
Check Status Shows whether each source file can be found.
Startup Prompt Chooses whether Excel asks to update links when the workbook opens.

"Ensure the workbook no longer depends on Q1 Sales.xlsx but keeps the current values" means Break Link. "Update the workbook to use data from Q2 Sales.xlsx instead of Q1 Sales.xlsx" means Change Source.

8.2 Workbook versions

Excel saves earlier versions of your work in two ways, depending on where the file is stored.

8.2.1 Version history

For a workbook stored in OneDrive or SharePoint, Excel saves a version every time the file is saved, including by AutoSave. To see them, choose File › Info › Version History, or click the file name in the title bar and choose Version History. The Version History pane lists each version with its date, time and author.

8.2.2 AutoRecover and unsaved workbooks

For files stored on your computer, AutoRecover saves a recovery copy every few minutes so you lose little work if Excel crashes. Its settings are in File › Options › Save:

To get back work you didn't save, choose File › Info › Manage Workbook › Recover Unsaved Workbooks, or open File › Open and click Recover Unsaved Workbooks at the bottom of the recent files list. Open the file and save it with Save As.

AutoSave, the switch at the upper left of the Excel window, is different from AutoRecover. AutoSave saves the actual file every few seconds, and it works only for files in OneDrive or SharePoint. AutoRecover saves a separate recovery copy, for files anywhere.

8.3 Protecting worksheets and ranges

8.3.1 How protection works

Protecting a worksheet takes two steps:

  1. Decide which cells people may change. Every cell starts out locked. Locking has no effect until the sheet is protected. Unlock the cells people should be able to edit, such as input cells.
  2. Protect the sheet. Locked cells can no longer be changed. Unlocked cells can.

To unlock cells, select them, open Format Cells (Ctrl+1), go to the Protection tab and uncheck Locked. (You can also use Home › Format › Lock Cell, which toggles the setting.) On the same tab, Hidden hides a cell's formula in the formula bar once the sheet is protected. The result still shows in the cell.

8.3.2 Protecting a sheet

Choose Review › Protect Sheet (or Home › Format › Protect Sheet). In the dialog box:

To remove protection, choose Review › Unprotect Sheet and enter the password if there is one.

Exam tasks often give the details as conditions: "Protect the worksheet so that users can edit only cells B4:B10 and can sort the data. Do not use a password." That's three steps: unlock B4:B10, protect the sheet, and check Sort in the list. Note that sorting a protected sheet also requires the cells being sorted to be unlocked.

8.3.3 Allowing edits to specific ranges

Allow Edit Ranges lets particular people edit a range of a protected sheet, or lets anyone who knows a password edit it. Set it up before protecting the sheet:

  1. Choose Review › Allow Edit Ranges (in some versions, Review › Protect › Allow Edit Ranges).
  2. Click New. Give the range a Title, set Refers to cells, and optionally type a Range password.
  3. Click Permissions to choose people who can edit without the password (on a network that supports it).
  4. Click OK, then click Protect Sheet in the same dialog box to turn on protection.

When someone tries to edit that range, Excel asks for the range's password, not the sheet's.

8.4 Protecting workbook structure and restricting editing

8.4.1 Protecting workbook structure

Protecting a worksheet controls its cells. Protecting the workbook structure controls its sheets: once it's on, nobody can add, delete, rename, move, copy, hide or unhide worksheets.

Choose Review › Protect Workbook, make sure Structure is checked, type an optional password and click OK. Choose the command again to remove the protection.

Protect Workbook doesn't stop anyone from changing cells. To prevent both, protect the structure and each sheet.

8.4.2 Other ways to restrict editing

File › Info › Protect Workbook gathers several more ways to control what others can do:

Option What it does
Always Open Read-Only Asks people to open the workbook read-only, so they must save changes under a new name. They can still choose to edit.
Encrypt with Password Requires a password to open the workbook at all.
Protect Current Sheet The same as Review › Protect Sheet.
Protect Workbook Structure The same as Review › Protect Workbook.
Add a Digital Signature Signs the workbook so others can tell whether it changed after signing.
Mark as Final Makes the workbook read-only and tells readers it's finished. Anyone can click Edit Anyway, so it's a signal, not security.

Save As offers two more passwords. Choose File › Save As › More options, then Tools › General Options in the Save As dialog box:

Match the task's wording to the right option. "Prevent users from opening the workbook without a password" means Encrypt with Password. "Indicate that the workbook is complete" means Mark as Final. "Users can open the workbook but must enter a password to save changes" means Password to modify.

8.5 Calculation options

Normally Excel recalculates every formula that's affected by a change as soon as you make it. In a very large workbook that can be slow, so Excel lets you control when it calculates.

8.5.1 Choosing a calculation mode

Choose Formulas › Calculation Options:

In Manual mode, recalculate with these commands:

The calculation mode belongs to Excel, not just to one workbook. It's saved with a workbook, but it applies to every workbook open at the time, and the first workbook you open in a session sets it. If you switch to Manual, remember that results won't update until you press F9.

8.5.2 More calculation settings

File › Options › Formulas has the same choices under Workbook Calculation, plus:

8.6 Practice

Simmy assessment goes here. Exam-style tasks on external references, links, versions, sheet and range protection, workbook structure protection, restricting editing and calculation options. When a student misses a task, Simmy builds the AI prompt (the task as worded, what the student did, and the correct result).

Starting data. Two workbooks.

Regional Summary.xlsx, sheet Summary (A1:C8):

Region FY27 Budget Notes
North
South
East
West
Total =SUM(B2:B5)

Rows 7–8: A7 "Growth rate", B7 0.04 (input); A8 "Next year total", B8 =B6*(1+B7).

Region Budgets.xlsx (open at the same time), sheets North, South, East and West. Each sheet has its budget total in cell D20 (North 482,600; South 391,250; East 455,900; West 517,300).

A third workbook, Region Budgets FY28.xlsx, exists in the same folder with the same layout.

Tasks.

  1. In cell B2 of the Summary worksheet, enter a formula that returns the North budget total from cell D20 of the North worksheet in the Region Budgets workbook. Do the same for South, East and West in B3:B5. Expected result: B2 ='[Region Budgets.xlsx]North'!$D$20, and so on for B3:B5. Objective: Reference data in other workbooks.
  2. Change the links in the Regional Summary workbook so that they get their data from Region Budgets FY28.xlsx. Expected result: every external reference points to Region Budgets FY28.xlsx. Objective: Reference data in other workbooks.
  3. Configure cell B8 so that its formula won't appear in the formula bar when the worksheet is protected. Expected result: B8 has Hidden checked (and remains locked). Objective: Protect worksheets and cell ranges.
  4. Protect the Summary worksheet so that users can change only cell B7 and the cells in column C. Users must also be able to format columns. Do not use a password. Expected result: B7 and C2:C6 (or column C) unlocked; sheet protected with Select locked/unlocked cells and Format columns allowed; no password. Objective: Protect worksheets and cell ranges.
  5. Prevent users from adding, deleting or renaming worksheets in the workbook. Use the password Budget27. Expected result: workbook structure protected with password Budget27. Objective: Protect workbook structure.
  6. Configure the workbook so that formulas recalculate only when the user requests it, and so that the workbook recalculates before it is saved. Expected result: Calculation = Manual; Recalculate workbook before saving checked. Objective: Configure formula calculation options.
  7. Indicate to users that the workbook is final and should not be edited. Expected result: workbook marked as final. Objective: Restrict editing.

Simmy note: the version-history objective needs a workbook stored in OneDrive or SharePoint. If Simmy can simulate the Version History pane, add a task that restores the version saved at a given time.