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

10. Power Query in Excel

Excel

10.3 Get Data from Folder: Combining Monthly Bank Statements

Power Query · repeatable monthly imports

Turn a folder of statements into a traceable transaction table

Tara Joshi downloads a statement every month. By July, she has separate files for June and July. Copying their rows into a workbook looks simple until someone pastes June twice, forgets July, or mixes another account into the same report. A total can still look reasonable while describing the wrong collection of transactions. The first useful skill here is choosing the correct files; combining their contents comes next.

Power Query can remember that process. You choose an input folder, define the eligible files, teach Excel how to read one statement, and apply the same reading steps to the other statements. On a later refresh, the query reads the files that currently match those rules. This gives you a repeatable import with evidence about where every row originated.

All people, references, bank records and amounts in this lesson are fictional. The familiar experience of a UPI payment through an app such as PhonePe or Google Pay helps explain the setting; these are not actual statements from those businesses. FreshGo and MarketRush in the sample narrations are practice labels. This is a spreadsheet exercise using one fictional savings account, not a claim about a real customer's finances.

1. Understand the three layers before opening the importer

A folder inventory lists files, not transactions

Imagine opening a folder and seeing its filenames, extensions and modification dates. Power Query initially gives you a similar inventory. Each inventory row describes a file. Its Content field contains the file's contents as a binary value, meaning bytes that still need to be interpreted by the appropriate connector. Six files in that screen do not mean six bank transactions.

  • Inventory layer: select which files belong to this account and reporting period. Keep an exact list of expected names for the first exercise.
  • Individual-file layer: read a CSV, identify its headers, retain its transaction rows, and preserve their original sequence.
  • Combined layer: collect those prepared rows, add reporting columns, check totals, and load the result for analysis.

A filter at the inventory layer can prevent an unrelated file from entering the process at all. A filter at the transaction layer selects records after they have been read. Both can be useful, but they solve different problems. Filtering transactions to June does not prove that you imported the intended June statement exactly once.

A consistent schema is an agreed file structure

A schema describes the fields and their meanings. Our statement files have six fields: Date, Narration, Ref No, Debit, Credit and Balance. Every monthly file must use these same headings and meanings. The number of transactions can change. A new month having three rows instead of six is normal. A new month placing two debit fields under different names needs investigation.

  • Use one account and one currency throughout this exercise. A file's location alone cannot prove its account.
  • Use one monthly transaction export per period. A full-year export overlaps monthly exports and must not be added alongside them.
  • Keep the report workbook outside the input folder. Its output is not another statement to ingest.
  • Retain original files separately when making corrections. Record which version was accepted instead of leaving both versions eligible.

The filename is a useful label, not independent proof. Someone can rename a July file to look like June. Compare its actual transaction dates and statement coverage with the expected period. An empty month may legitimately have no transactions, so a missing month and an explicitly confirmed empty month also need different explanations.

2. Create the original June practice statement

Save a clean CSV with six transaction rows

Create a new practice folder, for example D:\Statements\SavingsAC\ on Windows. Use an equivalent location you can access if your computer uses another drive. The Windows desktop route below is the reference workflow; connector availability and menu labels can differ on Mac or Excel for the web. Do not assume a local drive path is available to a browser or cloud flow.

In a plain-text editor, save the following exact text as Stmt_2026_06.csv using UTF-8. The separator is a comma, dates use day/month/year, and amounts contain no thousands separators. Empty fields between commas are intentional. Do not add an opening-balance row to the transaction file. The opening balance is a separate control of ₹17,450.

Date,Narration,Ref No,Debit,Credit,Balance
01/06/2026,NEFT-SALARY JUN 2026-ACME ANALYTICS PVT LTD,N152600001,,65000,82450
02/06/2026,UPI/FreshGo/PUNE/615300012345,615300012345,412,,82038
04/06/2026,ATM WDL/HADAPSAR PUNE,A0604001,5000,,77038
07/06/2026,IMPS/P2P/MEERA KULKARNI/615800098765,615800098765,2000,,75038
10/06/2026,UPI/MarketRush/NASHIK/616100054321,616100054321,289,,74749
15/06/2026,NEFT-RENT JUN-RAJA,N166600002,15000,,59749

