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

Excel

23. Formulas Across Sheets and Workbooks

Abhishek receives January, February and March numbers from four fictional grocery outlets. Some values are already in one workbook and some come from separately saved files. He needs one quarterly report that can be explained and checked. Copying amounts into a new sheet may solve one meeting. It can also leave the report looking current after a source number changes. A good Excel model connects an output to the intended input and makes its assumptions about cell position, file identity and refresh status visible.

Use the fictional Blinkit-style sales context from the original chapter. These values do not represent a real company's records. This introduction shows how to read a sheet reference, compare aligned monthly sources, test the impact of worksheet order and choose another tool when the source layout changes. Later lessons cover ordinary ranges, Excel Tables, 3-D formulas, text-based references, workbook links and consolidation one at a time.

First identify the evidence and how it is organized. The right reference depends on whether you need one address, a changing list, a group of identical sheets, a different file or a combined summary.

Know the fields of a reliable link

  • Destination. The sheet and cell where you want a report number to appear. For example Summary B2 is the report's January Pune cell.
  • Source. The worksheet cell or compatible data column that actually holds the approved number, such as Jan B2.
  • Rule. The formula or extraction method. A direct address link, a conditional sum and a link to another file behave differently.
  • Verification. One known result and one controlled change. Confirm what the link reads and whether the intended workbook and source date are current.

Think of a workbook as several pages made for different jobs. The source can keep full month details while the summary displays key numbers. A formula reads a source through its address or name. It does not move that source into the report. If you paste values, the destination keeps the numbers as they were at the time of the paste. Both approaches can be appropriate. A live report needs a working dependency and a checked update. A static report needs a visible cutoff and an explicit label.

Begin with one amount you know

Use a workbook with worksheets named Jan and Summary. Type 412000 as a number into Jan B2. In Summary B2 type =Jan!B2, or type an equals sign, click the Jan tab and select B2, then confirm. The formula reads the worksheet called Jan, a separator written as an exclamation mark, and the cell B2. Expect the exact value 412000. Format the destination as rupees if useful. A source or destination format can make the same numeric value appear differently.

Names with spaces need single quotation marks, for example ='Pune Sales'!B2. A sheet name containing an actual apostrophe needs that character doubled inside the quoted name. To refer to B2 on a sheet named Manager's Sales, use ='Manager''s Sales'!B2. Selecting the source with the worksheet tabs makes Excel form the correct reference. Inspect what appears in the formula bar. Choosing the wrong tab still creates a syntactically valid reference to the wrong source.

Use a range in a calculation when you need several cells. =SUM(Jan!B2:B5) adds the numeric values in that exact set of rows. The sheet name qualifies the range. B2:B5 describes four cells and is separate from an entire column. A new numeric row in B6 is outside the original explicitly bounded read unless you extend or rebuild the source. Dollar signs control reference movement when copying a formula. They do not expand the range to gain future rows.

Distinguish a cell address from a record key

The original monthly exercise assumes the same four outlets appear in the same order on Jan, Feb and Mar. Row 2 means Pune on each sheet. A direct row reference relies on that layout. If someone sorts February by amount or location independently, its row 2 might become another outlet. Excel can still read February B2 successfully. The report may silently relate it to the wrong city. When row position can vary, use a verified key-based lookup or conditional calculation with explicit match checks.

A normal range means ordinary worksheet cells. You can lock its coordinates in a formula that is filled across a report. An Excel Table has a Table name and structured column names such as tblOrders[Amount]. A structured reference identifies the named column in the intended Table. Rows confirmed within the Table can be included as it expands. A row typed nearby may remain outside it, and a duplicate order or invalid amount still needs a separate control. A named data range is only as meaningful as the records it actually contains.

Jan sheet B2 contains 412,000. Summary B2 uses the formula equals Jan exclamation B2. A pasted 412,000 has no source link.
Read the formula bar and test one controlled source edit to distinguish the linked cell from a copied value.

