Ravindra BagaleCourses & study guides मराठी Track your progress

23. Formulas Across Sheets and Workbooks

Excel

23.6 Links to Another Workbook (External References)

Build a region summary from three separate Excel files

Raja receives a November sales workbook from each city lead. Each file contains a Summary worksheet with two agreed numbers. He is responsible for presenting a regional sales total and average order value. Copying six numbers works for the first meeting. After a city corrects a source result, someone must remember to replace all affected copies. A workbook link is a formula in one Excel file that references a cell, range or supported name in another file. It allows the regional workbook to calculate from the city's approved inputs when the links successfully retrieve them.

The city file is the source workbook. The regional file is the destination workbook. Store the two roles on paper first. Pune_Nov.xlsx is a source file, its Summary tab is a worksheet inside that file, and B2 there holds delivered sales. Region.xlsx is the destination file, its Region tab is a worksheet inside the destination, and B2 there holds the formula. Two cell addresses can use the same row and column notation because the formula records which file and sheet it needs.

  • Agree on the interface. Every source must put approved delivered sales and delivered order count in the same documented cells.
  • Retain link and freshness evidence. A formula pointing to the expected file does not establish which saved version was last read.
  • Build the group ratio from group totals. Divide total sales by total orders across the same approved cities and period.
Three source files supply November sales and orders. Their values sum to 911000 rupees and 3315 orders in Region. The regional order average is 274.81 rupees.
Each file supplies two matching summary measures. Region adds the numerators and denominators before dividing.

Define what each city is sending

Use fictional fixtures in a dedicated practice folder. Create Pune_Nov.xlsx, Nashik_Nov.xlsx and Nagpur_Nov.xlsx. In every source file name one sheet Summary. Enter Metric in A1 and November value in B1. Use A2 for Delivered sales in rupees and A3 for Delivered orders. Type the amounts and counts into B2 and B3 as numbers. Save each source in the same practice folder and keep it open for creation of the links. Use a single year and close period for this exercise, and give the shared report that same year and period in its heading.

Three saved city workbooks with identical Summary layouts. All records are fictional.
CityFilenameSummary B2 · SalesSummary B3 · Orders
PunePune_Nov.xlsx4120001430
NashikNashik_Nov.xlsx268000980
NagpurNagpur_Nov.xlsx231000905

Check which purchases the measures describe. If one city includes orders booked but never delivered in B3, the ratio will include orders that do not belong to the sales numerator. A technically correct link can still combine incompatible metrics. For this exercise every order count refers to the same approved delivered population as the sales amount in its city file. Source handoff notes should also state the currency, whether returns affect the figure, and which saved file version was approved. The text “sales and orders” by itself is too vague to settle those choices.

Create and inspect the file reference

Create a fourth workbook called Region.xlsx in the practice folder, with one worksheet named Region. Put City, Delivered sales, Delivered orders and Average order value in A1:D1. Put Pune, Nashik and Nagpur in A2:A4. Use a desktop Excel client that can open the authorized test copies and create this simple link. If you work in Excel for the web, use only supported storage and access and follow the web-specific link instructions. Keep the fixture filenames predictable and avoid inventing a Windows path on a Mac.

  1. In Region B2 type an equals sign and remain in formula-entry mode.
  2. Switch to the open Pune_Nov.xlsx workbook. Choose Summary and click B2 after reading its sales label in A2.
  3. Press Enter. Return to Region and read both its formula bar and the displayed value, 412000.
  4. Repeat in Region C2 by clicking Pune’s Summary B3 for 1430. Inspect both source file names and distinct row addresses.
  5. Create rows 3 and 4 from the Nashik and Nagpur files individually. Confirm each city points to the file bearing its approved name rather than relying on a vertical fill.

When the source is open in a desktop Excel setting, the result can resemble these two statements. Square brackets enclose the workbook name, Summary identifies the worksheet, and the exclamation mark precedes the local cell address. Excel commonly generates absolute cell references when you use this method. The dollar signs protect row and column adjustment during copying. They do not change Pune into Nashik. Build each independent city link by selecting the appropriate source workbook.

=[Pune_Nov.xlsx]Summary!$B$2
=[Pune_Nov.xlsx]Summary!$B$3