These are the six transactions from the original lesson. We keep their amounts and relationships while making the import instructions more explicit. A narration is descriptive text supplied with a transaction. A reference is an identifier. Neither should be interpreted as an amount simply because it contains digits.

State the blank-field convention

For this practice export, exactly one amount leg is populated for each transaction. A credit means money entering the account; a debit means money leaving it. The other leg is empty because it is inactive. Under this declared convention, the inactive leg can become numeric zero. That permission applies only after checking that the other leg contains a valid positive amount.

  • The salary record has a credit of ₹65,000 and an inactive debit.
  • The FreshGo record has a debit of ₹412 and an inactive credit.
  • A row with both legs empty is incomplete and needs review.
  • A row with an invalid amount such as pending is not a zero-value transaction.
  • A row with both legs positive lies outside this exercise's schema. Keep it visible for investigation.

Different exports may use signed amounts, explicit zeros, separate reversals or other conventions. Read their definitions before adapting this method. A cleaning rule is justified by the export's meaning, not by how convenient it makes a formula. Preserve the raw file so that normalized values can always be compared with the incoming records.

The folder inventory selects June and July. One reading recipe processes each file. The final table keeps filename and row sequence beside every transaction.
Choose the files first, then apply one reading recipe to each accepted file.

3. Select the intended files before combining

Open the inventory and define its scope

  1. Open a new workbook and save it outside the source folder as StatementPractice.xlsx.
  2. On supported Windows desktop Excel, choose Data → Get Data → From File → From Folder. Browse to your practice folder.
  3. Choose Transform Data on the file-list preview. This opens the inventory in the editor so you can inspect and filter it before combining.
  4. Keep the .csv extension and the intended folder path. Folder connectors can include subfolders, so compare the complete Folder Path value rather than assuming only the visible top folder is included.
  5. For the first lab, keep the exact name Stmt_2026_06.csv. Expect one eligible file. Record that name beside your control totals.
  6. Check the file's statement period and fictional account before continuing. A text prefix alone cannot verify its contents.

Filtering the exact name is deliberately strict for the first exercise. It makes the initial input set easy to prove. Later, you will change that selection to allow both June and July. A query that explicitly permits only June cannot discover July merely because you place July beside it. The eligibility rule and the refresh action must agree.

Keep a file register for a growing report

A useful register records the expected filename, account label, coverage start, coverage end, and accepted version. In a small lab, write those entries on a Control sheet. In a managed process, the same idea can become an approved file list. The purpose is to compare what should arrive with what actually arrived, including files that could not be read.

  • notes.xlsx: exclude it because it is outside the CSV statement schema.
  • Stmt_2026_06_copy.csv: exclude it because it is an additional copy, even though its extension is valid.
  • Archive\Stmt_2026_06.csv: exclude its different folder path if the archive is outside the intended input set.
  • Stmt_2026_07.csv: include it only when July is authorized by the exercise's expected period and file list.

A file beginning with ~$ is commonly an Office temporary file, but a filename rule is only one filter. Do not teach that every unrelated file must always cause an error. Some may parse into misleading rows instead. Preventing wrong inputs is valuable even when the connector could technically read them without complaining.

A modification date is not the transaction period. Downloading a June statement today gives it a recent file timestamp while its transactions still belong to June. A report based on transaction month must use the parsed transaction date. Keep file timestamps only as supporting operational information when they help explain which version was received.

4. Apply one file-reading recipe to the accepted files

Inspect the example file

Select the Content column's Combine Files command after filtering. In the combine dialog, choose the June file as the sample and inspect the CSV preview. Confirm the comma delimiter and UTF-8 encoding. If your version offers automatic type detection controls, avoid allowing reference numbers to become numeric before you set their type deliberately.