Choose simple source tab names and preserve meaningful keys

A short stable tab name helps learners understand formulas. Use Jan, Feb and Mar for this single-year exercise and put the year in the report. If the workbook later contains multiple years, label each source month distinctly or combine data in a Table with a real period field. A worksheet can only have one tab with the exact same name within one workbook. A report that uses January as a category needs both period and year if values can come from different reporting years.

Write a small source contract. List the name of the workbook, the month tabs, the expected A2:A5 outlet order and whether the B column contains recorded sales in rupees for matching definitions. If a source changes its measure from orders placed to order amount delivered, the address may remain the same. The contents would have a different business meaning. A good report names both the cell and its expected type and scope. Test one known row and the number of contributing records before comparing months.

Use the original outlet month values

Create the worksheets Jan, Feb, Mar and Summary in one fictional practice workbook. Put Outlet and Sales in A1 and B1 of each source sheet. Type the outlet labels in the same row order and the respective month amounts in B2:B5. The numeric values in the table are rupees. Keep the input dates and month names known separately if you later repeat the example for another year.

Original chapter values for the four fictional outlets
OutletJan ₹Feb ₹Mar ₹
Pune412000398000455000
Nashik268000281000292000
Nagpur231000244000239000
Kolhapur189000176000201000
  1. Set up the destination rows. On Summary put the four outlet names in A2:A5 in the same order and use January, February and March labels in B1:D1.
  2. Read the months. Enter =Jan!B2 in B2, =Feb!B2 in C2 and =Mar!B2 in D2. Select the three formulas and fill down to row 5.
  3. Check first and last sources. B2 should read Pune 412000, and B5 should read Kolhapur 189000. Check the formula bar for Jan B2 and Jan B5 respectively.
  4. Check known totals. January across the four outlets is ₹11,00,000, February ₹10,99,000 and March ₹11,87,000. The quarter total is ₹33,86,000.
  5. Compare a measured change. For Pune, February amount minus January amount is −₹14,000. Its relative change is 398000 divided by 412000 minus 1, about −3.40%. The negative sign means the later measured amount is smaller.
  6. Update a controlled copy. Change Jan B2 from 412000 to 413000. In normal calculation the Summary's linked value should become 413000, January total ₹11,01,000 and quarter total ₹33,87,000. Recalculate as needed in the intended client, then restore the original fixture.

The expected Pune change depends on a positive valid January amount and valid February data. If January actually recorded zero, the absolute comparison can still be calculated, but the percentage change off that denominator is unavailable. If its amount is blank or not numeric, the report needs a data review rather than a numerical zero. A direct reference to a genuinely blank source can display zero. Check data types and verification status before using an unguarded result.

A simple independent check for the four original values is =SUM(Jan!B2:B5,Feb!B2:B5,Mar!B2:B5). Here the set is explicit. The total includes the same intended numeric ranges even when you place an unrelated tab among the month tabs. If the workbook's monthly layout is intentional and stable, a 3-D reference can make the formula shorter. Worksheet order then becomes part of the source definition. In the next lab you will see how a single inserted worksheet changes the included set.

  1. Locate the source

    January Pune occupies row 2 of Jan and has numeric amount 412000.

  2. Use the correct address

    Summary B2 reads Jan B2 using a sheet qualifier and an exclamation mark.

  3. Test an input change

    Set Jan B2 to 413000 in your copy. Summary B2 and any correctly linked monthly total increase by ₹1,000.

  4. Verify the baseline returns

    Restore 412000 and check the month and quarter again. Verify a known source before sharing a copied report.

See how row order can invalidate a good-looking reference

On a disposable copy swap the entire Pune and Nashik rows on Feb by using a safe temporary area, or recreate the four rows in the alternate order. Keep Summary A2 as Pune. The formula reading Feb B2 now displays ₹2,81,000 under Pune even though that is Nashik's amount. The apparent change versus Pune's January amount becomes approximately −31.80%, very different from −3.40%. The monthly total remains ₹10,99,000 because every amount is still present once. A total match alone cannot verify all row associations.

