16. Practice Exercises with Answer Hints
16.3 Module 4: Lookups
Choose what a matching record is supposed to mean
A quick-commerce operations teammate opens a file containing one store code, a delivery order amount and a city-month reporting request. The store code should identify one directory row. The amount should find a tier, even if no fee rule starts at that exact value. The report needs two matching labels at once. Learn to distinguish those three matching rules before picking a formula.
This practice uses the fictional store directory from the lookup module, a specific four-tier course fee schedule and a separate synthetic monthly matrix. The candidate Order IDs for the final exercise are checked against the original 10-order fixture. Treat the labels and numbers as classroom inputs. No email communication is required.
Check the lookup grain and direction. A key can be unique from store to manager but repeat from manager to store. A fee schedule uses thresholds instead of identity.
Arrange inputs so each lookup has a clear source
- Use a Stores sheet with the six directory columns shown below. Convert those rows to a Table named
tblStores. Store ID must remain the first column for the five-column VLOOKUP exercise. - Use a Lookup_Test sheet for F2 as Store ID and F3 as City Manager. Avoid putting these input selectors inside the reference directory's own fields.
- Use the supplied FeeSlabs on a separate sheet or named range. Sort the whole pair of columns by increasing minimum amount before using approximate VLOOKUP.
- Place the CityMonth matrix in A1:M7 with individually typed or formula-created date headers. Keep the original date and its display format distinct.
- Use a copy of the baseline Orders input for a Table named
Masterin exercise six. Keep the candidate list separate enough to compare repeated requests and authoritative keys.
Set up the four small practice inputs
Stores · Seven unique store keys
Each row is one fictional directory record. Check the input shape: Store ID first, City Manager fifth. The lookup should read the key and output a name, without using the optional demonstration email field. Each manager currently has one named store in this controlled seven-row list. The later stress test introduces a deliberate exception on a copy.
| Store ID | Platform | City | Area | City Manager | Manager Email |
|---|---|---|---|---|---|
| BLK-PUN-01 | Blinkit | Pune | Kothrud | Abhishek Shinde | abhishek.shinde@example.com |
| BLK-PUN-02 | Blinkit | Pune | Hinjewadi | Priyanka Shinde | priyanka.shinde@example.com |
| BLK-NSK-01 | Blinkit | Nashik | College Road | Zoya | zoya@example.com |
| AMN-NGP-01 | Amazon Now | Nagpur | Dharampeth | Amir | amir@example.com |
| BLK-KOP-01 | Blinkit | Kolhapur | Rajarampuri | Rani | rani@example.com |
| AMN-SLP-01 | Amazon Now | Solapur | Murarji Peth | Salman | salman@example.com |
| BLK-SBN-01 | Blinkit | Sambhaji Nagar | CIDCO | Raja | raja@example.com |
FeeSlabs · Four thresholds for this exercise
Use a two-column range named FeeSlabs containing the numeric minimum and fee rows, without the headers in the actual matching range. This particular exercise uses minimums 0, 99, 199 and 499. Other lessons can use different teaching policies, even when some fees look similar. Apply the policy attached to this task.
| Minimum Amount | Delivery Fee |
|---|---|
| 0 | 30 |
| 99 | 25 |
| 199 | 15 |
| 499 | 0 |
CityMonth · One cell per city and month
Use a separate annual practice matrix, below. Enter real dates for the first day of each month in B1:M1. You can use =DATE(2026,3,1) for the March header, and similarly for the others. Use a month-year display such as mmm-yyyy. The data block B2:M7 is numeric recorded amounts for those month and city intersections. Unlike the order fixture, each cell already represents a group.
| City | Jan-2026 | Feb-2026 | Mar-2026 | Apr-2026 | May-2026 | Jun-2026 | Jul-2026 | Aug-2026 | Sep-2026 | Oct-2026 | Nov-2026 | Dec-2026 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pune | 11000 | 12500 | 14000 | 13600 | 15100 | 14800 | 16300 | 17000 | 16700 | 18500 | 19200 | 18400 |
| Nashik | 9500 | 11300 | 12400 | 12700 | 13000 | 11800 | 13400 | 13800 | 14200 | 13900 | 14700 | 15100 |
| Nagpur | 8200 | 8600 | 9100 | 9200 | 10800 | 9700 | 10600 | 9700 | 11200 | 11700 | 12000 | 11400 |
| Kolhapur | 7300 | 7500 | 8100 | 8400 | 8200 | 8900 | 9100 | 8700 | 9300 | 9900 | 9600 | 10300 |
| Solapur | 6200 | 6700 | 6500 | 7000 | 7400 | 7200 | 7600 | 7900 | 8100 | 8500 | 8200 | 8600 |
| Sambhaji Nagar | 6900 | 7100 | 7800 | 8100 | 7600 | 8300 | 8500 | 8700 | 9400 | 9200 | 9800 | 10100 |
MarketRush candidates · Find membership using a separate master
Put the candidate Order ID values below on an isolated test worksheet in A2:A7. For this matching exercise all keys use the same fictional namespace as the master fixture, independent of the intake sheet's name. In real datasets verify a source's namespace and whether a platform key must be part of the identity before assuming two matching strings represent the same purchase.
| Order ID |
|---|
| AMN-1003 |
| AMN-1098 |
| AMN-1005 |
| AMN-1099 |
| AMN-1003 |
| AMN-1008 |
Six original exercises · Try a lookup, then verify its match
1 · Get the City Manager for a Store ID
Put BLK-NSK-01 in Lookup_Test F2 and look up City Manager. Use an exact match. Try a known missing code separately so you can distinguish a match from an explicit review outcome.
Hint for exercise 1
XLOOKUP can search Store ID and return the value at the same position in City Manager. Its optional not-found argument can describe a missing key.
Worked answer for exercise 1
=XLOOKUP(F2,tblStores[Store ID],tblStores[City Manager],"Not found",0)BLK-NSK-01 returns Zoya. BLK-XXX-99 returns Not found. Inspect the source row to prove the observed match is correct.
2 · Repeat the same exact match with VLOOKUP and INDEX/MATCH
Retrieve the same City Manager result using two alternative formulas. Preserve the table's column order during the VLOOKUP exercise, then explain which method is easier to inspect after the report adds or reorders fields.
Hint for exercise 2
VLOOKUP searches the first column of the supplied range. Count to the fifth column and request exact matching. MATCH can find the key's relative position as input to INDEX.
Worked answer for exercise 2
=VLOOKUP(F2,tblStores,5,FALSE)
=INDEX(tblStores[City Manager],MATCH(F2,tblStores[Store ID],0))Both return Zoya for BLK-NSK-01 in the supplied layout. An unsupported XLOOKUP build can use these ordinary alternatives. Try a missing code and inspect the returned error so you can distinguish no key from a mismatch in the layout.
3 · Find a Store ID from the manager in the opposite direction
Enter Zoya in Lookup_Test F3 and return the corresponding store ID. Explain when one returned ID becomes ambiguous. In a separate scratch list add a second store BLK-NSK-02 assigned to Zoya, with City Nashik and a distinct practice area.
Hint for exercise 3
Search City Manager and return Store ID. The search column is to the right of the return column in this reference table. Check the count of eligible matches before accepting a single result.
Worked answer for exercise 3
=XLOOKUP(F3,tblStores[City Manager],tblStores[Store ID],"Not found",0)
=FILTER(tblStores[Store ID],tblStores[City Manager]=F3,"Not found")The starting table returns BLK-NSK-01. If the second store is added, a first-match lookup can still show BLK-NSK-01 and conceal another assignment. A supported FILTER result gives both keys. You can also filter the reference manually or ask the request to include a disambiguating field.
4 · Look up the fee for a ₹250 recorded amount
Use the supplied amounts as minimums. Find the highest threshold that is no more than ₹250. Confirm the selected fee by hand and test a value immediately below or at a different boundary.
Hint for exercise 4
Sort the complete fee pair list by increasing minimum. Use VLOOKUP approximate mode or the exact-or-next-smaller XLOOKUP option.
Worked answer for exercise 4
=VLOOKUP(250,FeeSlabs,2,TRUE)
=XLOOKUP(250,INDEX(FeeSlabs,0,1),INDEX(FeeSlabs,0,2),"Review fee",-1)The two values 0 and 99 are eligible but 199 is the largest eligible minimum. Its fee is ₹15. The optional second formula uses INDEX to return each entire column of the named range when its row argument is zero.
5 · Retrieve Nashik in March 2026 from the two-way matrix
Use City for the row match and March 2026 for the month match. Keep the source headers numeric dates with month-year formatting. Verify both individual positions before returning the amount.
Hint for exercise 5
Match Nashik within A2:A7 and the actual month date within B1:M1. Use their positions relative to the numerical amount block.
Worked answer for exercise 5
=INDEX(B2:M7,MATCH("Nashik",A2:A7,0),MATCH(DATE(2026,3,1),B1:M1,0))Nashik is matrix row 2 and March is column 3 within the numeric block, so the result is ₹12,400 in worksheet D3. On a matrix with literal text labels you could match the exact date label text instead. Use the comparison type that matches the stored header.
6 · Flag MarketRush order IDs that are absent from the master
Compare every candidate Order ID with the master Table's exact order IDs. Keep candidate copies so the output can show both presence and repeated requests. Find the missing IDs, then count them independently.
Hint for exercise 6
MATCH with mode zero can return a relative position or no-match error. Test ISNA, or count occurrences in the known master field.
Worked answer for exercise 6
=IF(ISNA(MATCH(A2,Master[Order ID],0)),"Missing","Present")
=IF(COUNTIF(Master[Order ID],A2)=0,"Missing","Present")AMN-1098 and AMN-1099 are absent. AMN-1003 is present twice among candidate rows because the candidate list repeats the request. There are six candidates, four present rows and two missing rows. Presence in the master and uniqueness of the candidates are separate audits.
Differentiate exact, first match and all matches
Read the inputs in the right order
XLOOKUP takes a search value, a lookup array and a return array. The last two must correspond position by position. An INDEX/MATCH version makes the match position explicit in the middle, then uses it to retrieve the corresponding result. A VLOOKUP exact formula uses a first-column key, a number identifying a return column in the supplied array, and FALSE to declare exact mode. Count the index from the left of the supplied range. It may differ from the worksheet's column letter.
In the supplied store range the fifth visible field is City Manager. If you switch Area and City Manager or add an extra field in that group on scratch, verify which position the index refers to. The old lookup can still succeed and return a city or area instead of a manager. Named output columns make this relationship easier to read, but independent checks are still necessary if input or header names change.
Use a missing value as a test case
Try BLK-XXX-99 on purpose. A missing exact lookup should be distinguishable from a wrong-field or wrong-range output. A fixed Not found label helps an ordinary user recognize a key not listed in the supplied directory. It should not replace an error due to a broken reference or invalid formula shape. They tell you different things about the source. Match an existing row and one absent row as a minimum.
Check how the source stores its identifiers. A copied string may include an invisible outer space. A numeric-looking code can be a pure number in one column and text in another. Those details matter before the formula executes. Look at the original input and official directory mapping. Only standardize casing or spaces if the exercise contract allows it. Real source identifiers can have meaningful punctuation and padding.
Check uniqueness in the direction you intend to search
The original directory gives one row per Store ID. A request for the manager of BLK-NSK-01 has one eligible row under that contract. The reverse request asks for the store whose City Manager is Zoya. It happens to yield one row in the original list. If Zoya supervises two practice stores in the updated list, both records are valid. A first returned value doesn't tell you the total number of possible answers. Check the relationship from the direction your question uses.
Differentiate a legitimate one-to-many result from a conflicting key
Add the new BLK-NSK-02 record on a copy and assign the same fictional manager to it. There are now two stores under Zoya, while the Store IDs remain unique. A list response or a second condition is appropriate. In another copy, instead duplicate BLK-NSK-01 with a different manager. The single Store ID has competing directory rows. Even if a function returns one of them, the directory key no longer satisfies the assumed policy. A responsible response is to review the two rows and find the authoritative assignment. A returned first or last position is just a search outcome.
Use a separate check with COUNTIF(tblStores[City Manager],F3) for the manager shape, or inspect the matches directly on the small directory. The result for Zoya is one in the baseline and two in the scratch one-to-many example. Use the same idea with Store ID for the second case. For actual business keys with wildcard characters, pick a matching method that treats the characters as intended and test a literal example. The original displayed store keys use predictable hyphens and letters.
Decide what to return when more than one row qualifies
- Return a list if the report asks which stores belong to a manager. Make the result area wide or tall enough for additional direct matches.
- Require a new condition if the output should be a single branch. A city alone may still be insufficient when two stores share that city; test which field actually narrows the result.
- Choose a reviewed row based on a documented time policy when historical assignments matter. Two records can be individually valid during different periods.
- Treat a duplicate identical key as a data quality question if the directory expects one unique key. Preserve both source rows in a review before claiming they are interchangeable.
Suppose you sort Stores into a different sequence. Exact store-key searches should still identify the same known row, given a unique key and unchanged data. The order of a returned list can change, and the first among repeated keys can change as well. If output must be consistent, specify which order matters or return all matches. Formula modes implement a search order; they don't establish which assignment is correct.
Use an ordered threshold when an exact amount is not a key
The fee table says “from ₹199 this fee applies,” not “only for an order of exactly ₹199.” Treat a threshold as the minimum for a band. The next threshold defines where the band ends. For example the ₹99 band starts at ₹99 and continues through values below ₹199. If decimal values are allowed, ₹198.99 is still in that band. Try the literal ₹199 at the start of the next band, not a rounded label that disguises which side of the boundary a transaction belongs to.
Check the ascending minimums and paired fees
For the legacy approximate VLOOKUP route, sort the whole two-column list by the first numeric column. A sorted key column with fee cells left behind can appear correct at a glance while the rule changes. Check the known pairs after sorting. The original definitions are 0 → 30, 99 → 25, 199 → 15 and 499 → 0. If two records claim to start at 199, you need a policy clarification. The function can pick a candidate but it cannot resolve which fee owner meant.
Do a hand check for a negative amount in scratch. It lies below the smallest listed threshold, so there is no eligible matching rule. A valid fee of zero above 499 is different from an unmatched number below zero. Keep an explicit review or missing-match indication for the latter. In an actual input check you can confirm the original amount is numeric before using it. A display format that adds a rupee sign cannot make raw text numeric.
Some students omit the last argument in VLOOKUP. In that function the omitted argument invokes approximate matching. The fee exercise deliberately needs that behavior with ascending thresholds. The exact Store ID exercise deliberately uses FALSE because IDs have no meaningful nearest key. Use function modes visibly so a reviewer can tell which choice is intentional. If you switch to XLOOKUP, use the matching argument for “exact or next smaller” rather than the separate search-order argument. A reverse scan is a different operation.
Trace each outcome for an eight-value check
- ₹0 and ₹98.99 are in the first band, fee ₹30.
- ₹99 and ₹198.99 reach the ₹99 band, fee ₹25.
- ₹199, ₹250 and ₹498.99 reach the ₹199 band, fee ₹15.
- ₹499 reaches the highest band and gives a genuine numeric zero for the fee.
Now look at why a correct ₹250 alone does not prove the whole formula. If the lookup accidentally takes a fixed ₹15 value from a report cell, it will pass ₹250 yet fail both lower and upper bands. If it stays visually correct for ₹250 and ₹199, you still need a known boundary where the fee changes. Test a pair immediately below and exactly at a threshold. Keep the tests separate from actual recorded Amount.
Read a two-way matrix as positions inside its amount block
INDEX uses positions inside B2:M7, not worksheet row and column numbers. For the March request, the month match finds the third item in the B1:M1 header list. Nashik is the second item in the A2:A7 city list. You can count two down and three across within the amount block. The physical worksheet location is D3, showing ₹12,400. This is easy to verify before letting the formula return the intersection.
Keep the date type consistent with the lookup key
The March header appears as Mar-2026 after formatting a real date. It is still a calendar value. A lookup that searches for the literal text characters can fail to match the stored number. Use a matching real month-start date for the selector, such as DATE(2026,3,1), and format it for readers if needed. For a matrix whose headers are literal text, validate those exact strings and use an appropriate text lookup instead. Make one convention valid across all twelve headers.
Keep the headers unique and scoped. A short label “Mar” may be enough for a worksheet explicitly limited to one year. If the matrix has two March periods from different years, a month-only label is ambiguous. A real date that includes year resolves the two distinct positions. In a larger analysis model each data row could have City, Month and Amount rather than using one column per month. That long shape supports a different summary method; the matrix here practises the two-position relationship.
Use a controlled alignment mistake to diagnose a plausible amount
On a duplicate formula intentionally shift the City range from A2:A7 to A3:A8. Nashik becomes the first matched item in that shifted list, while INDEX still uses the original numeric block. The resulting March amount is Pune's ₹14,000 even though the lookup found the text Nashik. Restore the aligned range and recover ₹12,400. This shows the difference between finding a label and using its index with a corresponding value. Validate both array dimensions and internal ordering.
Try a longer formula using selected City and Month cells after that diagnostic. Initializing the selected values as real input cells lets you test Pune January at ₹11,000 and Nagpur March at ₹9,100 without editing the underlying formula. The selected month could be built from a list of the first day of each month. A month with no matrix column should produce a review outcome. Check the match positions separately when learner visibility matters.
Choose a match that fits the record you need
Identify the search rule
For BLK-NSK-01 use exact store identity. For ₹250 use the largest threshold reached. For Nashik in March use both a row match and a column match.
Check reference shape
Check names and unique keys, verify sorted minimums and review real date headers. A lookup should know whether to expect one match or several.
Trace a requested value
BLK-NSK-01 returns Zoya. ₹250 returns ₹15. Nashik and March give position two and three, then ₹12,400.
Try something that should change
Test a missing store, an exact fee boundary or a second store under one manager. Confirm your method exposes the intended exception rather than returning a plausible but unrelated result.
Lab 1 · Verify exact store lookups and the master comparison
Prerequisites. Use the seven-row Stores input and the original ten Orders records. Name the tables as described above. Have a separate local scratch source for adding deliberate duplicate or missing-key cases. Test with a compatible Excel function or direct membership check where a formula is unavailable.
- Build the three exact store-to-manager formulas. Search BLK-NSK-01 and verify all return Zoya from its matching directory row. Test AMN-SLP-01 to give a second known platform and city, returning Salman.
- Enter BLK-XXX-99. A missing-match result matters even if your display uses a friendly text instead of #N/A. Review the source before concluding the code is unknown. Preserve the distinction between missing key and invalid reference.
- Reverse the lookup for Zoya. Baseline gives BLK-NSK-01. In scratch append BLK-NSK-02 for the same manager and confirm there are two eligible keys. Inspect what the single-result formula and all-match route each return.
- On a separate scratch table swap Area and City Manager while keeping Store ID first. An unchanged index 5 now reads Area. If the exact formula returns College Road where you expected Zoya, inspect the referenced column. Restore the intentional table layout or use a formula pointing to the named field directly.
- Compare the six candidate order IDs with the Table named Master. Expect four present rows and two missing. Trace the absent IDs AMN-1098 and AMN-1099 to the actual source list. There are three distinct present IDs because AMN-1003 appears twice among candidates.
- Explain which conclusions each rule supports. A code absent from this master can describe a file coverage issue, typing difference or wrong source scope. It doesn't by itself classify the purchase outcome. Keep the reported result “Missing from this master.”
Expected result. The baseline known and missing lookups are observable, reverse and duplicate conditions remain distinct, and the comparison reports both present and missing candidate rows. You can explain why a first match alone cannot confirm uniqueness.
Troubleshoot. If a known store is not found, inspect whitespace, stored type and search column. If you see a different valid value, check the result field or column index. If the candidate count is unexpected, classify repeated candidates separately from missing master matches.
Finish. Preserve the original store table and master source. Keep the deliberately added duplicate store in the scratch evidence only.
Lab 2 · Verify all fee bands and a two-way retrieval
Prerequisites. Use the FeeSlabs and monthly matrix prepared above, with matching numeric threshold and date types. Keep a copy of the standard order and reference data before performing deliberate bad alignment. Have two cells for independently checking matrix row and column positions.
- Find ₹250 by inspecting the supplied minimums and then with ordered approximate VLOOKUP. Both should return ₹15. Fill a separate test table for the eight listed amounts and prove each result using the intended rule.
- Test a scratch numeric amount of −1. It is below the minimum. Compare the no-match outcome with the matched fee zero at ₹499. Preserve the original fee fields and data types.
- Verify CityMonth header B1 is 1 January and D1 is 1 March, each as a true date. Enter two output checks for exact row position two and column position three for Nashik March. Then compute their intersection and verify ₹12,400 from D3.
- Use clear labels for three separate comparative cells. Compare Pune January at ₹11,000, Nashik March at ₹12,400 and Nagpur March at ₹9,100. The result should change only as the selected position changes.
- Intentionally use the shifted row-label range in a scratch formula. Observe expected ₹14,000 from Pune March when Nashik's position was shifted. Restore the matched ranges and confirm ₹12,400 again.
- Create one test with March as look-alike text instead of a real date. Check why expected exact matching may fail, then restore the controlled type. Explain the difference between visual format and lookup key.
Expected result. The worksheet proves each threshold boundary and matrix dimension independently. Real zero fees remain numeric, missing fee rules are exposed and the monthly test returns reproducible intersections.
Troubleshoot. If the fee is wrong, inspect sort order, type and the matched minimum. If the month is unmatched, check the actual date value and exact match mode. A valid-looking but wrong matrix amount suggests range alignment or a changed key ordering. Use the separate MATCH positions to isolate it.
Finish. Preserve the baseline reference lists and keep diagnostic formulas beside notes on the issues they reproduced. Remove only scratch altered records when you no longer need that comparison.
Explain which question a lookup actually answered
At the end, read your results as a list of supported claims. “The code BLK-NSK-01 appears exactly once in the approved directory, and its manager field contains Zoya” describes the exact evidence. “Zoya always manages only one store” overextends beyond the specific reference copy. “₹250 currently matches the teaching minimum 199” describes one fee rule, with no claim about actual service pricing. “Two of six candidate rows do not appear in the ten-order master” describes list membership explicitly.
Keep the acceptance test attached to the lookup type
- For exact store lookups test one known key, one absent key, the unique count and the intended return field. A second known field such as City can help you verify a returned row's identity.
- For approximate math test amounts at thresholds and around them, including a below-minimum review outcome. The fill calculation should use the same table pair each time.
- For matrix values test both matching label types, one known intersection and a deliberate shifted range. Compare position and displayed value.
- For membership preserve a source identifier and a reference version. Mark duplicates and absence separately, so a replicated request doesn't become a false count of transactions.
Use your Notes sheet to record which selectors and policies you used, and which assumptions would change if the workbook grew. If an old reference table has changed store assignments, compare the effective period. If a new chart asks for this month's fee band average, continue to keep money fields and populations separate. Verification records can be short when they preserve the right evidence.
Collect a lookup diagnosis from source key to result
Start a scratch note with the key as received and the candidate key you searched. Compare their lengths when an outer space is possible. Confirm the Store ID range contains the key you intended and inspect the number of matches. If the match count is one, compare the actual source row across at least two fields. For BLK-NSK-01 that row means Nashik, College Road and Zoya. These observable attributes can distinguish an incorrect return field from an incorrect match. If a complete output needs all matching values, place the dynamic FILTER in a normal worksheet cell with enough empty space for the results.
Place the expected result beside the currently returned value. The best first check is one whose output is visibly distinctive. An ID lookup returning Nashik could be a correct city lookup and a wrong manager lookup. A formula can appear to work after adding a helper if it finds one record with an expected word by chance. Test a second city whose manager is different and inspect the matching field names. Labor spent on a few precise checks is more productive than re-entering every formula after a display discrepancy.
Review the membership task under a new namespace rule. A marketplace could use the same short number for two orders on separate services. If the contract says Platform plus Order ID identifies a transaction, check both fields together. An AMN-1003 found in the unrelated namespace should not satisfy a combined test. This course's candidate IDs explicitly share the master namespace, which is why a simple one-column lookup is appropriate. Conditions belong to the record's true key and period, even when a lookup formula is easier with one column.
Interpret two common forms of duplicate evidence
A repeated candidate request is a row in the asking list. When AMN-1003 appears twice, the answer Present can be valid on both requests while there is only one distinct key to act on. A repeated master record is different because it may violate the authoritative one-order-per-key expectation. In a small reconciliation keep incoming rows, distinct requested keys, present rows and missing rows as separately named counts. Here you've seen six candidate rows, five distinct candidate keys, four matched rows, three distinct matched keys and two absent keys. That breakdown supports both response work and unique-order evidence.
A blank candidate ID should request review rather than participating in the ordinary “does the key exist” check. Give that row its own condition if the source can contain blanks. If the lookup column also has blanks, a normal comparison could mistake a blank for a meaningful match. Verify required fields before the membership step. If the case expects case-sensitive identity in another source, confirm the lookup mode before normalizing. The controlled labels in this lesson let you focus on match shape and population.
- Save an exact-key check for one row found by its ID and one key deliberately absent. Record whether the relevant stored values have the same type.
- Save a reverse check with several results and keep a row position or tie policy only if it really answers the business request.
- Save a numerical boundary with two different known returned fees. It should change at the policy threshold even if both amounts format similarly.
- Save an intersection where moving the city changes the answer but the month stays constant. Inspect both intermediate match positions.
A good final check uses two known requests whose answers differ. Then try a request with no eligible value. That sequence confirms the lookup depends on the selected input and exposes an ordinary absence instead of accidentally reusing a cached or overwritten text result.
Recall without opening the formulas. Describe the search rule for one store ID, one ₹250 order and one Nashik-March report. Which of them relies on an ordered minimum?
Check what can mislead after swapping directory columns
A fixed fifth-column index reads the new fifth field. The match can still find a key while returning Area instead of manager.
Check whether a found manager has one store
An ordinary first-match lookup doesn't check uniqueness. Count the matching rows or list them with a supported method.
Check the difference between ₹0 fee and a missing match
The 499 tier has a true zero fee. An amount below zero has no configured tier and needs a different visible result.
Check the expected result for the shifted City range
Nashik becomes position one in the shifted labels. The original matrix still begins with Pune, giving ₹14,000 for March in error.
Quiz · Match technique to the business question
1. Which column supports the original exact store lookup? A. Store ID. B. City only. C. Minimum Amount.
A. The practice directory defines one row per Store ID. Several stores can share a City.
2. What should happen when two stores match the same manager? A. Treat the first as proof of uniqueness. B. Check both eligible rows or narrow the request. C. Switch to approximate search.
B. A reverse query can legally have multiple results even when every Store ID is unique.
3. What fee should ₹250 return? A. ₹25. B. ₹15. C. ₹0.
B. ₹199 is the largest threshold reached. The next minimum is ₹499.
4. Which value matches a real March header date? A. The literal text Mar-2026 in every workbook. B. DATE(2026,3,1) under the example convention. C. The month number 3 alone.
B. The fixture stores the first day as the full date, not an abbreviation or month number.
5. Why can a shifted exact City match give the wrong amount? A. Position may no longer align with the numeric block. B. The worksheet changed its currency. C. Dates always become text.
A. Both MATCH positions must refer to the same ordering and region used by INDEX.
6. How many candidate rows are missing in the provided check? A. One. B. Two. C. Three.
B. AMN-1098 and AMN-1099 are absent. One present ID is listed twice among candidates.
Interview practice
- When could XLOOKUP and a reversed lookup answer different kinds of questions?
- Store-to-manager may have one eligible row, while manager-to-store can return several. I check the search key in the direction used.
- How can VLOOKUP return the wrong field even after finding an exact match?
- Its positional index can refer to a different field when column layout changes. I verify the return column and one exact expected row.
- What makes approximate matching suitable for a fee?
- The policy uses ordered numerical minimums. I want the largest eligible minimum and verify just-below and exact cases.
- Why use a true month date when searching the matrix?
- Matching compares stored values. A visible month-year caption can be a formatted date, so I match a date from the same month-start convention.
- What does a missing candidate ID prove?
- It is not present in the consulted master under the checked matching convention. I investigate namespace, source scope and spelling before making a broader business claim.
- How can you explain a lookup failure without seeing the entire workbook?
- I compare source key, matches found, relevant ranges and intended return field in a small demonstration. I keep both a success and a failure case.
Revision cards
- Exact key. Verify one eligible record and the intended returned field.
- Reverse lookup. A reverse direction can have multiple valid results.
- Position. An index describes a position inside a range or array.
- Threshold. The fee uses the largest eligible minimum and includes its exact boundary.
- Matrix. Use one aligned row match and one aligned column match.
- Membership. Report which candidate IDs are absent from a defined master and which repeat.
Official sources
Continue practising: explore the existing Excel Task Hub for additional exercises.