Power Query creates helper queries for reading the sample and applying its transformations to each accepted binary file. Their exact names may have suffixes when other imports already exist. Identify the sample transformation and the final combined query by their roles. Do not delete helper queries merely because their names look technical; the final result can depend on them.

  • Make sure the first row becomes the six expected headers exactly once.
  • For our fixture there are no introductory lines to remove. Do not add a Remove Top Rows step copied from an unrelated bank export.
  • In the sample transformation, after identifying transaction rows, add Index Column → From 1 and name it SourceRow.
  • Keep Ref No as Text. If an early automatic type step already changed identifiers, revise that step before the conversion occurs.
  • Inspect the final combined output for the file-name field, usually Source.Name. Rename it File without removing its values.

Preserve sequence before sorting or grouping

SourceRow identifies the position within one statement. Adding it inside the sample transformation means each file starts its own sequence at one. The pair File plus SourceRow tells you where to look in the original export. Check that SourceRow is included in the final expansion; if the generated expansion uses an explicit older field list, edit its selection to include the new column. An index added only after combining would number the current combined order and would not provide the same within-file evidence.

Our June dates are all different, but real statements can have several transactions on one day. Sorting by date alone cannot establish their original order. Preserve the supplied sequence and any reliable transaction timestamp. A new sort can organize a report; it cannot recreate a lost ordering rule. For this lab, display by Date, then File, then SourceRow after verifying the periods do not overlap.

The sample-file recipe runs on every eligible file. If an export has three introductory lines before its headers, removing them belongs in that individual-file recipe. Removing three rows only from the final combined output would affect the start of the combined table, not remove the same introduction from every file. Our files have no such introductions, so no removal is necessary here.

5. Set types and create meaningful reporting columns

Read dates according to the export's format

Our text 02/06/2026 means 2 June, not 6 February. On the original text Date column, use Change Type → Using Locale, select Date, and choose a day-first culture such as English (United Kingdom) for this specified fixture. Check the first record becomes 1 June and the final record becomes 15 June. If an earlier automatic step already interpreted the text differently, fix that earlier step instead of formatting the wrong dates.

Set Debit, Credit and Balance to a suitable numeric type, such as Fixed Decimal Number for this exercise's amounts. First inspect the blank-leg convention and all conversion errors. Duplicating the raw amount fields before conversion can help diagnose problems; the immutable CSV also remains available. Do not replace all errors with zero to make the preview tidy.

  • Require six dated transactions in June 2026.
  • Require each populated amount to convert successfully.
  • Require one active positive leg per transaction in this fixture.
  • Only then normalize its inactive blank leg to zero.
  • Keep Balance populated and numeric because it is a separate reconciliation control.

For the validated fixture, the CSV blank amount cells appear as null values in the typed query. Select Debit, use Transform → Replace Values, and replace null with numeric 0; repeat for Credit. Check the formula bar records an actual null value, not the text "null". If your input instead contains spaces or empty text, normalize those representations deliberately before typing and recheck the active-leg rule. A conversion error stays an error for investigation. None of these replacement steps should alter the Balance field.

Month and movement answer different questions

Create a MonthStart column from the Date field using the start-of-month transformation, or the custom expression below. Retain a Date type. A month-start date includes the year, so June 2026 and June 2027 remain different groups. You can format their labels later. Grouping only by the text June would combine years unless another field separated them.

Date.StartOfMonth([Date])

Create Net with the next expression after valid numeric normalization. A credit adds to the account; a debit subtracts. The result is positive for an inflow and negative for an outflow. This column represents movement, while Balance represents the position after a transaction. Keep both names precise.

[Credit] - [Debit]

Classify narrations with a limited, visible rule

A Txn Type column makes a convenient summary for these practice narrations. Use the following expression in Add Column → Custom Column. The early salary check takes priority over the broader NEFT prefix. The raw Narration remains unchanged beside this derived label so the classification can be reviewed.

let
    n = if [Narration] = null then "" else Text.Trim([Narration])