Test the underlying record and restore the sheet. At the original identical row layout, you can verify the expected label with =Feb!A2=A2 on Summary, where local A2 holds Pune. That check reads whether the expected label matches the source. It does not rebuild a source after reordering. If the operational workbook permits each city lead to sort their report, use a real outlet key. Check one uniquely matched record for that key before retrieving its amount. A new table or reliable lookup can allow independent sort orders without silently reclassifying cities.

Verify blank and zero separately

In a separate practice copy clear Mar B2. The source no longer contains a verified March amount for Pune. The quarter's numeric total falls to ₹29,31,000. March Pune might display zero through a simple direct reference, even though you did not measure zero. Test =IF(ISNUMBER(Mar!B2),Mar!B2,"Review March amount"). It reports the review state for a blank source and numeric zero for a deliberately entered zero. It also prompts a review for an amount accidentally stored as text. This guard establishes type, while the source contract still needs to define whether the value is approved.

For the simple fixed-layout workbook, =COUNT(Jan!B2:B5,Feb!B2:B5,Mar!B2:B5) should count 12 numeric amounts. The blank Mar B2 reduces it to 11. Replacing the blank with a verified zero brings the numeric count to 12 even though the numeric total stays ₹29,31,000. Pune's available-month average with an empty March is ₹4,05,000 over two numeric months. With a measured zero it is ₹2,70,000 over three. The two states are different evidence. Restore the approved March amount after checking them.

Work with a small separate workbook

Create another practice workbook with Jan, Feb and Mar tabs in that order, and a Summary tab outside those boundaries. On these test sheets put 100, 200 and 300 in B2 respectively. These are deliberately different scale values for tracing membership. On Summary enter =SUM(Jan:Mar!B2). The formula reads the same location on the sheets from Jan through Mar, both endpoints included. Expected result is 600.

Create a worksheet named Adjustment between Feb and Mar and type −50 into its B2. The same visual formula can now total 550 because an extra tab sits within its selected sheet interval. Verify the result and the actual tab order. Move the Adjustment sheet outside the Jan-to-Mar group in the practice copy and expect 600 again. This is a meaningful distinction between referencing a worksheet interval and naming a fixed list of individual worksheets.

Independently predictable 3-D membership changes in the small practice workbook
CaseRelevant tab order3-D sumExplicit month sum
OriginalJan, Feb, Mar600600
Insert AdjustmentJan, Feb, Adjustment, Mar550600
Move Adjustment after MarJan, Feb, Mar, Adjustment600600

For the explicit check use =SUM(Jan!B2,Feb!B2,Mar!B2). It names precisely three months, so Adjustment does not enter that calculation by changing tab position. Compare both results after each trial. The difference points at scope membership. If the quarter report should include a real approved adjustment, document that policy and select a formula that matches it. A general rule about whether adjustments belong cannot be inferred from a convenient tab name.

Jan 100, Feb 200 and Mar 300 total 600. An Adjustment sheet with minus 50 inside the two boundaries changes the 3-D sum to 550.
A 3-D formula uses tab order for membership. Inspect the actual sheet span after inserting or moving sheets.

Extend the 3-D test to the actual monthly workbook

Return to the outlet workbook, make sure the Jan, Feb and Mar tabs are in the correct order and keep Summary outside their span. In an unused report area enter =SUM(Jan:Mar!B2) for Pune and verify ₹12,65,000. Extend to =SUM(Jan:Mar!B2:B5) for the four-outlet total ₹33,86,000. Compare with the explicit range sum from Lab 1. Both calculations should agree for the intentional layout. If February row 2 belongs to another city, the pooled row result can be wrong even while total sales equality still holds.

3-D references work with supported functions such as SUM and AVERAGE. Before teaching a conditional aggregation or lookup, check whether its proposed function supports that reference form. The chapter uses a single compatible fact table for more flexible filtering and labeled row analysis. AVERAGE across a 3-D span uses the available numeric values, so missing month cells are not automatically observed zeros. Check which records belong to the scope and what the intended denominator should be.

