Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Manage workbooks
MO-211

Reference data in other workbooks

  1. 1Open both workbooks: Bookings.xlsx and Rates.xlsx.
  2. 2In Bookings, select C2 and type =B2*
  3. 3Switch to Rates (View › Switch Windows) and select Fees!B3.
  4. 4Press Enter: C2 holds =B2*[Rates.xlsx]Fees!$B$3.

A reference to another workbook is an ordinary reference with the workbook name in square brackets in front of the sheet: [Rates.xlsx]Fees!$B$3. Pointing at the cell writes it for you.

What the MO-211 task asks

Our MO-211 practice exams do not test this one yet: each download is a single workbook, and an external reference needs a real second file beside it. We say so rather than guess at the wording of a real-exam task.

A task for it names the other workbook, the sheet and the cell or range, for example: in C2, multiply the nights in B2 by the Medium rate in Fees!B3 of Rates.xlsx. The result that counts is the formula: it must reference the other workbook, not a number copied out of it.

Once the source workbook is closed, the same formula shows the source's full folder path. That is still correct; do not edit it back.

Worked examples

Set up the grid below to follow along. Each example starts from it as shown; every result is what Excel showed.

Rates.xlsx, sheet Fees
AB
1BerthRate
2Small30
3Medium45
4Large60
Bookings.xlsx, sheet Bookings
ABC
1BerthNightsFee
2Medium2
3Large4
4Small3
Point at the other workbook's cell
Do this
  1. 1In Bookings!C2 type =B2*
  2. 2Switch to Rates and select Fees!B3.
  3. 3Enter.
Excel showsC2: =B2*[Rates.xlsx]Fees!$B$3 → 90

Two nights at the Medium rate of 45. A pointed-at cell in another workbook comes in absolute, with dollar signs.

A lookup into the other workbook
Do this
  1. 1In C3 type =XLOOKUP(A3, [Rates.xlsx]Fees!$A$2:$A$4, [Rates.xlsx]Fees!$B$2:$B$4)*B3
  2. 2Enter.
Excel showsC3: 240

Any function can take ranges from another workbook: Large is 60 a night, for 4 nights.

Close the source
Do this
  1. 1Close Rates.xlsx.
  2. 2Select C2 in Bookings and read the formula bar.
Excel showsC2: ='C:\…\[Rates.xlsx]Fees'!$B$3*B2 → still 90

Excel adds the folder the source is saved in, in single quotes, and keeps the last value it read.

A rate changes while Bookings is closed
Do this
  1. 1Open Rates, change Fees!B3 to 50, save and close it.
  2. 2Open Bookings. Excel asks: “This workbook contains links to one or more external sources that could be unsafe.” Select Update.
Excel showsC2: 100 (with Don't Update, it stays 90)

Bookings stores the values it last saw. Update reads the source file again.

Break the link
Do this
  1. 1Data › Edit Links (Workbook Links in newer builds).
  2. 2Select Rates.xlsx, then Break Link.
Excel showsC2: =B2*50 has become the plain number 100

Breaking a link replaces each external formula with its current value. It cannot be undone, so only break a link when the task asks for it.

In the video
Do this
  1. 1C2: =B2*, View › Switch Windows › Rates, go to Fees!B3, Enter.
Excel showsC2: =B2*[Rates.xlsx]Fees!$B$3 → 90

The first example, done in Excel with both workbooks open. In the video the Bookings workbook is saved as external-references.xlsx.

Watch it done in Excel

The last example above, recorded in real Excel on the same grid.

Exam traps

Typing the number instead

Typing =B2*45 gives the same 90 today, but references nothing. When the rate changes, the formula with the reference follows it; the typed number does not.

SUMIF and COUNTIF need the source open

=SUMIF([Rates.xlsx]Fees!$A$2:$A$4, A4, [Rates.xlsx]Fees!$B$2:$B$4)*B4 gives 90 with Rates open. Close Rates and recalculate, and it shows #VALUE!. The XLOOKUP and plain references keep working.

A sheet name with a space

Quote the workbook and sheet together: ='[Rates.xlsx]Fee table'!B2.

Breaking the link when asked to update it

Update reads the source again and keeps the formula. Break Link throws the formula away for a value, and a task checking the reference then fails.

FAQ

Does the other workbook have to be open?

Only while you build the formula by pointing. Afterwards the reference works with it closed, except for functions such as SUMIF that need it open.

Why does my formula now show a long folder path?

Because the source workbook is closed. Excel shows the full path to the file it will read; open the source and the path disappears again.

Where do I see every external link in a workbook?

Data › Edit Links (Workbook Links in newer builds) lists each source file, with Update, Change Source and Break Link.

Try it under exam conditions

Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.

No credit card needed.