After the source workbook closes, the desktop formula can show the full resolved location, for example the path below on Windows. It is illustrative. Excel will generate the path for your folder, mounted drive or supported cloud location. Do not paste the example path into your working file. Microsoft documents that Excel can store relative information for some file arrangements even if the formula displays a full path. Your teammate may use a different mount point, folder, account or storage environment. Use Excel to select the source that is present and authorized in the destination’s own environment.

='C:\Reports\Nov\[Pune_Nov.xlsx]Summary'!$B$2

Identify same-file and different-file dependencies

Compare the workbook link with =Summary!B2. The shorter formula would look for Summary inside Region.xlsx. It would not automatically open Pune_Nov.xlsx or find the source with the same worksheet name. Similarly, a hyperlink that opens a source file does not by itself supply money to a calculation. A workbook link used in a cell formula provides a value through Excel’s calculation and link mechanisms. The three operations have different evidence needs despite all sounding like ways to connect files.

To prove the region report still points to the correct source when two file names are similar, maintain an approved source roster. Record city, source filename, Summary B2 and B3, expected currency, reporting period, and one known approval. On a controlled local fixture, the path can be a folder you created. In a workplace folder, use the documented version and people authorized to share it. A file named Pune_Nov_old.xlsx might still contain valid numeric cells. The origin and reporting cutoff establish whether those fields belong in today’s report.

Calculate the order average with the right weights

Enter =B2/C2 for Pune in Region D2 and fill down to D4 while all three city counts are verified positive. In A5 put Total. Add the sales column in B5 and the approved order counts in C5. In D5 use the combined amounts divided by the combined orders. Display order averages to two decimal places. It is important that the stored numbers retain enough precision for calculating other measures and that you know which cells were formatted afterward.

=SUM(B2:B4)
=SUM(C2:C4)
=B5/C5
Original Region report, with two decimal places for the order-value average.
CityDelivered salesDelivered ordersAverage order value
Pune4120001430288.11
Nashik268000980273.47
Nagpur231000905255.25
Total9110003315274.81

Read the calculation as an operational question

Average order value asks how much delivered sales were recorded per delivered order. Each city average weights each of that city's orders equally. To get a region average that weights every order equally, combine the denominators along with the numerators. The unweighted mean of the three city averages is about ₹272.28, a different question in which every city receives equal influence. Pune processed more orders than the other cities and has the highest city average. The regional figure is therefore higher than the equally weighted mean across these three city averages.

Use a small separate example if weighted arithmetic feels abstract. Suppose one area in a fictional Blinkit-style sample delivers two orders worth ₹200 together, while a second area delivers one order worth ₹220. Their area averages are ₹100 and ₹220. Averaging those two averages gives ₹160. Connecting the populations gives ₹420 divided by three, which is ₹140. Both arithmetic operations have definitions. For the question “What value did the average delivered order have?” use the order-level weighting. In our region case, the three aggregated source amounts and order counts are sufficient because they refer to the same eligible records.

If a city's sourced orders are missing, a returned blank or zero in Region doesn't justify quietly omitting that city from the overall ratio. Check whether the city recorded no activity, supplied its files late, or placed a value in the wrong cell. A city with zero legitimate orders has no calculable average order value, even if the workbook has a displayed sales number. Resolve incompatible positive sales and zero eligible orders with the source owner. Check people, units and inclusion rules before returning “No orders” or “Review input.” This fixture uses verified positive counts.

Distinguish a shown amount from a refreshed source

A destination can show the most recently known values when updates are disabled or a refresh has not succeeded. That saved value can be useful for a historical view. It does not establish that the current source file still contains it. Closing a source workbook changes how Excel finds it. A compatible ordinary direct link can retrieve a saved value from a closed workbook if the approved path is accessible and refresh is permitted. Treat the expression, access check, source version and displayed amount as separate observations.

Region's earlier saved report shows 911000 rupees. Nashik makes a saved change from 268000 to 300000. The destination shows 943000 only after reading the corrected source, with order count unchanged.
Confirm the saved source correction and the completed destination refresh separately. The successful updated sales total is ₹943000.