Check the visible sheet interval after a routine workbook change

If a teammate adds a Forecast tab between Jan and Mar and puts a plausible amount in exactly the same B2 cell, the 3-D total can change even if only approved monthly tabs were meant to count. Keep the included worksheets visually grouped and use a release test that checks tab membership and known report totals. In the original fixed quarter use the explicit range sum as a cross-check. A workbook with a special starting and ending tab can make the interval visually clearer, and it still includes any ordinary worksheet placed between those endpoints.

The Summary tab belongs outside the input interval. If the output cell is read by a formula that also includes that output position across the group, the workbook can create a circular reference. In a simple practice sheet, check only the intended input tabs and known values. Avoid using incidental totals or reports inside a range intended to include monthly sources alone. In the next lesson on 3-D references you will examine how moving or deleting endpoints can change the actual referenced span.

Read a fixed address or find a record using a key

Use a direct sheet reference when the source is an intentional stable location, such as a reviewed total in Month Summary B2. Use an ordinary range with appropriate anchors when a fixed summary or scoped checklist uses several values. When users will fill formulas, decide whether each row or column should advance. For example using =Jan!$B$2 keeps both coordinates fixed during ordinary copying. When copied down, =Jan!B2 advances to B3. Copying and moving a formula are distinct operations, and structural edits can alter references. Verify what the worksheet actually reads after rearranging it.

Use a structured Table when operational rows grow and a compatible complete source can hold them all. On the Orders sheet you might list one approved row per order with City, Month and Amount. Use an appropriate conditional sum for a city and month. The formula follows more than the physical row order. Keys still need validation. If two source fields share an ambiguous label or if new rows lie outside the Table, the result can remain incomplete. A workbook can have a valid formula and an incorrect source contract.

Use a selector only when the choice has a clear source

INDIRECT turns a text reference into an evaluated reference. In a workbook with stable template tabs you can build a sheet address from a validated selector. Text must match the actual tab name, and renaming or altering the source layout can leave the constructed address stale even when an ordinary internal link would update. Keep the allowed choices and a visible composed address near the result. Microsoft describes INDIRECT as unable to read a closed external workbook and limits external references for this function in Excel for the web.

If the selector is simply “show February orders,” a single Table with a true month column can often answer it with direct criteria. Keep the difference between selecting a label and constructing a reference explicit. The 3-D formula selects a span of worksheet tabs. INDIRECT reads one textual location. A table summary can select multiple records by data fields. Choose the smallest predictable design that lets a reader verify the original sources.

Manage linked files and combine sources deliberately

A direct workbook link can read a cell in another supported Excel file. Create ordinary practice links by pointing at a source you made and can inspect. The formula may include a workbook name in brackets and a path when the source is closed, depending on where and how it is stored. Link freshness depends on access, saved source values, client behavior and refresh options. A number left from an earlier refresh may still display correctly for that earlier date. State when the linked value was verified.

Use Workbook Links to review file identity and supported refresh or repair operations. Changing source should point at an approved compatible workbook. Breaking a link converts affected formulas to their values, so check the intended source freshness and keep a separate master first. Access permissions and workbook organization can affect different readers. In an import or consolidation task, compare record definitions, type, units and exact scope before bringing sources together.

Consolidate can summarize multiple selected ranges using fixed positions or matching labels, depending on how the source is organized. When city summaries list product categories in different row orders, ask for category matching. If you need to retain each approved original record from compatible data, choose an append approach and preserve the source fields. Adding figures by category and stacking categorized rows answer different questions. The same source can support both if the analyst documents the grain and checks totals.

Try a small approved workbook link before connecting operational files