in
    if n = "" then "Review narration"
    else if Text.StartsWith(n, "NEFT-SALARY", Comparer.OrdinalIgnoreCase) then "Salary"
    else if Text.StartsWith(n, "UPI/", Comparer.OrdinalIgnoreCase) then "UPI"
    else if Text.StartsWith(n, "ATM", Comparer.OrdinalIgnoreCase) then "ATM"
    else if Text.StartsWith(n, "IMPS/", Comparer.OrdinalIgnoreCase) then "IMPS"
    else if Text.StartsWith(n, "NEFT", Comparer.OrdinalIgnoreCase) then "NEFT"
    else "Other"

The prefix rules are intentionally tied to this fixture. They do not prove a payment's commercial purpose. UPI describes a channel; it does not tell you whether a payment bought groceries, paid rent, or transferred money to a friend. Similarly, a narration containing a salary-like phrase is not independent confirmation of income. For the practice report, label the column as a derived classification and keep unknown patterns visible.

Try a lowercase version of the first narration in a copy and check that the comparer still recognizes it. Try a blank narration and expect Review narration. Try a new prefix and expect Other. These cases show the boundary of the rule more clearly than a screenshot containing only successful examples.

6. Lab 1: reconcile the June result

Load the transactions and name the output

Rename the final query BankTransactions and load its result to a new worksheet as a Table. Name that Table tblBankTransactions if Excel gives it another name. Keep the query output area clear. Manual values typed directly into refreshed output are not a reliable way to correct the source; they can be replaced during refresh.

On a separate Control sheet, write the expected file count, row count, credit total, debit total, opening balance and closing balance. Compare actual values with those expectations. The following controls describe only the six June transactions, so start with the exact-name June filter from the earlier step.

June controls for the original six-row statement
MeasureExpected resultMeaning
Eligible files1June statement only
Transaction rows6Opening balance is not a transaction row
Credits65000One salary credit
Debits22701Five outgoing transactions
Net movement42299Credits minus debits
Opening balance17450Position before the first transaction
Closing balance59749Position after the final transaction
  • Use =ROWS(tblBankTransactions[Date]) for six transaction rows.
  • Use =SUM(tblBankTransactions[Debit]) for ₹22,701.
  • Use =SUM(tblBankTransactions[Credit]) for ₹65,000.
  • Use =SUM(tblBankTransactions[Net]) for ₹42,299.
  • Check the first post-transaction balance: ₹17,450 plus ₹65,000 equals ₹82,450.
  • Check the final position: ₹17,450 plus ₹42,299 equals ₹59,749.

Trace the running balance without adding snapshots

After the salary, subtract ₹412 to get ₹82,038. Subtract ₹5,000 to get ₹77,038. Subtract ₹2,000 to get ₹75,038, then ₹289 to get ₹74,749, then ₹15,000 to get ₹59,749. Every step matches the source Balance field. This row-by-row check can locate a discrepancy that a single end total might hide.

Adding all six Balance values would repeatedly count money that remains in the account between transactions. It does not measure receipts, payments or closing funds. Imagine photographing the same water tank after each small change: adding the amounts visible in all photographs does not tell you how much water flowed in. Use credits and debits for movement and the appropriate opening and closing snapshots for positions.

June opens at17450, receives65000 and pays22701, closing59749. July starts at59749, receives65000 and pays15500, closing109249. June closing is July opening, not a new receipt.
The closing position carries forward. It is not counted again as a new credit.

Build a small classification summary

Create a PivotTable from the loaded Table. Put Txn Type in Rows and Sum of Debit plus Sum of Credit in Values. For June, the debit totals are UPI ₹701, ATM ₹5,000, IMPS ₹2,000 and NEFT ₹15,000. Salary has ₹65,000 in Credits. The debit classes together must reconcile to ₹22,701.

Read the actual Value field names. If Excel displays Count of Debit, the source may contain text or the field was configured as a count. Fix types where needed and choose the intended aggregation. A count answers how many entries there are; it does not measure their money value. Add MonthStart when you want the same categories separated by reporting month.

7. Lab 2: add July and prove the refresh changed the right things

Introduce a second non-overlapping statement