Trace a ₹32000 correction from source to report

Save and close the original Region workbook after building and verifying the six links. Create a separate practice set for the correction so the baseline can be reopened. On a complete isolated test set, change Nashik Summary B2 from 268000 to 300000 and save it. Keep its 980 orders unchanged. The updated expected Region sales total is 412000 plus 300000 plus 231000, or ₹943000. The order total remains 3315. The regional average rises to ₹284.46. A check of Nashik itself should show 300000 and a recalculated local average of ₹306.12.

Before relying on a refresh of copied files, verify that the copied destination links to the copied sources. Depending on how Excel saved the relative or absolute locations, opening a copied Region file can still point at the first practice folder. Use its formula bar or Workbook Links list, and recreate the six links in the copied fixture if necessary. This check matters for anyone learning to make disposable tests. It ensures the source you modify is the source the test destination is supposed to read.

Open the approved destination and inspect existing values before requesting a link refresh. If it already refreshed under your workbook settings, note that and use a separately saved fixed-control value to retain the before comparison instead. If it shows old numbers, look for a notification and verify the expected path and current source allow the link to run. Use the client’s Workbook Links controls to refresh the relevant source or the approved set, then recalculate and check your expected numbers. Merely clicking a prompt is not proof that the workbook opened the saved correction.

Compare the four stages in the update

  1. Save the approved original

    Three city files yield ₹911000, 3315 orders and ₹274.81 in Region. Identify the saved source version.

  2. Change one source

    Nashik’s approved sales change from ₹268000 to ₹300000. Save that source file without changing the order count.

  3. Refresh the expected link

    Check which file the destination uses. If your client permits refresh for that verified source, run it and wait for the link status.

  4. Reconcile the updated report

    Verify ₹943000, 3315 orders and ₹284.46. The sales delta of ₹32000 should be wholly attributable to Nashik.

Check access and permissions without changing global settings

Excel can ask whether external workbook links may refresh. A warning is a request to evaluate the source, not evidence that the existing numbers are current. Only use the controls appropriate for known files you created or have verified and are authorized to access. Leave any unexpected external connection blocked while you investigate its origin. An organizational policy can limit what the workbook can refresh. If the client blocks a file type or a workbook link, use approved input and storage under that policy instead of lowering the general protection.

Excel can keep the most recently cached value or show an error in affected situations. Microsoft documents that newer file-block settings can stop refreshing a blocked file type. Microsoft also documents that web workbook-link refresh depends on supported online storage, permissions and the required trust decision, and cannot refresh sources in a different domain in several cross-tenant or cross-geography scenarios. A desktop local-folder lab is not the procedure for opening links across those boundaries. Web refresh can take a few minutes and show its last refresh status. Verify output rather than expecting an immediate change after clicking.

Keep ordinary links separate from special cases

A simple direct reference to a known single cell is the case used here. Excel documents different behavior for references produced using INDIRECT, linked dynamic arrays and linked Table fields from another workbook. An external INDIRECT can return #REF! when its source workbook is closed. Linked dynamic array formulas can return #REF! on refresh once the source is closed, and Microsoft documents that links directly to other workbooks’ structured Tables need the source open to avoid such errors. A single formula showing a valid number against one closed source does not prove that every type of external formula will work with it.

In an audit, write the actual formula type and expected source state next to the error. That gives a teammate a reason to check the feature rules before attempting to repair a path. If you need a rule that routinely brings in whole files, consider an approved import and schema validation instead. A folder query reads matching inputs based on its own criteria and should verify which expected sources were present. It can silently report fewer records or encounter an error when the intake is incomplete, so use a city roster and amount checks regardless of the chosen technology.

Run the link and refresh tests on practice copies

Lab 1. Create six approved links and inspect a closed-source formula

  1. Create the three source documents and Region.xlsx in a practice folder. Save each before constructing its references.
  2. Create the two links per city by pointing to the source file and the specific Summary cell. Compare each displayed file, tab and address with the approved roster.
  3. Calculate the desired region totals and averages. Check 412000 and 1430 for Pune, 911000 and 3315 for the region, and 274.81 for its order average.
  4. Close Pune’s source file after saving it, leaving Region open. Inspect the shown formula’s path or source selector and record whether the number remained 412000. A cached value can explain retention without proving a refresh.
  5. Verify one approved refresh using the compatible client’s controls. Record the result and the saved source location. Do not replace the source with an unrelated same-name copy.

