16. Practice Exercises with Answer Hints
16.15 Challenge Exercises
Five challenges with a control you can reproduce
A fictional analyst covering a delivery service needs to prepare a weekly chart, summarize products by city and package some records for a local rehearsal. The same analyst also refreshes a practice bank workbook and owns the delivery fee schedule. These are five different assignments. Use the same small table for the chart and ranking, keep the Chapter 3 exercise as the city-export source, and extend the Chapter 10 statement set separately. Retain the artificial sources. Each result needs an independent acceptance check that a second learner can repeat. The example businesses provide context; all sales and transactions here are fabricated.
- Use real Excel dates and identify the exact reporting window for the chart. State the selected platform and preserve the all-platform control.
- Define rank by combined amount per product in one city. Use two ordering rules so tied totals remain predictable.
- Use authorized local practice files only for VBA. Prepare a new, empty output location, validate the inputs and inspect the proposed output before saving anything.
- Filter three accepted statement names before combining. Retain source filenames and row positions, then reconcile each month separately.
- Use the lower limit of the matching fee band and test both sides of each threshold before naming the calculation.
Original tasks · Try your own solution before opening the answer
1 · Build the fictional 6–12 November city/day sales report
Hint · Filter real dates at day level, show daily sales and connect Platform.
Create a PivotTable with Sum of Amount and Date/City axes. A supported Timeline at Days and a Platform slicer control separate dimensions.
Worked answer · ₹2,510 for both platforms and a peak at ₹870 on 10 November.
Pune totals 1,360 and Nashik 1,150. Blinkit alone gives 1,140 and Amazon Now alone gives 1,370. On the peak day the two cities contribute 520 and 350 respectively.
2 · Return each city's highest three products from one dynamic formula
Hint · Aggregate by product before sorting, then divide the results by city.
Use a distinct product list, SUMIFS to compute amounts and SORTBY with amount and product keys. Use TAKE on the sorted result.
Worked answer · Pune Milk/Bread/Eggs; Nashik Rice/Bread/Milk.
Pune reports 580, 280 and 280; the tied product names sort alphabetically. Nashik reports 440, 310 and 240. The shared formula below supports one block per city. A supported REDUCE version returns both blocks together.
3 · Split tblOrders by city and export one new workbook per city
Hint · Build six checked group sheets, then save values into distinct new workbooks.
Keep each source row’s Order ID, verify allowed cities first and use an explicit workbook variable. Choose a local empty target folder and preserve the macro source file.
Worked answer · Six group sheets, six .xlsx files, ten records and ₹2,870.
Pune has four rows and ₹544. Nashik has two and ₹360. The other four city groups have one each and ₹1,966 together. Reopen a file and compare its recorded rows before any permitted handoff.
4 · Combine and reconcile three monthly statements
Hint · Start with the exact June and July files and extend the account into August.
Filter the three approved input names first. Preserve File and SourceRow. Parse day-first dates explicitly and keep identifiers as text.
Worked answer · 12 transactions, ₹195,000 credit, ₹53,901 debit and ₹158,549 ending balance.
Reconcile by month before adding them. The opening position is 17,450 and the net movement is 141,099. The ending balance is the last correctly ordered position, independently reconciled.
5 · Create the named DELIVERYFEE function
Hint · Each threshold is a band's inclusive minimum.
Use the current amount's exact or next smaller threshold. Plan invalid-input handling and work through all boundaries.
Worked answer · Fee schedule 0→30, 99→25, 199→15 and 499→0.
A valid amount of 198.99 falls in the 99 band. 199 enters the 15 fee band. Negative, missing or nonnumeric values need a review state. Zero fee is a valid explicit result on qualifying orders.
Build the date chart and test both filter controls
Enter sixteen independent practice sale lines
Build and name an Excel Table tblWeek. Dates are in November 2026. “Diwali-week report” is the title of this fictional reporting exercise, and the deliberately fixed dates do not imply any holiday date, business behavior or actual platform sales. A row is one sale line for the ranking exercise. No user identity is needed. The cross-check total adds Amount, not the number of rows. For this exercise every provided sale line is approved for reporting. If a real source includes cancelled or refunded lines, the team needs a signed-versus-excluded definition and the dashboard title must match it.
| Sale line | Date | City | Platform | Product | Amount |
|---|---|---|---|---|---|
| W-01 | 6 Nov 2026 | Pune | Blinkit | Milk | 100 |
| W-02 | 6 Nov 2026 | Nashik | Amazon Now | Rice | 120 |
| W-03 | 7 Nov 2026 | Pune | Amazon Now | Bread | 140 |
| W-04 | 7 Nov 2026 | Nashik | Blinkit | Milk | 100 |
| W-05 | 8 Nov 2026 | Pune | Blinkit | Milk | 180 |
| W-06 | 8 Nov 2026 | Nashik | Amazon Now | Bread | 200 |
| W-07 | 9 Nov 2026 | Pune | Amazon Now | Eggs | 120 |
| W-08 | 9 Nov 2026 | Nashik | Blinkit | Rice | 130 |
| W-09 | 10 Nov 2026 | Pune | Blinkit | Rice | 220 |
| W-10 | 10 Nov 2026 | Pune | Amazon Now | Milk | 300 |
| W-11 | 10 Nov 2026 | Nashik | Amazon Now | Eggs | 160 |
| W-12 | 10 Nov 2026 | Nashik | Amazon Now | Rice | 190 |
| W-13 | 11 Nov 2026 | Pune | Amazon Now | Bread | 140 |
| W-14 | 11 Nov 2026 | Nashik | Blinkit | Milk | 140 |
| W-15 | 12 Nov 2026 | Pune | Blinkit | Eggs | 160 |
| W-16 | 12 Nov 2026 | Nashik | Blinkit | Bread | 110 |
Build a date view with a platform check
- Make a PivotTable from the approved table. Place Date in Rows and City in Columns, then select Sum of Amount. Excel may group dates automatically, so inspect the actual row labels and show individual days. Check that the Grand Total matches ₹2,510 before filtering.
- Add a line chart from the PivotTable if the client supports the needed chart type. Use one series per city, label Amount in rupees and preserve chronological order. For the combined plot, use a separate daily-total PivotTable driven by the same source, or chart an intentionally verified daily series. Clearly distinguish the combined peak from either city's series.
- Use a supported timeline at Days, or an explicit date filter for 6 through 12 November. Confirm both boundary dates are included and the selected period is visible. Try excluding 6 November, the opening day's ₹220, and verify the total changes to ₹2,290; restore.
- Add a Platform slicer and connect it to the intended PivotTables through Report Connections where supported. Read the total after choosing Blinkit, then Amazon Now, and after clearing it. If one report stays fixed unexpectedly, inspect its connection and report source before modifying the displayed number.
The daily totals in chronological order are 220, 240, 380, 250, 870, 280 and 270. For 10 November, Pune records 220 plus 300 and Nashik 160 plus 190. These four rows produce 870. A line chart lets a reviewer quickly compare the days before and after the highest point. It shows a spike in this source. Explanations about promotions, weather, time spent browsing or holiday effects would require separate data. In an interview, give the observed change and which data could help verify a cause.
PivotTable and slicer displays reflect their own active selections. The standalone dynamic formula in the next section reads the entire source table as written. Visually hiding rows with the slicer on its PivotTable does not change the formula's criteria. If an assignment expects the product rank to be platform-specific as well, add a clear platform argument and apply it to both the unique products and the amount calculation. Test the all-platform and selected-platform reports independently. Use useful headings so a reader can tell that two elements intentionally answer different queries.
Aggregate first, then rank by total and product name
See why sorting raw transactions fails
Pune has three Milk rows, amounts 100, 180 and 300. A raw-row top three might show several Milk records and miss other high-ranked products. The assignment instead asks for a city product leaderboard. Compute one row per product inside that city before choosing a rank. The amount column in the output is an aggregate. For a whole-city view, its subtotal is 1,360, with four categories. The first three cover 1,140; Rice at 220 remains outside the selected rows. For Nashik the reported three total 990 and Eggs at 160 remain outside. A top-three sum is not a city total.
Start with one formula and an explicit city input
In K2 type Pune. Place this formula outside any Excel Table, with empty room to the right and below for output. A dynamic formula can generate multiple adjacent cells, referred to as its spill range. If you place the same block next to Nashik, make sure the two outputs do not overlap. This example relies on supported dynamic array functions; check individual support in your Excel edition. An ordinary compatible PivotTable is an alternative for the underlying group-and-sort check.
=IF(COUNTIF(tblWeek[City],K2)=0,"No rows",
LET(products,UNIQUE(FILTER(tblWeek[Product],tblWeek[City]=K2)),
amounts,SUMIFS(tblWeek[Amount],tblWeek[City],K2,tblWeek[Product],products),
ranked,SORTBY(HSTACK(products,amounts),amounts,-1,products,1),
TAKE(ranked,MIN(3,ROWS(ranked)))))
FILTER selects the product records for one city. UNIQUE returns one instance of each product label, and the array of product criteria produces one SUMIFS total for each distinct product. HSTACK places each product and its corresponding amount side by side in the same row. SORTBY uses amounts descending and product labels ascending as a second rule, so the two tied Pune amounts have a repeatable order. TAKE uses three or the available product count, whichever is smaller. The empty-city message is set before running FILTER. Return a useful “No rows” outcome instead of forcing a list of zeros.
With a compatible REDUCE and VSTACK implementation you can return all cities from one formula. This version keeps the header as the starting accumulator. Each iteration appends one city's block. A conditional SEQUENCE repeats the current city label for exactly the number of rows returned, preventing width and height mismatch. Keep the Table populated with approved, nonblank city and product labels and numeric amounts. The predictable result here contains one header and six result rows. In builds without REDUCE, use the per-city formula and a list of intended city names.
=LET(cities,SORT(UNIQUE(tblWeek[City])),
REDUCE({"City","Product","Amount"},cities,LAMBDA(acc,cityName,
LET(products,UNIQUE(FILTER(tblWeek[Product],tblWeek[City]=cityName)),
amounts,SUMIFS(tblWeek[Amount],tblWeek[City],cityName,tblWeek[Product],products),
ranked,SORTBY(HSTACK(products,amounts),amounts,-1,products,1),
best,TAKE(ranked,MIN(3,ROWS(ranked))),
VSTACK(acc,HSTACK(IF(SEQUENCE(ROWS(best))>0,cityName),best))))))
The displayed spill uses alphabetical city order, so the full result begins with Nashik even if the source begins with Pune. Report this when comparing outputs. If #SPILL! appears, check for an occupied cell, merged cells or placement inside a Table before rewriting the formula. If #NAME? appears for a function, check availability and spelling. Use independent grouped totals to verify numeric content; a cell that spills cleanly can still use the wrong city key or aggregation.
Build six local city workbooks from reviewed practice values
Start with the original ten orders and independently predict each group
Reuse the Module 3 table from the practice overview. This source contains one row per order, with fields Order ID, Date, City, Platform, Category, Qty, Amount, Mins and Status. Create a fresh macro-enabled scratch file, put the exact source on a sheet named Orders and name the Table tblOrders. This challenge uses all records, including cancelled and returned, so the expected sum is ₹2,870. The workbook from the previous dashboard challenge uses a different measure and cannot be substituted by matching a title. Read the expected groups before using VBA.
| City | Rows | Recorded amounts | Check one key |
|---|---|---|---|
| Pune | 4 | 544 | BLK-1001 |
| Nashik | 2 | 360 | BLK-1002 |
| Nagpur | 1 | 240 | BLK-1004 |
| Kolhapur | 1 | 232 | AMN-1005 |
| Solapur | 1 | 1,299 | BLK-1007 |
| Sambhaji Nagar | 1 | 195 | AMN-1008 |
The following VBA extension takes a value snapshot from the reviewed synthetic Table, stages six city tabs in a new workbook, then exports each staged rectangle into a new single-sheet .xlsx. A values-only copy avoids bringing over sheet modules, formulas or links; apply it only to fixture text that meets the guard below. Build and use it on Windows desktop Excel where the folder picker and VBA are supported under your existing organization policy. For browser learners the same split and checks can be performed manually in scratch copies. The code expects precise headers, counts and numeric controls of this fixture. Its purpose is a transparent controlled exercise, not accepting arbitrary downloaded payment or contact records.
Option Explicit
Private Sub CheckSplit(ByVal ok As Boolean, ByVal message As String)
If Not ok Then Err.Raise vbObjectError + 601, "Practice split", message
End Sub
Public Sub ExportPracticeCities()
Dim source As ListObject, staging As Workbook, output As Workbook
Dim tabs(0 To 5) As Worksheet, target(0 To 5) As String
Dim count(0 To 5) As Long, totals(0 To 5) As Double
Dim cityOf(1 To 10) As Long, destinationRow(0 To 5) As Long
Dim names As Variant, expectedCount As Variant, expectedAmount As Variant
Dim header As Variant, fields As Variant, records As Variant, oneRow(1 To 1, 1 To 9) As Variant
Dim outputFolder As String, message As String, firstChar As String
Dim i As Long, j As Long, k As Long, slot As Long, saved As Long
Dim duplicateId As Boolean
On Error GoTo Failed
names = Array("Pune", "Nashik", "Nagpur", "Kolhapur", "Solapur", "Sambhaji Nagar")
expectedCount = Array(4, 2, 1, 1, 1, 1)
expectedAmount = Array(544, 360, 240, 232, 1299, 195)
fields = Array("Order ID", "Date", "City", "Platform", "Category", "Qty", "Amount", "Mins", "Status")
Set source = ThisWorkbook.Worksheets("Orders").ListObjects("tblOrders")
CheckSplit source.ListRows.Count = 10 And source.ListColumns.Count = 9, "Use the original ten rows."
header = source.HeaderRowRange.Value2
For j = 1 To 9
CheckSplit CStr(header(1, j)) = fields(j - 1), "Unexpected source header."
Next j
records = source.DataBodyRange.Value2
For i = 1 To 10
For j = 1 To 9
CheckSplit Not IsError(records(i, j)), "Resolve the source error on row " & i
If VarType(records(i, j)) = vbString Then
firstChar = Left$(LTrim$(records(i, j)), 1)
CheckSplit Len(firstChar) > 0, "Resolve a blank fixture label."
CheckSplit InStr(1, "=+-@", firstChar, vbBinaryCompare) = 0, "Reject formula-like text."
End If
Next j
CheckSplit VarType(records(i, 1)) = vbString, "Use a text Order ID."
CheckSplit VarType(records(i, 2)) = vbDouble, "Use an Excel date."
CheckSplit VarType(records(i, 7)) = vbDouble, "Use a numeric amount."
duplicateId = False
For k = 1 To i - 1
If StrComp(CStr(records(k, 1)), CStr(records(i, 1)), vbTextCompare) = 0 Then duplicateId = True
Next k
CheckSplit Not duplicateId, "Review repeated Order ID " & CStr(records(i, 1))
slot = 6
For j = 0 To 5
If StrComp(CStr(records(i, 3)), CStr(names(j)), vbBinaryCompare) = 0 Then slot = j
Next j
CheckSplit slot < 6, "Unexpected city on source row " & i
cityOf(i) = slot
count(slot) = count(slot) + 1
totals(slot) = totals(slot) + records(i, 7)
Next i
For j = 0 To 5
CheckSplit count(j) = expectedCount(j) And totals(j) = expectedAmount(j), "Check " & CStr(names(j))
Next j
With Application.FileDialog(msoFileDialogFolderPicker)
.Title = "Choose a new empty local practice folder"
If .Show <> -1 Then Exit Sub
outputFolder = .SelectedItems(1)
End With
If Right$(outputFolder, 1) <> Application.PathSeparator Then
outputFolder = outputFolder & Application.PathSeparator
End If
For j = 0 To 5
target(j) = outputFolder & "Practice-" & CStr(names(j)) & ".xlsx"
CheckSplit Len(Dir$(target(j), vbReadOnly Or vbHidden Or vbSystem Or vbDirectory)) = 0, "Output exists: " & target(j)
Next j
Set staging = Workbooks.Add(xlWBATWorksheet)
Set tabs(0) = staging.Worksheets(1)
For j = 0 To 5
If j > 0 Then Set tabs(j) = staging.Worksheets.Add(After:=tabs(j - 1))
tabs(j).Name = CStr(names(j))
tabs(j).Range("A1:I1").Value2 = header
tabs(j).Range("B2:B11").NumberFormat = "dd mmm yyyy"
destinationRow(j) = 2
Next j
For i = 1 To 10
slot = cityOf(i)
For j = 1 To 9
oneRow(1, j) = records(i, j)
Next j
tabs(slot).Cells(destinationRow(slot), 1).Resize(1, 9).Value2 = oneRow
destinationRow(slot) = destinationRow(slot) + 1
Next i
For j = 0 To 5
CheckSplit destinationRow(j) = count(j) + 2, "Unexpected staged row count."
CheckSplit Application.Sum(tabs(j).Range("G2:G" & CStr(count(j) + 1))) = totals(j), "Unexpected staged total."
tabs(j).Columns("A:I").AutoFit
Next j
If MsgBox("Six checked city views are staged. Save six new practice files?", vbYesNo) <> vbYes Then Exit Sub
For j = 0 To 5
CheckSplit Len(Dir$(target(j), vbReadOnly Or vbHidden Or vbSystem Or vbDirectory)) = 0, "Output exists: " & target(j)
Set output = Workbooks.Add(xlWBATWorksheet)
With output.Worksheets(1)
.Name = CStr(names(j))
.Range("A1").Resize(count(j) + 1, 9).Value2 = tabs(j).Range("A1").Resize(count(j) + 1, 9).Value2
.Range("B2:B11").NumberFormat = "dd mmm yyyy"
.Columns("A:I").AutoFit
End With
output.SaveAs Filename:=target(j), FileFormat:=xlOpenXMLWorkbook, AddToMru:=False
saved = saved + 1
output.Close SaveChanges:=False
Set output = Nothing
Next j
MsgBox "Saved " & saved & " practice files. Reopen a file and reconcile the group."
Exit Sub
Failed:
message = Err.Description
On Error Resume Next
If Not output Is Nothing Then output.Close SaveChanges:=False
MsgBox "Stopped after " & saved & " completed saves. Inspect the scratch folder. " & message
End Sub
Save the macro in the scratch source, then keep that source file distinct from its output folder. Running another workbook first should not change which orders the procedure reads; ThisWorkbook means the workbook containing the trusted macro. The file dialog supplies the chosen folder. A cancel there exits before creating staging. If you decline the later save prompt, six unsaved teaching views remain available for inspection. The macro uses a fixed set of allowed city labels and validates expected row counts and sums before building output. Arbitrary user text should not become a file or sheet name without separate validation. The learning exercise assumes one person and a new private folder. Keep overwrite prompts available and stop on a collision; do not use a shared writer location.
After the run, manually open the Pune workbook and check that each recorded ID's city is Pune, the first and last data rows are present and the Amount sum is 544. Open Nashik and verify its two detail amounts. A stage total could still agree after a copied city label is wrong, so check the actual membership and totals. Count the separate files and list their names. The stage workbook remains a separate unsaved local object. Close it deliberately once practice is complete. If the operation stops partway, inspect the files already created, document the failure and use a fresh empty folder for a new full run. The procedure does not clean up earlier successful files, so it cannot silently delete data you might need to diagnose.
Extend the original bank example into a third reconciled month
Use the exact June and July artificial statement text in the Module 10 folder lesson. Use the same account, date order, headings and inactive-amount convention. The June file has six records, while July has three. Beginning balance 17,450 is a separate control and does not appear as a June transaction. Create Stmt_2026_08.csv with these exact rows to continue the exercise.
Date,Narration,Ref No,Debit,Credit,Balance
01/08/2026,NEFT-SALARY AUG 2026,AU001,,65000,174249
05/08/2026,UPI/FreshGo/PUNE,AU002,700,,173549
15/08/2026,NEFT-RENT AUG,AU003,15000,,158549
The amount convention permits exactly one positive populated amount leg. The empty opposite side is inactive here. Keep numbers typed. Reject an unexpected missing amount on both sides, invalid text or a surprising two-sided record to a review output instead of replacing everything with zero. Preserve Ref No as text to avoid rounding a long identifier or losing leading zeroes in a real copied example. For Date use the day-first source format and check that August's first record reads 1 August. In an uncontrolled source, the number of digits in a string does not determine its meaning.
- Inspect the inventory with From Folder before selecting candidate contents. Filter for requested direct folder, CSV extension and the three approved month names. Quarantine temporary copies and archived versions outside the accepted set. Confirm that three selected rows are files.
- Apply the same CSV per-file transformation, promote the header once per file, confirm expected columns, retain Filename and add SourceRow inside the per-file operation. Choose a known correct sample file and inspect the other headers as well. Add reporting month from the parsed transaction date and compare it against each filename.
- Set appropriate types and confirm the balance, active amount legs and SourceRow sequence for each file. Query row sequence may change after combining, sorting or grouping. Use per-file position as an explicit tie breaker for equal dates in this known set, then verify the original ordering in each statement.
- Reconcile the three accepted month records. June debit 22,701 and credit 65,000 create movement 42,299. July debit 15,500 and credit 65,000 create 49,500. August debit 15,700 and credit 65,000 create 49,300. Compare file-level expected counts and known amounts before comparing combined output.
The combined debit sum is 53,901 and credit 195,000. Net movement is 141,099 and the opening control plus that movement is 158,549. This is also the final correctly ordered August balance. A sum of all twelve balances is meaningless as a closing amount because each balance already reflects cumulative activity. A maximum balance is another different quantity; August after the salary shows 174,249, greater than the final position. Confirm the query refreshed and its worksheet result actually contains the third month before exporting a report. A command issued successfully can still result in an incorrectly scoped query if an old filter excludes the new source.
Make a reusable fee schedule with visibly testable boundaries
Give a band a numeric lower limit and matching fee
Build a four-row Table named tblFeeBands with headers Minimum and Fee. The minimum amounts are 0, 99, 199 and 499; fees are 30, 25, 15 and 0 respectively. Put one approved threshold per row in increasing order, and keep both columns numeric. When the exact amount is not listed as a threshold, the amount belongs to the highest band minimum that is no larger. A zero merchandise amount is a valid numeric amount under these training rules. An empty order amount is missing and should not be interpreted as a zero-value order.
Open Name Manager in a compatible build that supports a named LAMBDA and create the workbook-scoped name DELIVERYFEE. Set Refers to to the expression below. Test against actual cell references after creating it, because blanks arriving from a reference can differ from typed text or a deliberately entered zero. ISNUMBER accepts a genuine numeric zero and rejects blank or text amounts under this sheet rule. Explicitly test blank reference behavior on your client before relying on it. The separate displayed worksheet check below provides a reliable visible blank guard at the call site.
=LAMBDA(amt,IF(ISNUMBER(amt),
IF(amt>=0,XLOOKUP(amt,tblFeeBands[Minimum],tblFeeBands[Fee],"Review",-1),"Review"),
"Review"))
=IF(ISNUMBER(H2),DELIVERYFEE(H2),"Review")
The fourth XLOOKUP argument supplies a result for an out-of-contract lookup with no permitted band. The fifth chooses exact or next smaller. Leaving match mode at default would accept only the thresholds themselves and reject most ordinary orders. Using next larger would move 98.99 into the 99 band too early. A governed worksheet can allow authorized updates through the rate Table rather than through repeated hidden formulas. Check that thresholds remain unique and ascending, and verify the version of the rate table associated with a delivered report. A future change to a fee can change the back-calculated value, which may be inappropriate for a signed historic invoice.
- At 0 expected 30 and at 98.99 still 30. At 99 and 198.99 expected 25. These cases verify the first inclusive threshold and the next band's upper neighbor.
- At 199 and 498.99 expected 15. At 499 and above expected 0. An explicit result of zero is a valid free-fee result. Its cell must still be visibly evaluated and included in the expected-output list.
- At −1, blank and numeric text such as a cell typed with an apostrophe before 499, expect Review. Confirm that the sheet does not accidentally convert that text to a number when you enter the test. Build an approved numeric conversion upstream only if the business rule authorizes it.
A compatible older environment can use a two-column sorted threshold table and approximate VLOOKUP, with the same typed input guard. In a table whose first column contains ascending minimums, the approximate mode picks the relevant lower band. The threshold values must be checked first. Whichever tool you use, store example input, expected result, observed result and who approved the rule. The exercise uses a stated inclusive schedule and a standard precision assumption. If the system receives more decimal places, settle the source rounding policy before testing near a boundary.
Trace an amount from its input to the output comparison
Identify the question and grain
The chart aggregates sale-line amounts by day. The leaderboards aggregate them by city and product. The city macro uses a different ten-order source, and the statement query works with bank transactions. Write each independent population before adding data.
Choose the working filter or group
Filter the chart to seven named dates and one platform or all. For rank, collect distinct product labels in each city, sum each one and sort tied totals by name. An apparent spike and a product ranking answer different questions.
Check an informative edge
Compare 498.99 with 499 and explicitly test blank and text amounts. For a file run, compare one correctly expected export against one missing or archived statement. The exact boundary and the three expected filenames are observable.
Open the result and reconcile
Inspect the chart's total and the seven days, compare the exported file with each city ledger and prove the source files behind the 158,549 ending balance. Deliver the approved artifact only after its actual contents match the intended scope.
Lab 1 · Verify the week, ranking and rate with positive and boundary cases
Prepare. Create the sixteen-row Table and separate fee table in a local scratch workbook. Keep at least three blank columns and ten blank rows for a dynamic result. Write down the known combined daily and city controls before building visuals or formulas. Enter dates from the fixture without ambiguous month/day parsing.
- Build and check a day-by-city PivotTable and a chart. Try both platform selections and clear them. Verify the correct date labels and check the 10 November value manually from the four contributing lines. Label the chart's current scope explicitly.
- Generate each city's product list with amounts using the per-city formula. Test Pune's tie, Nashik's result order and an unused label that should return No rows. In a separate version try a city with two distinct products and verify two rows rather than a third fabricated line.
- If REDUCE is supported, put the full formula in a separate open range. Compare the expected six entries to the two individual results. Confirm the city column aligns with every product and the output's city order is intentional.
- Create the named fee calculation. Check 98.99→30, 99→25, 498.99→15 and 499→0, plus negative, blank and text. Run the exact same tests against an older compatible fallback only if you actually build it.
Expected. Combined weekly 2,510, 10 November 870 and Blinkit 1,140 with separate checks for the two cities. A ranking that starts from raw individual sale lines fails the Milk group check and the tie order, even if its shape is exactly three rows. The fee worksheet visibly distinguishes the free tier and invalid values.
Troubleshoot. If values after a slicer change disagree, check report connections, selected source and Date grouping. If the ranking is one cell, check formula availability, implicit intersection or the space around its spill output. If a decimal fee hits the wrong band, examine numeric input and XLOOKUP match mode; use boundary tests before reformatting. Cleanup. Restore the weekly filters to all platforms and the agreed date range. Remove only scratch mutations. Keep your expected business rules visible beside the retained lab workbook.
Lab 2 · Check separate city artifacts and a three-file refresh
Prepare. Keep two independent local work areas: a scratch macro source and empty output folder, and a synthetic CSV source folder with a separate query workbook. Review exact Module 3 city controls and approved file names on paper. No actual customer or bank data is required.
- Build staged city views and compare six city counts, ₹2,870 and at least one Order ID per city. A VBA-enabled learner can run the provided routine after inspecting the code; another learner can build equivalent values-only outputs manually and describe that route honestly.
- Allow the macro save step only after confirming local path and scope. Reopen a file and check sheet title, row membership, columns, numeric amount and typed date. Compare the set of files against exactly the six planned names. If a simulated collision is tested, use a disposable existing file in a different scratch folder and confirm it remains untouched.
- Combine June and July first and compare nine rows and July close 109,249. Save August and explicitly update the approved file set. Confirm three accepted names, twelve transaction rows and separate month totals. Compare August's carried closing value and the independently calculated opening-plus-net control.
- Try a copied archive month in a scratch subfolder and verify the approved direct folder check leaves results unchanged. If you observe a different count, inspect the discovery scope before replacing errors or trimming eventual results. Restore and capture actual resolved filenames.
Expected. Each city artifact is independently readable, approved test files have their original IDs and amounts, and the combined statement has twelve observations with net movement of 141,099. The correct final balance is 158,549 for this account fixture, not an aggregate of the Balance column.
Troubleshoot. City output validation can stop on stale amount types, unknown labels or a repeated Order ID. Correct the source copy first. If the query remains at nine rows, inspect the allowed names, path and refresh outcome before resetting conversion rules. If the date structure looks correct but the amount differs, check the active sign leg and reconcile each month independently. Cleanup. Close the unsaved stage, preserve the trusted scratch source and remove only known disposable practice outputs if needed. No upload or sharing is part of the task.
Prepare a short evidence trail for the next person
The course capstone combines lots of tools, but a handoff is more useful when it gives a small, reproducible control for each. List the source table or files, scope, expected output, observed result and refresh time if applicable. Use exact figures instead of saying that totals “appear right.” For the weekly dashboard show the selected platform and day range. For the ranking share the sorting rule, the tie and one subtotal of a product with multiple records. For the VBA exercise, record the original source control separately from the set of saved outputs and say which files you reopened.
For the statements, give file counts, row counts and prior/after balances by period. A single value such as ₹158,549 can agree by accident if two input issues offset each other. Month-by-month controls reveal more. Compare the July transition with the next month's opening, then test that the approved version of August was included and exactly three rows arrived. If an extra month's data appears, report the issue rather than quietly forcing a total to match. On the delivery fee exercise attach the version and lower-bound definition so another teammate can retest the boundary values immediately.
A strong handoff names remaining dependencies. Somebody using a browser may see the finished formula result while lacking the controls to create a desktop macro or local folder query. Identify the implemented method and the independent manual check. If a file was generated on a local computer, state where the output belongs and what should happen before someone shares it. A values-only workbook may still contain records the intended audience cannot access. Use synthetic data in practice and follow approved permissions before exporting real data.
Add one expected failure to the practical demonstration
Show an example where your check prevents a plausible wrong answer. For the chart, filter out the first day and predict the exact 220 change. For the product calculation, compare the Milk aggregate with the largest single Milk line and explain why the values differ. For the local exporter, use an empty scratch run to see the expected file count, then preview a collision in a separate test folder containing a harmless sample. For the bank query, an archived copy must remain outside the accepted list. A read-only question for the fee owner is which band applies at 499 exactly. These interventions show the control doing work, giving the listener something they can repeat under the same assumptions.
Compare a scope fault with legitimate additional activity
Measure the impact of an archived June copy before fixing the file selection
If you let discovery reach a second June file in an archive folder and select it as another accepted result, its six records repeat. The combined count rises from twelve to eighteen. The duplicate credits total 65,000 and repeat debits total 22,701, so opening plus the incorrectly combined net would produce 200,848. The final August transaction still records 158,549. The 42,299 discrepancy matches June's movement and is explained by the repeated source. Look at the names together with their folder paths: identical basenames alone may not identify different storage locations. After narrowing the accepted folder and file set, check that the two independent closing calculations agree again and that the recorded IDs per month are still present.
Now consider a genuinely new September period that the owner intends to add next time. It will also increase the row count. An approved append differs because it brings a disjoint filename and period, carries opening balance from the previous closing position, and contains new verified transaction references or another documented identity scheme. Before adopting a new month, add the expected cover dates and test its specific control. A fixed 12-row control is an approved baseline for this exercise only; it should not become a rule that always rejects more legitimate history.
Rehearse describing the finished report to a reviewer
Explain the report you would submit in under a minute. Name the seven dates and say the highest day totaled 870, with data for two cities and two platforms. Then say how a click on the slicer changes the selected total. For the price schedule, demonstrate the numeric output changing from 15 to 0 exactly at 499 while an absent input remains under review. Give a second person both examples without pointing at your screen. If they interpret either scope incorrectly, improve the label or units next to the result. The person reading the artifact later may not remember your verbal introduction.
Quick quiz · Keep the scope of each calculation clear
1 · What evidence supports the 10 November weekly peak?
Four accepted entries total 870, split 520 Pune and 350 Nashik. Other combined days are smaller. This observation alone does not establish what caused the peak.
2 · Why put a SUMIFS step before sorting products?
Several sale lines can refer to one product. Aggregating first yields one ranked amount for that product within the selected city.
3 · Why preserve ThisWorkbook and new workbook variables in a macro?
Creating or selecting a workbook can change the active workbook. Explicit references ensure the procedure reads the approved source and saves the intended output.
4 · After August is added the query still has nine rows. What might have happened?
The query may still select two filenames or point at an old source location. Check the inventory and loaded per-file counts before treating the result as updated.
5 · What fee applies at exactly 499 and immediately below it?
499 starts the free band. 498.99 is still in the 199 band and costs 15 under this approved schedule.
6 · Does the slicer automatically affect a standalone formula based on the source Table?
The formula as written reads the full table with only its own city and product criteria. Add and test explicit platform criteria if the ranking is supposed to change by platform.
Interview practice · Explain how you checked the final result
- How would you build a daily spike report?
- I define the date window and sale-line criteria, build a city and date PivotTable, check the combined total and daily rows, then test each filter state and the chart's exact peak value.
- How would you calculate the top three per city?
- I group products within each city, sum approved amounts, then sort by amount descending and a deterministic secondary key. I handle cities with few or zero records and independently cross-check totals.
- What would you do before exporting records with VBA?
- I validate the source Table and expected group figures, prepare a new local output folder, inspect generated values-only views, check collisions and reopen an actual exported workbook to reconcile its rows.
- What proves a monthly statement import is complete?
- Review the exact allowlist, transaction rows per file, typed dates, signed amount legs and chronological final balance. Compare month-level controls and opening plus net movement.
- How would you verify a reusable pricing calculation?
- I document the inclusive minimums, check their uniqueness and test exact and adjacent values, including missing and invalid inputs. A numeric zero fee is a meaningful rule outcome.
Six challenge cards
- Day controls
Verify real dates, boundaries and the selected platform against a known daily subtotal.
- Aggregate before ranking
Build one record per product and city. Sort both amount and a stable tie key.
- Safer export
Stage reviewed values, select a private empty folder and keep the source file separate.
- Accepted inventory
Filter trusted training file names, keep source positions and compare expected records.
- Reconcile balances
Opening plus signed movement should equal the last observed balance for the approved period.
- Inclusive thresholds
Test both sides. Treat missing values and a legitimate zero result as distinct cases.
Official sources
Continue practising: explore the existing Excel Task Hub for additional exercises.