Save the following as Stmt_2026_07.csv in the same practice folder. It describes three additional fictional transactions, with July opening at June's closing ₹59,749. The opening amount is again a separate control, not an extra row in this file. There are no missing transactions between these two practice statements.

Date,Narration,Ref No,Debit,Credit,Balance
01/07/2026,NEFT-SALARY JUL 2026-ACME ANALYTICS PVT LTD,N182600001,,65000,124749
02/07/2026,UPI/FreshGo/PUNE/618300012345,618300012345,500,,124249
15/07/2026,NEFT-RENT JUL-RAJA,N196600002,15000,,109249
  1. Save the CSV completely before refreshing the workbook. Check that it really has a .csv extension rather than .csv.txt.
  2. Open the inventory filter in the existing query. Change the exact-name selection to allow both June and July, and verify two eligible files.
  3. Keep the same sample-file reading steps. Both CSVs have the same six headers and date convention.
  4. Refresh the final query and observe completion and any errors. A request to refresh is not proof that all work has finished.
  5. Check the loaded Table now contains nine transactions. June SourceRow runs from one to six; July runs from one to three.
  6. Compare the monthly and combined controls below. Refresh the dependent PivotTable after the loaded data is current, then verify its totals too.
Expected movement and positions after adding July
ScopeRowsCreditsDebitsNetOpeningClosing
June66500022701422991745059749
July365000155004950059749109249
June and July9130000382019179917450109249

For the combined period, use the first opening position and the final closing position. Do not add the monthly opening balances. July's opening is money already present at the end of June. The combined check is ₹17,450 plus ₹130,000 minus ₹38,201, which equals ₹109,249. The nine transaction rows and the two-file register support that arithmetic.

Separate data change from refresh success

Refreshing unchanged files should produce the same nine transactions and totals. It should not append another nine rows every time. This folder query rebuilds its result from the current eligible files. It is not an accumulating diary of everything ever imported. If someone removes an accepted file from the folder, its rows can disappear on the next refresh.

  • Run a second refresh without changing sources. Expect nine rows and ₹38,201 of debits again.
  • Inspect File values. Expect the June and July names, with six and three rows respectively.
  • Inspect MonthStart values. Expect 1 June 2026 and 1 July 2026, corresponding to the actual transaction dates.
  • Inspect the final balance row. It must be July's final transaction, not the largest balance found anywhere in the table.

The largest balance is ₹124,749 after July's salary. It is not the closing balance. Picking MAX(Balance) would answer the highest observed position in these records. Finding a closing position requires the correct account, period and transaction order. This distinction matters whenever a report combines movements with snapshot values.

Follow the monthly refresh

  1. Start with a checked June

    One eligible file contributes six transactions. Debits are ₹22,701 and the closing position is ₹59,749.

  2. Accept July explicitly

    The file register and name filter now allow two statements. July contributes three additional transactions.

  3. Read the same schema again

    The sample transformation keeps the same headers, date convention and per-file row sequence. The combined result has nine rows.

  4. Reconcile before reporting

    Credits ₹130,000 minus debits ₹38,201 give movement ₹91,799. Add opening ₹17,450 to reach closing ₹109,249.

8. Use deliberate faults to learn the checks

Duplicate file: correct-looking columns, wrong coverage

Work in a disposable copy of the practice folder. Copy June to Stmt_2026_06_copy.csv. With the exact accepted-name filter, the copy remains excluded and your output stays at nine rows. This is the intended behavior: a valid-looking filename extension is not enough to authorize an extra statement.

To demonstrate the danger, temporarily broaden the filter to accept the copy as well. It contributes another six June rows. The combined output now contains fifteen rows, credits ₹195,000, debits ₹60,902 and net movement ₹134,098. Adding the original opening gives an implied position of ₹151,548, which does not match the real final practice position ₹109,249. Restore the two-file selection after observing the failure.

Do not repair this example by deleting arbitrary repeated references from the final table. The cause is a duplicate input file. Correct the file eligibility and retain the original transaction evidence. A repeated reference might have a different legitimate meaning in another export, so blind deduplication can discard valid records while concealing the actual source problem.