Record the exact visible formula using sample data only. The underlying displayed path can contain a real user folder name or a private company URL in a workplace environment. If you prepare a practice screenshot for sharing, use the synthetic workbook copies and check the reference text is appropriate for the intended audience. The story you want to tell is that one named city source supplies an approved cell, rather than the details of a company's file infrastructure.

Lab 2. Validate the correction and prepare two different handoffs

  1. Build or verify a separate complete practice set linked to its own authorized files. Record the baseline totals and the destination’s approved path per city.
  2. Save the Nashik source correction to 300000. Close it and inspect the destination’s last known values or update status. Use a compatible allowed link refresh and wait for the results.
  3. Check all four differences: Nashik sales +32000, unchanged Nashik orders, region sales 943000, and regional average 284.46 over 3315 orders.
  4. In a separate workbook you create for the test, paste values from the verified Region report and label it with the approved cutoff. Confirm the pasted cells contain values and compare all seller rows and the total.
  5. Restore the correction test source to 268000, save and refresh its working destination. The verified live analysis should return to ₹911000; the approved test snapshot remains at ₹943000.
  6. Identify which handoff is suitable for a recipient who must refresh later and which matches a signed-off historical read. Keep the original live file distinct from any snapshot.

Validate the links, the inputs and the report population

Write down every destination and source pair

There are only six linked cells in the practice destination. That makes it practical to audit every one. Region B2 and C2 read Pune B2 and B3. Region B3 and C3 read Nashik B2 and B3. Region B4 and C4 read Nagpur B2 and B3. A learner who remembers the file names but swaps the earlier and later source addresses will fetch real numbers in the wrong fields. Keep a separate row for each destination in the review roster and write what the source number means beside it. The label “Delivered orders” is especially important if a source Summary has several different counts.

Destination formulas for the open-source desktop example. Let Excel generate the exact path for your files.
Destination on RegionExpected resultIllustrative workbook formula
B2 · Pune sales412000=[Pune_Nov.xlsx]Summary!$B$2
C2 · Pune orders1430=[Pune_Nov.xlsx]Summary!$B$3
B3 · Nashik sales268000=[Nashik_Nov.xlsx]Summary!$B$2
C3 · Nashik orders980=[Nashik_Nov.xlsx]Summary!$B$3
B4 · Nagpur sales231000=[Nagpur_Nov.xlsx]Summary!$B$2
C4 · Nagpur orders905=[Nagpur_Nov.xlsx]Summary!$B$3

Practice reading the source pairs in reverse. The city lead knows only their two approved numbers and where they wrote them. Tell that person which Region cells use those two numbers and what the result should be after a change. If the region destination combines many sources in one long formula instead, the file links can still work, but someone debugging will have to inspect several source names in a single cell. The separate six-cell layout makes it easy to identify which source is stale, which denominator changes, and which row belongs to the affected city.

Compare the workbook’s refreshed value with a separate receipt

Imagine Nashik's lead sent a revision receipt recording ₹300000 at 3:00 p.m. for the November close. The team’s prior receipt says ₹268000. Region still displays ₹911000 when Raja opens it. The disagreement first gives him a precise expected gap of ₹32000. He can verify Nashik’s approved Summary B2 and Summary B3, then inspect the destination’s source path and refresh status. If the workbook updated before he opened it, he can read the saved earlier comparison to verify the delta. If the path is correct but access is denied, he can communicate that today’s report still displays an earlier approved value.

Now imagine an employee saved a similarly named copy with ₹286000 while trying to analyze a proposed correction. The file opens and has a number in the right cell. The resulting Nashik average would be ₹291.84 using 980 orders, and region sales would become ₹929000. Neither sheet position nor numeric coverage catches the version mistake. Confirm the documented receipt, region input roster and saved source together. An analyst who captures the right file with the wrong version can deliver internally consistent calculations from an unapproved amount.