Create a source workbook with the approved January Pune total in Summary B2 and save it under a clear name for this exercise. Create a separate destination practice file. With both open in a supported desktop client, type an equals sign in the destination, switch to the source workbook, select Summary B2 and confirm. Inspect the actual formula and note its workbook name, sheet and address. The display should read 412000. Use the linked cell as a test rather than typing a path you have not verified.

Then update the approved source to 413000 in the practice file, save it and use the normal supported refresh procedure in the destination. Check the source path and result. A stale value can show 412000 if the connected file is not current, not saved, unavailable or not refreshed. A number can remain correct for the old date and still be wrong for the revised report. If the application requests link trust, review and use only the practice source you created and its intended dependency. Keep unrelated workbooks out of the test.

A version shared with someone without linked source access needs a clear plan. You might keep an authorized linked original and distribute a verified snapshot with its cutoff, or provide appropriate approved access for an interactive workbook. Test the intended mode. A snapshot can safely preserve the decision numbers only after you confirm the newest data and label the report. Replacing live formulas with values in the only editable original can make it difficult to update the next month.

Compare matching categories with keeping original records

Consider three fictional city category lists where Dairy appears near the top of each report and at a different position in one. In the original consolidation exercise Pune has ₹52,000 Dairy, Nashik ₹33,000 and Nagpur ₹41,000. The combined Dairy amount is ₹1,26,000. Fruits ₹61,000, ₹47,000 and ₹36,000 combine to ₹1,44,000. Those labels can be matched by category even if the rows are sorted differently. A position-only sum could mix Dairy and Fruits if the order differs from sheet to sheet.

In a category summary, if one outlet has a Bakery row at ₹21,000 and others do not list Bakery, the combined visible Bakery amount comes from that approved row. It does not prove the other sources' amounts are measured zero. Check how absent categories are defined and whether source coverage is complete. A normalized data model can preserve a missing state or a confirmed zero separately. Choose amount units and compatible reporting periods before consolidating.

If you need records with the original city and category dimensions, you can keep compatible rows in one appended query instead. Microsoft documents that Power Query append aligns columns by header name and introduces null for unmatched columns. Check that the name and type of each selected field mean the same thing in all sources. Appending preserves rows; it does not group the Dairy amounts into one total by itself. Use a later separate summary only after confirming the source structure and record count.

Follow the chapter in order

Use a short release test for any new link

  • One address. Check the source file, sheet name, original reference, unit and one expected value before copying it.
  • One real change. Alter a known practice input, recalculate or refresh as necessary and verify the output changes by the expected amount.
  • One wrong-scope test. Reorder monthly rows in a copy or move a worksheet across the 3-D boundaries. Verify whether the output reflects the current intended scope.
  • One coverage check. Check counts and missing amounts beside sums. A total can match even when the values no longer belong to the printed row labels.
  • One saved version. Save a snapshot or dynamic file with its intended source and cutoff. Ask a reader to specify which edition they opened.

Give your classmate the fictitious month ranges and ask for three answers without showing your totals. They should reproduce January ₹11,00,000, Pune quarter ₹12,65,000 and the full ₹33,86,000. Then introduce the small Adjustment worksheet test and ask them to predict whether a fixed explicit month list will change. The distinction between a 3-D span and a fixed list matters when monthly tabs get moved, copied or inserted during a future release. Test in the real Excel client when adopting a workbook structure.

Notice the difference between changing data and reorganizing it

On a disposable copy create a link to Jan B2 in Summary B2. Copy it down one row to see how the unpinned source row advances to Jan B3. If you instead want the original January Pune figure in every label, use the fully anchored Jan $B$2 reference. Microsoft's worksheet formula guidance distinguishes copying, where relative coordinates can adjust, from moving the formula, where the reference does not shift simply to preserve the same relative offset. In an existing workbook, also inspect references after moving source cells, renaming tabs or copying sheets between files.

Rename an original same-workbook Jan tab through the Excel tab command to Jan 2026 on a separate copy. Inspect the direct reference built earlier. A direct dependent can be updated by Excel to use the quoted new sheet name. A manually typed text value that says Jan remains its typed text until you edit it. If a report selector constructs an INDIRECT address from Jan, check whether the old text still points to a valid tab. This exercise keeps the direct calculation and the text control visible so you can see which object changed.