Partial overlap: different names do not guarantee different transactions

Consider a hypothetical file covering 1–30 June and another covering 15 June–15 July. Their names differ, but their periods overlap. A transaction on 15 June could appear in both. A file count of two alone would miss this issue. Inspect coverage dates and an agreed transaction identity rule before treating them as complementary inputs.

For this lesson, the approved approach is non-overlapping monthly exports from one account. If an operational source only offers rolling windows, you need a stronger, documented reconciliation method using its identifiers and version rules. Do not invent that rule from a few example rows. Keep the overlapping records visible while the source definition is clarified.

Schema drift: a changed heading is a changed contract

In another practice copy, rename July's Credit heading to Money In. Depending on the generated query, you may see a missing-column error or a missing field after expansion. Either outcome means the file no longer follows the accepted schema. Compare the headers and revise a deliberate mapping only when the meaning is confirmed. Do not simply delete the failing step and accept whichever fields remain.

  • A new optional descriptive field may be harmless, but inspect whether the final expansion includes it.
  • A renamed required amount field needs an explicit mapping or corrected source.
  • A change from one amount column to separate debit and credit columns changes the reading logic.
  • A file with no transactions still needs recognizable headers and a confirmed empty-period explanation.

The sample transformation is linked to the generated function. Changing its output columns can require checking the final query's expansion and type steps as well. Read the first failing step and the field names it expects. Follow the dependency from source structure to sample result to combined output, instead of changing several unrelated steps at once.

Import errors: a smaller result can still look polished

The combine dialog may offer Skip files with errors. In a teaching experiment you can observe what it does, but do not silently use it to declare a report complete. Excluding a failed July file could leave June's six clean rows and plausible totals. The report would be incomplete even though the visible rows are valid.

Keep an exception list with the filename, error, expected period and resolution. Compare accepted files with expected files, then compare rows per file with source counts. A report can be clearly labeled partial when that is the agreed outcome; it should not be presented as the whole period. Successful parsing and complete coverage are separate checks.

9. Practice tasks with explained answers

Use the original June fixture first, then the July extension. Keep each altered test in a separate copy so an earlier fault does not contaminate the next answer. Predict the expected result before refreshing. The original six tasks are retained here with fuller guidance about scope and verification.

1. Combine the monthly CSVs into one transaction table

Connect to the folder through Get Data, choose Transform Data, and filter the inventory to the accepted names, extension and folder path. Then use Combine Files on Content and inspect the sample CSV. For June alone, expect one file and six transactions. For the approved June-plus-July version, expect two files and nine transactions. A connection to one CSV does not automatically discover its neighboring files.

2. Keep evidence of the file behind every row

Retain Source.Name and rename it File. Add SourceRow inside the sample-file transformation, starting at one after the header is identified. In the combined result, File plus SourceRow should locate each original line. June has six row positions and July has three. Do not confuse the visible combined row number with the original position inside one statement.

3. Find June's total debits

The outgoing amounts are ₹412, ₹5,000, ₹2,000, ₹289 and ₹15,000. Their sum is ₹22,701. Check that the loaded Debit field contains numeric values and that the inactive salary debit became zero only under the fixture's stated convention. If your result shows five instead, inspect whether you counted nonzero entries rather than summing their values.

4. Find June's total credits

There is one transaction credit of ₹65,000. The opening position ₹17,450 is not another transaction credit. Adding it to the Credit column would inflate receipts. Preserve opening and closing balances as separate controls and use the transactions between them to explain the movement. June's loaded credit sum should therefore remain ₹65,000.

5. Recover the opening position before the salary

The first row shows a post-transaction balance of ₹82,450 after a ₹65,000 credit. Subtract the credit to recover ₹17,450. This reasoning depends on the first row being the first transaction of the covered period and on the balance convention. For this complete fixture those conditions are stated. Do not use the calculation as a substitute for checking missing earlier records in an unknown export.

6. Add a new month without rebuilding the transformation