Keep the expected correction receipt separate from the formula’s saved value. If both expected and observed come from the same workbook precisely because they share the same link, they can agree even when they both read the wrong version. For this exercise write down 268000 and 300000 as independent control values before making the one permitted source change. Record the original and current file path in your practice notes, then compare orders as an unchanged check. The fixture proves a particular dependency changed while the rest of the report was stable.

Check a missing city before presenting a region ratio

Suppose the Nagpur source has not arrived. The two other reports sum to ₹680000 across 2410 orders, giving ₹282.16. That can be an accurate result for Pune and Nashik. The published three-city region should show the coverage gap, because those two cities describe a different population from the original November region. Document whether the agreed workflow withholds the result or shows a labeled two-city interim status. A region average that omitted one file can still look realistic and fall between the remaining city averages.

Try this diagnostic on paper. If a copied link accidentally substitutes Pune for Nashik, the three labeled Region rows still have a valid amount and positive count. The actual input records are now Pune, Pune and Nagpur. That gives ₹1055000 and 3765 orders, with an average close to ₹280.21. A simple check that all sales and order cells contain numbers would pass. It is the city-to-source identity audit that catches the repeated file. The complete source roster should show each approved city file exactly once for this report design.

Use one review row per source with columns for City, Expected filename, Verified period, Sales observed, Orders observed, and Ready. When a city’s saved input is unapproved, write the missing evidence clearly. A count of three Ready entries establishes that each required message was received. It does not replace verifying the arithmetic and making sure each checked source is genuinely distinct. For example, put the observed file identity in a separate column rather than comparing an expected filename to a copy of itself.

Specify a working refresh procedure and a historical handoff

When the recipient will do future month closes, send or share the maintainable workbook using approved storage and a documented source roster. Check whether they can access the exact sources using their own authorized account. Do a planned correction test with dummy data, such as the Nashik example, before they are responsible for a live report. A local path in a formula can resolve on your machine and fail on theirs. A shared folder can still contain several source versions. Identify the eligible file and period before relying on its links.

If a recipient only needs the signed-off November results, a separate historical export can keep the six verified values and its source date without requiring an active local file relationship. Use a new workbook or another suitable static format, then check the destination values and labels independently. Preserve the live source architecture in the original Region workbook. If a static report leaves the team, confirm that the file's exposed labels and data are appropriate for that recipient. A portfolio screenshot made from the fictional practice data can use a simple source roster with no real names or paths.

Keep the two deliverables clearly labeled over time. For example, “Region November working” suggests the workbook can still recalculate from approved links. “Region November approved as of close” tells a reader when its reported amounts were frozen. Distinguish the sample provided by the instructor from any later correction scenario. A filename is a human cue. Include the cutoff and purpose inside the file too, where someone reading copied numbers can still find them.

Evaluate whether individual file links still fit the reporting workload

For this practice problem there are three consistent sources, six values, and a stable monthly workbook design. Direct references are easy to inspect. If the region grows into dozens of cities with different internal workbook layouts, agreeing on a common export and validating an import may be easier to maintain. A query that reads a folder needs checks of folder contents, file naming, period selection and schema. A folder location alone does not define which version or file belongs in a report. Your approved roster and expected input structure matter in that workflow as much as in the six-cell workbook.

If two cities send revised figures after every close, choose whether you are calculating the latest approved view or reproducing the historical signed-off one. A recalculated live file can deliberately show newer results, while a frozen export preserves what was approved. Store a modest audit trail of the source edition and acceptance time. Then a difference of ₹32000 is attributable to an amended input rather than an unexplained change in Excel. The technical link and the business approval answer two different questions about the reported value.

Review the definition behind a changed denominator

The example correction changes one sales amount while its order count stays 980. Consider a separate scenario on paper. Nashik’s lead discovers the 980 count includes 20 cancelled orders, while the ₹268000 numerator always represented delivered sales. The approved delivered count would be 960. The original regional sales total can stay ₹911000 while its count drops to 3295. The new average is roughly ₹276.48, and the comparison remains valid because the scope of numerator and denominator now agrees. This is independent of the ₹32000 sales correction.