Try a second controlled comparison in the monthly report. Copy the direct January Pune amount into another cell using Paste Values. Both cells initially show ₹4,12,000. Change the source to ₹4,13,000 and recalculate. The direct formula should show the updated amount, while the pasted number should remain ₹4,12,000. If someone asks for a frozen review copy, that difference becomes useful; label the frozen state with the correct verified date. If they need a live workbook, find the correct formula instead of using a static pasted output.

Keep the local report in good shape before changing an external dependency

Try a source swap on paper before touching any source workbook links. If the replacement has the original amount at B2 but a different level of aggregation at B3, an existing count link can return a valid number for the wrong measure. If you move the link to a different period, all downstream comparisons may change. A release check reconciles expected file identity, month, measure, address and actual value. A replacement file's name is evidence only when it also fits the data contract.

Before sending a quarterly workbook, write down how a reader can check the amount without using your edit session. Provide one local formula with its normal source, one published value with its verified cutoff and a note explaining any external dependencies. If the workbook is kept solely within one file, a formula can update when the source changes in supported calculation. If another file or query supplies numbers, verify availability and refresh separately. This distinction helps avoid promising self-updating results regardless of the user’s client or file access.

Use the same verification status language in the visible report and in the notes. A known quarterly total, a partial result with one missing month, and a snapshot waiting for refresh can all look reasonable. Their labels should show what a person can rely on. Give readers one known value they can independently compare with the formula or the saved report before using the quarterly total.

Five practice questions with worked answers

Which cells does =SUM(Jan!B2:B5) read?

It reads column B at rows 2 through 5 on Jan. A separate new row beyond B5 is outside that explicit range until the range changes.

How do you refer to a sheet named Pune Sales?

Use the quoted name with an exclamation mark and address, such as ='Pune Sales'!B2. Selecting the source cell can build Excel's syntax.

Why can inserting Adjustment change the 3-D total?

The formula uses the same address on every worksheet within its sheet endpoints. Adding a −50 cell on a tab within the interval makes 600 become 550 in the small lab.

Does copying an Excel value preserve calculation?

Paste Values creates a static number. Keep a live formula if the report should track the source and label a static result with its approved cutoff.

What must stay consistent when a direct link reads Pune as row 2?

The source sheet has to keep Pune at that intentional address. If the layout can reorder, use a validated outlet key rather than assuming the row matches the label.

Five interview questions with worked answers

How would you build a cross-sheet reference from scratch?

I identify the destination, the worksheet and source address. I enter the formula by selecting the source or using correct sheet syntax, then test a known value and change.

When would you avoid a 3-D sum?

I would avoid it where tab order and aligned position are not a reliable source of membership. I use checked explicit references or a table with meaningful record keys.

Can an external link look valid but be stale?

Yes. Access, refresh status, file identity and saved values matter. I verify the last successful checked source and compare a known current value before release.

What is the difference between a fixed range and a structured reference?

A fixed range names cell positions. A structured reference names a Table and its fields, and can include added rows that really belong to the Table. Both need a checked source.

How do you decide between Consolidate and append?

I choose Consolidate for the intended summarized groups across compatible ranges. I append when I need to retain rows for detailed filtering or later calculation.

Revision cards

  • Address. Same workbook sheet name, exclamation mark and cell or range.
  • Quotes. Use the exact sheet name and correct single-quote syntax.
  • Key. Match the real outlet or order identity when layout changes.
  • 3-D. Same coordinates and verified tab interval.
  • Workbook link. Know file identity, trust and last checked data.
  • Operation. Match ranges, consolidate categories or append rows for the intended scope.

Keep the original cross-sheet formula revision card and 3-D, INDIRECT and Consolidate revision card. The Excel Task Hub provides additional exercises.