Save July's file, expand the accepted-name selection to include it, and refresh the existing query. Its schema matches June, so the same per-file transformation works. Confirm completion, nine output rows and ₹109,249 final balance before refreshing dependent summaries. A refresh request alone cannot establish that the new filename was allowed or its rows were included.

The existing Excel Task Hub also contains a separate messy-order exercise associated with this topic. That order export is supplementary cleaning practice, not the bank statement above. Use its own labels and currency independently. In any repeated-order exercise, inspect the actual records and identity rules before removing them; a repeated identifier alone does not prove a duplicate transaction.

10. Check your understanding and explain it in an interview

A folder has eight files but only three are monthly statements. Where should selection happen?

Select eligible files in the inventory before combining. Filter the relevant extension, path and accepted names, then verify their account and coverage. This reduces irrelevant inputs and makes the import set explainable. Transaction filters later in the query serve a different purpose and should not replace an explicit file-selection rule.

Why is an index inside the sample transformation useful?

It records a row's original position within each processed statement. The filename identifies which statement and the index identifies where in that statement. Adding one index after all files have been combined only labels the current combined sequence. Preserve the original sequence before sorting if you need to investigate running balances or multiple same-day transactions.

Can every blank debit or credit be replaced with zero?

No. In this fixture, one valid positive leg makes the other blank leg inactive, so that inactive value can become zero. Both legs blank, invalid amount text or an unexpected two-sided transaction require review. The permission comes from the declared export convention. It is not a general rule that missing financial data means zero.

Which value is the two-month closing balance: maximum Balance or final ordered Balance?

The final ordered balance for the covered account and period is ₹109,249. The maximum is ₹124,749 after July's salary, answering a different question. Preserve transaction order and scope to identify the closing position. Neither summing balances nor taking their maximum replaces that definition.

A refresh gives six clean rows after July was added. Is that success?

It may be a technically completed refresh with incomplete coverage. Check whether the filename filter still permits only June, whether July was placed in the right path, and whether a file error excluded it. The expected register says two files and nine rows. Compare those controls before describing the report as current.

How would you explain the difference between combining and merging?

This folder exercise stacks transactions from compatible monthly files into a longer table. A merge instead connects fields from related tables using matching keys, such as adding account metadata from a directory. Stacking periods and matching descriptions are separate operations. Choose the operation according to the intended output grain and verify counts after either one.

A filename says June but its records show July. Which month should analysis use?

Transaction-month analysis uses the correctly parsed transaction dates, while the mismatch is an input-quality issue to investigate. Do not silently trust the filename or silently relabel the dates. Compare the export's declared coverage, account and accepted version, then correct the source selection with a documented explanation.

How would you describe a reliable monthly import to a teammate?

Explain the accepted file set, consistent schema, per-file reading steps, retained provenance, and reconciliation controls. Demonstrate a normal refresh and a deliberate fault such as a duplicate file. A useful handoff includes expected counts and totals so the next person can distinguish a clean-looking report from a complete and correctly scoped one.

11. Revision cards and a repeatable handoff

  • Inventory first. A file row is not a transaction row. Select the eligible inputs before opening their contents.
  • One schema per recipe. Headers, types and meanings must agree even when monthly row counts differ.
  • Keep provenance. File plus SourceRow explains where a transaction came from.
  • Movement versus position. Credits minus debits measures change; Balance is a snapshot after a transaction.
  • Zero needs a rule. An inactive amount leg can be zero under a declared convention. Unknown or invalid values need review.
  • Refresh needs evidence. Compare expected files, rows, amounts and closing position after completion.

Before handing over your workbook, write a short operating note on the Control sheet: where files belong, which names are accepted, which account and currency are covered, and which dates the report represents. List the current expected controls and the steps for investigating an exception. Include the location of the preserved source files so a reviewer can follow a questionable row back to its origin.

Keep the checks small enough to run every month. A clear file register, a row count per file, valid data types, monthly movement and closing-position reconciliation give the next student a practical starting point. When a check fails, stop at the first unexplained difference and trace it. This is the habit that turns an import shortcut into a dependable reporting process.

Microsoft references