The numbers are easier to investigate if the input workbook has a written metric list. Put an agreed definition beside each source cell, and ask an owner to confirm changes to both definitions and numbers. If a new business policy excludes cancelled orders across all cities, every city's count needs review, even when the first known disagreement came from Nashik. Update the region's metric name after stakeholders approve the policy. A link can carry the new count and recalculate the average. It cannot determine whether the source owner used the same rule as the other teams.

Distinguish source calculation, link refresh and report calculation

In the practice sources B2 and B3 contain numbers typed by a student. In a real file B2 can instead be a formula adding approved invoices. Someone must confirm that the source calculates the intended result and saves it. Then the destination’s workbook link needs to read the approved source. Lastly the destination’s own totals and ratios need to calculate from those linked inputs. A successful refresh does not repair a source formula that summed the wrong invoices. Recalculating the regional average from its six displayed numbers also cannot fetch newer source data by itself.

Try this extended task on a fresh authorized copy. Replace Pune’s B2 input with =400000+12000, confirm its result 412000 and save that city file. The link still reads the calculated value. Change the second term to 13000, verify and save the new ₹413000, then refresh Region using the usual fixture process. The expected regional total is ₹912000 across 3315 orders. Confirm the ₹1000 increase is exactly localized to Pune. Keep this exercise separate from the Nashik correction. Similar unequal edits from several sources at once can make attribution harder.

Before reporting success, write one line for each stage in the review. Record the actual amount and version approved in the source, the destination link status and path, and the output after calculating its dependent formulas. A person using your instructions can then reproduce the test and locate the first stage that disagrees. If the link works only in your own session, compare supported storage, file access and client behavior with the recipient before issuing a working file.

As one final comparison, open the original linked report and the approved corrected snapshot side by side. The fixture deliberately gives ₹911000 in the restored working report and ₹943000 in the separately labeled correction snapshot. Explain the differing sources and cutoffs to someone before deciding whether a new refresh is necessary.

Describe the source and the expected downstream result

Quiz

What does the part in square brackets identify?

The source workbook. The Summary worksheet and the source address follow it. The workbook path can appear when a local source is closed.

Where do you read the source file and source address?

Check the formula bar and the workbook-link listing where your client offers it. Then open the approved source and inspect the labeled Summary cell.

How is ₹274.81 calculated?

Divide ₹911000 by 3315 approved orders and display two decimals. Dividing total sales by total orders weights every eligible order equally.

Does an old correct-looking amount prove the file refreshed?

It may be a retained value from an earlier successful read or save. Check refresh evidence, source version and a known changed input to establish current behavior.

What changes after the Nashik correction is successfully read?

Nashik's sales gains ₹32000 and its order count is unchanged. Regional sales is ₹943000 and its average is ₹284.46 over 3315 orders.

Interview questions and answers

How do you prepare three source workbooks to feed one summary?

Give all files a stable approved period, metric definitions, exact Summary columns and a reliable versioned intake. Verify the actual file paths and pointed cells before aggregating the values.

Would you paste the same source formula down for multiple cities?

I would create each workbook reference explicitly in this design. A copied formula generally keeps the same explicit workbook name, and the absolute cell in the example also stays pinned.

Why might closed workbook links exhibit different results?

Path, access, permitted refresh and formula type all matter. A direct single-cell link differs from a text-generated INDIRECT or a linked spilled array.

How do you verify an approved update?

Check the source value is saved in the planned file, refresh the correct destination source when authorized, and compare before and after against a predicted amount and an unchanged control.

When would you give a report recipient a static copy?

When their task is reading an approved result at a known cutoff, give a verified separate snapshot and preserve the maintainable workbook. If they need updates, manage shared source storage and permissions instead.

Revision cards

  • Source and destination. A report formula reads a worksheet cell from a specific workbook.
  • Point to the value. Let Excel construct the source reference from the open practice file.
  • Refresh evidence. Check a saved source change and the destination's actual resulting value.
  • Order-weighted mean. Combine approved sales and order counts before dividing.
  • Known source. Review the path and its permissions before authorizing external refresh.
  • Handoff method. Preserve a live workbook for maintenance and date a separate fixed report if required.

See the original three-file illustration, visit the Excel Practice Task Hub or continue to fixing and managing workbook links.

Microsoft references