4.2 VLOOKUP Approximate Match and the Column-Index Trap
A discount table cannot list every possible bill amount. It can list the amount at which each discount begins. Approximate VLOOKUP turns those starting points into a repeatable band selection. This lesson also fixes a different source of wrong answers: a formula that keeps returning column five after the field you wanted has moved to column six.
You will work with two separate teaching situations. The first is a fictional Konkan Fresh Mart discount schedule, inspired by the kinds of basket offers students see in shopping apps. The second is a fictional store directory using Blinkit and Amazon Now as familiar contexts. None of these rates, store records or names represents a company's actual policy or internal data. Keep all experiments in a practice workbook.
1. Convert a written discount policy into intervals
Start with the rule someone can explain aloud
Imagine a classroom shopping project with this agreed rule: bills below ₹500 receive no discount; bills starting at ₹500 receive five percent; bills starting at ₹1,000 receive eight percent; and bills starting at ₹2,000 receive ten percent. The amount used here is the eligible basket amount before this discount. Delivery charges, taxes, exclusions and coupon combinations are outside this simple teaching model.
A student could write a long collection of IF tests. Another approach is to store the four starting amounts and their corresponding percentages in a table. The table makes the policy visible. Someone reviewing the workbook can read the four rules without opening a formula. The formula then follows that table for each order.
The important word is starting. A row containing 500 does not mean “only a bill of exactly ₹500”. It means that this band begins at ₹500 and continues until the next band's starting point. A bill of ₹650 therefore uses the same five-percent rate as a bill of ₹500. There is no need to list 501, 502 and every possible decimal amount.
Write the interval boundaries explicitly
| Eligible amount | Rate | Boundary interpretation |
|---|---|---|
| 0 up to, but not including, 500 | 0% | 500 belongs to the next band |
| 500 up to, but not including, 1000 | 5% | 1000 belongs to the next band |
| 1000 up to, but not including, 2000 | 8% | 2000 belongs to the next band |
| 2000 and above | 10% | No upper cap in this exercise |
Amounts below zero are outside the exercise's permitted input domain. A refund is not automatically a negative basket to which the same offer should apply. If your project later includes refunds, define that separate rule before extending the formula. Starting the table at zero covers nonnegative amounts; it does not make all possible inputs valid.
- Identify the quantity being classified: eligible rupee amount, not an order code.
- Choose one unit and currency for both requests and thresholds.
- State whether each boundary is included.
- State the last band's upper limit, if a real policy has one.
- Keep missing amounts separate from known zero amounts.
- Record the effective policy date when rates can change.
2. Follow the greatest eligible starting point
Read approximate as a precise selection rule
In this ascending numeric threshold table, approximate VLOOKUP selects the greatest starting point that is less than or equal to the requested amount. For ₹1,200, the eligible starting points are 0, 500 and 1,000. The greatest of those is 1,000, so the returned rate is eight percent. The 2,000 starting point has not been reached.
This is not a search for whichever number is geographically closest on a number line. Consider ₹1,900. It is only ₹100 away from 2,000 and ₹900 away from 1,000, but it still belongs to the band starting at 1,000. The customer has not reached ₹2,000. The result is eight percent, not ten percent.
The term approximate can sound like the formula is guessing. The selection rule is exact about the interval when the source is correctly prepared. The uncertainty comes from a poorly described business rule, an unsorted table, unsuitable values or the wrong formula arguments. Teach the rule in words before asking a student to memorise TRUE.
Sort the complete policy table
Approximate VLOOKUP requires the first source column in ascending order. Select both threshold and rate columns when sorting so each rate remains attached to its starting amount. Sorting just the thresholds can create a neatly ordered list whose associated percentages are wrong. The formula can then return a valid-looking rate from a damaged policy table.
Do not memorise the output of an unsorted example as if it were a dependable alternative behaviour. An unsorted table violates the lookup's requirement and can produce an incorrect answer without an obvious error. Repair the source order and rerun known boundary cases. One lucky correct result from an unsorted list does not establish that the workbook is reliable.
- Put numeric thresholds in the first column of the selected block.
- Use one unambiguous rate for each starting point.
- Sort all related policy columns together.
- Keep headings outside the numeric lookup range.
- Verify that numbers are stored as numbers, not currency text.
- Retest after inserting, removing or changing a band.
3. Build a complete, small practice sheet
Enter the policy and seven order amounts
Create a worksheet named Discounts. Put OrderID, Amount, Rate and DiscountRupees in A1:D1. Enter the seven orders below in A2:B8, keeping the Amount cells numeric. For example, type 1200 rather than a sentence such as “₹1,200 bill”. Currency formatting can add a rupee symbol without changing the value used by the formula.
This lesson uses a seven-order boundary exercise. The linked Task Hub has a separate practice table with its own amounts, row count and cell layout. When moving to that exercise, use the data displayed there rather than copying this lesson's expected totals into a different sample.
| OrderID | Amount |
|---|---|
| KFM-301 | 350 |
| KFM-302 | 1200 |
| KFM-303 | 2500 |
| KFM-304 | 500 |
| KFM-305 | 499.99 |
| KFM-306 | 2000 |
| KFM-307 | 1750 |
In E1:F1, enter MinAmount and DiscountRate. Enter the four policy rows in E2:F5. Type the percentages with the percent sign, such as 5%. Excel stores five percent as 0.05. Typing 5 and then formatting it as a percentage displays five hundred percent, which is a different value.
| MinAmount | DiscountRate |
|---|---|
| 0 | 0% |
| 500 | 5% |
| 1000 | 8% |
| 2000 | 10% |
Build the rate formula before the rupee calculation
=VLOOKUP(B2,$E$2:$F$5,2,TRUE)
Enter this formula in C2 and format the result as a percentage. B2 supplies the eligible amount. The fixed range E2:F5 contains the policy. Return index 2 chooses DiscountRate, the second column of this selected block. TRUE requests approximate matching. Copy C2 through C8, then inspect C8 to confirm that its input became B8 while the source remained E2:F5.
Column E is worksheet column five, but it is column one inside E:F. Column F is column two inside that same block. Return index 2 therefore means F for this formula. It does not refer to worksheet column B. Count from the left edge of the actual table_array argument, regardless of where that block sits on the worksheet.
Now put this separate formula in D2 and copy through D8:
=ROUND(B2*C2,2)
The lookup retrieves a rate; multiplication calculates a discount amount. Rounding to two decimal places is an explicit rule for this fictional exercise. Real systems may specify a different rounding stage, tax treatment or settlement precision. Here, calculate and round each order's discount before adding those discounts together.
Keep rate, discount and payable amount distinct
For KFM-302, the rate is eight percent, the discount is ₹96, and the remaining basket amount is ₹1,104. These are three different quantities. If you present the number 8 as the rupee discount, you have confused a percentage with money. If you label ₹96 as the amount to pay, you have confused the reduction with the remaining balance.
Use H1 for BandStart and I1 for NetAmount, leaving G unused. In H2 enter the first formula below; in I2 enter the second. Copy both through row 8. The first returns the selected lower boundary itself, which helps explain the rate. The second subtracts the rounded discount under this exercise's rule.
=VLOOKUP(B2,$E$2:$F$5,1,TRUE)
=B2-D2
The formula result and its explanation now sit together: amount, selected band, rate and rupee consequence. This arrangement makes a beginner's calculation easier to check. You can hide intermediate columns in a later presentation copy if appropriate, but retain them while learning and debugging.
4. Lab 1 — test the orders and the boundaries
Compare every supplied order with an independent answer
| OrderID | BandStart | Rate | Discount rupees | Net amount |
|---|---|---|---|---|
| KFM-301 | 0 | 0% | 0 | 350 |
| KFM-302 | 1000 | 8% | 96 | 1104 |
| KFM-303 | 2000 | 10% | 250 | 2250 |
| KFM-304 | 500 | 5% | 25 | 475 |
| KFM-305 | 0 | 0% | 0 | 499.99 |
| KFM-306 | 2000 | 10% | 200 | 1800 |
| KFM-307 | 1000 | 8% | 140 | 1610 |
- Check KFM-301 first. ₹350 has not reached ₹500, so its rate and discount are zero.
- Check KFM-302. ₹1,200 has reached ₹1,000, giving eight percent and ₹96.
- Check KFM-304 and KFM-305 together. Exactly ₹500 qualifies for five percent; ₹499.99 does not.
- Check KFM-306. Exactly ₹2,000 belongs to the top band, with a ₹200 discount.
- Check KFM-307 by hand. Eight percent of ₹1,750 is ₹140.
- Add the seven original amounts. Their total is ₹8,799.99.
- Add the seven rounded discounts. Their total is ₹711.
- Add the seven net amounts. Their total is ₹8,088.99, and adding ₹711 restores the original total.
This final reconciliation checks the arithmetic relationship across the whole sample, while the individual rows check the band decisions. Both are useful. Two wrong rows can sometimes offset each other in a total, so a matching total alone is not enough. Keep at least the just-below and exactly-on-boundary cases visible in your evidence.
Extend the test without changing the original sample
In L1:M1 enter TestAmount and ExpectedRate. Use the values below in L2:M11. In N1 write ActualRate and in N2 use =VLOOKUP(L2,$E$2:$F$5,2,TRUE), then fill through N11. Compare actual and expected rates. This test area is separate from the seven orders, so the original order totals remain meaningful.
| Test amount | Expected rate |
|---|---|
| 0 | 0% |
| 499.99 | 0% |
| 500 | 5% |
| 500.01 | 5% |
| 999.99 | 5% |
| 1000 | 8% |
| 1000.01 | 8% |
| 1999.99 | 8% |
| 2000 | 10% |
| 2000.01 | 10% |
In an additional scratch cell, test −1. The raw approximate lookup returns #N/A because the amount is below the smallest boundary. Interpret this as a failed policy lookup, not a request to add a zero-valued fallback. The input is outside the exercise's allowed domain and should be reviewed before a rate is reported.
5. Trace one amount through the decisions
Predict the rate for ₹1,900
Read the intended measure
The input is a numeric eligible basket amount of ₹1,900. It is not a customer identifier or an already-discounted amount. The policy describes a single rate applied to this whole eligible amount.
Find eligible starting points
Zero, five hundred and one thousand have all been reached. Two thousand has not. The source must remain sorted with each rate attached to its own threshold.
Select the greatest eligible point
One thousand is the greatest eligible starting point, so return its eight-percent rate. Do not select two thousand merely because it is numerically closer to nineteen hundred.
Calculate and check the consequence
Eight percent of ₹1,900 is ₹152. Under this simple policy, the remaining amount is ₹1,748. A ten-percent result would expose a wrong band selection even if the multiplication itself was correct.
Try explaining these four decisions without looking at the formula. If you can describe the valid thresholds and selected rate, you understand the mechanism. If you can only say “TRUE means approximate”, return to the interval table and practise with ₹999.99, ₹1,000 and ₹1,000.01.
6. Check the input and the policy before applying the rate
A missing amount is not a free order
A blank amount can mean that a record arrived before pricing was completed. It does not necessarily mean the customer ordered a basket worth zero rupees. A raw lookup may coerce a blank reference in a way that selects the zero band. The displayed zero percent then hides the more important fact that the input was never supplied.
In a review column, check whether the request is a number and belongs to the permitted range before calling the band formula. For this exercise, the following structure returns a review message for nonnumeric or negative inputs. It does not invent a rate for them. Keep a separate review status if a downstream calculation requires a purely numeric rate column.
=IF(ISNUMBER(B2),IF(B2<0,"Review negative amount",VLOOKUP(B2,$E$2:$F$5,2,TRUE)),"Review amount")
The outer test checks the type. The inner test checks the allowed minimum. Only a numeric, nonnegative input reaches the lookup. This formula is deliberately shown after the unwrapped lookup so you can distinguish input checks from band selection. It is not a general repair for every possible error in the policy table.
- A numeric zero is a valid amount under this exercise's stated rule.
- An empty cell needs a review instead of an invented zero.
- A text value such as Pending needs a review.
- A numeric-looking text value should be checked and converted deliberately from the source.
- A negative value requires a separate business interpretation.
- An invalid rate or missing policy row remains a source problem.
A lower-bound lookup cannot prove that the policy is complete
Suppose someone removes the ₹1,000 policy row. A ₹1,200 basket can still select the previous ₹500 band and return five percent. That output is compatible with the remaining table but contradicts the approved four-band policy. Excel cannot know that a required row was accidentally deleted. Compare the table with the approved rule, not merely with the absence of formula errors.
Similarly, duplicate starting points make the policy ambiguous. If two rows both start at 1,000 but give different rates, the workbook has two competing instructions for the same interval. Do not rely on incidental duplicate selection behaviour. Resolve the policy conflict, keep a single row for each starting point and retest the boundaries.
Separate a single-rate policy from a progressive calculation
This lesson applies the chosen rate to the entire eligible basket. Under a different policy, only the portion above a threshold might receive a rate, or each portion could have a different rate. Such a progressive calculation needs additional arithmetic across intervals. One band lookup followed by multiplication of the whole amount does not automatically implement it.
For example, our ₹1,200 basket receives eight percent of ₹1,200, or ₹96. An invented alternative rule might give eight percent only on the ₹200 above ₹1,000, producing ₹16 for that portion. These results answer different policy questions. Do not choose between them based on which formula is shorter; ask the rule to specify the eligible base.
The same care applies to scores, shipping weights and service durations. Lower bounds work when the rule is stated as “from this value onward”. A table of upper limits such as “up to two kilograms” needs a compatible selection rule or a deliberate conversion into lower bounds. Copying this exact formula into an upper-limit table can select the wrong interval.
7. Understand the column-index trap
A position is not the same thing as a field name
Return to an exact store lookup. The directory contains StoreID, Platform, City, Area, CityManager and ManagerEmail in that order. The manager is the fifth column in A:F. A formula using return index 5 works because the current layout places the desired field in that position.
Now imagine another student inserts a Pincode column after Area. Pincode becomes the fifth field and CityManager becomes the sixth. A literal 5 inside the formula is still the number five. It does not mean “follow whichever column contains the manager”. The formula can return a pincode without producing an Excel error.
This is more dangerous than an obvious error message in some reports. A pincode is a valid cell value. If the destination column is wide enough and the reviewer only checks that every row has a result, the mistake can survive. You need to check both the matched record and the meaning of the returned field.
Use a header lookup to calculate the position
=MATCH("CityManager",Stores!$A$1:$F$1,0)
Before the insertion, this returns 5. MATCH looks for the exact header text and returns its position within the selected header range. The final zero requests exact matching; do not omit it because MATCH has a different default matching behaviour. Here the request is a field label, so approximate matching has no role.
Put that expression where VLOOKUP expects its column number:
=VLOOKUP(G2,Stores!$A$2:$F$8,MATCH("CityManager",Stores!$A$1:$F$1,0),FALSE)
Read it from the inside out. MATCH determines the position of CityManager in the header row. VLOOKUP finds G2's StoreID in the source records and returns that calculated column. The FALSE at the end still controls the store-code match. Adding MATCH for the column does not change the row lookup into approximate matching.
Align the header range with the data block
The header range must start at the same left edge as the VLOOKUP table and describe the same columns. If the data block begins at A but the header search begins at B, MATCH counts a different set of positions. It can return a perfectly valid number that points to the wrong field inside the data block.
- Use A1:F1 with A2:F8 in the initial directory.
- After the inserted field, review A1:G1 together with A2:G8.
- Use the actual header spelling CityManager, without adding a space.
- Keep one unique header for each field.
- Test the header position separately before nesting it.
- Check a known manager result after every structural change.
Header-based selection protects against this particular positional shift when the ranges and names remain consistent. It does not make the workbook immune to renamed fields, duplicate headings, missing rows, wrong source data or a moved key column. The lesson is to express the intended field more clearly and keep checks around that expression.
8. Lab 2 — observe and repair a structural change
Prepare the original seven-store directory
Create a Stores sheet with the following records in A1:F8, or use the unchanged directory from lesson 4.1. These are fictional records for the course. On a separate sheet named Requests, type StoreID in G1, FixedIndexManager in H1 and HeaderManager in I1. Put AMN-NGP-01 in G2, BLK-NSK-01 in G3 and BLK-PUN-02 in G4.
| StoreID | Platform | City | Area | CityManager | ManagerEmail |
|---|---|---|---|---|---|
| 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 |
Enter the first formula below in Requests!H2 and the second in I2. Fill both through row 4. Both columns should initially return Amir, Zoya and Priyanka Shinde. This establishes a known correct result before you introduce the layout change.
=VLOOKUP(G2,Stores!$A$2:$F$8,5,FALSE)
=VLOOKUP(G2,Stores!$A$2:$F$8,MATCH("CityManager",Stores!$A$1:$F$1,0),FALSE)
Introduce one controlled change in the practice copy
- Save a separate experiment copy so you can restore the original directory.
- On Stores, select the entire worksheet column E and insert a new column before it.
- Type Pincode in E1. The original manager and email fields should now occupy F and G.
- In E5, on the AMN-NGP-01 row, enter 440010 as a teaching sample identifier. Format the field as text if your project stores postal codes as text. This is not a verified store address.
- Inspect Requests!H2. Its source reference should have expanded to A2:G8, but the literal return index remains 5.
- Confirm that H2 now returns the pincode value instead of Amir.
- Inspect Requests!I2. Its header range should cover A1:G1, and MATCH should now produce 6.
- Confirm that I2 still returns Amir. Inspect the other two manager results as well.
The final intended header-based formula is below. If your editing method produced different ranges, correct them to these aligned ranges before judging the result. Inserting a whole worksheet column is the specific operation in this lab; importing a replacement file or pasting rearranged columns can require a separate review.
=VLOOKUP(G2,Stores!$A$2:$G$8,MATCH("CityManager",Stores!$A$1:$G$1,0),FALSE)
Keep the pincode only on the one demonstration row. A fixed-index lookup against the other blank Pincode cells may display a zero, which is another reason not to interpret a returned number as a manager. The exercise is about the selected field, not about completing a postal directory.
Try a header failure and diagnose it separately
In another scratch copy, change F1 from CityManager to ManagerName without changing the formula. MATCH looking for CityManager returns #N/A. This is a useful visible failure: the requested field label is no longer present. Update the formula only after confirming that ManagerName really represents the same business field. Restore the original heading after the experiment.
Do not immediately label every #N/A as “store not found”. In the nested formula, the header search can fail before the store lookup returns its field. Test MATCH by itself, then test the store-code existence separately. A broad fallback around the whole formula can hide which of those relationships failed.
9. Maintain the workbook as its rules and structure change
Change the policy deliberately and predict the affected rows
In an experiment copy of Discounts, change the five-percent rate in F3 to six percent while keeping every threshold unchanged. Among the seven original orders, only KFM-304 uses that band. Its discount should increase from ₹25 to ₹30. The total discount becomes ₹716, and the total net amount becomes ₹8,083.99. Restore five percent after recording the result.
This small scenario tests whether the formulas really depend on the policy table. If you typed five percent directly into an order cell, that row would not follow the source change. A workbook that looks correct for the first sample may still fail to respond to later changes. Predict the affected orders first, then compare the recalculated results with that prediction.
Try a second, separate experiment after restoring the original rate: change the lower boundary 500 to 600. The table remains ascending because 600 lies between 0 and 1,000. KFM-304, whose amount is ₹500, should now receive no discount. The total discount becomes ₹686 and the total net becomes ₹8,113.99. Restore the original 500 threshold before sharing the baseline results.
These experiments change different parts of the rule. The first changes the outcome within an unchanged interval. The second changes which amounts enter the interval. A reviewer should be able to distinguish those two effects. Keep an approved original copy and a short note about each scenario instead of overwriting the baseline silently.
Keep historical prices and current policy separate
A worksheet that recalculates old orders from the current policy table may rewrite the apparent discount history whenever the policy changes. That can be intentional in a planning model, but it may be wrong for a record of completed transactions. A historical report may need the rate agreed on the order date, a versioned policy or a stored transaction result.
For this lesson, all seven orders belong to one practice policy version. Do not add dates merely to make the example look realistic without defining how they affect rate selection. When a future project introduces effective dates, first describe which date controls the policy and how overlapping or missing date ranges should be handled.
Understand the remaining VLOOKUP limitations
- Search-column position: the lookup key must be in the first column of the selected source block.
- Return direction: ordinary VLOOKUP cannot return a field to the left of that first search column.
- Single result: an exact lookup returns the first matching occurrence rather than every matching row.
- Return width: a column index greater than the selected block's width produces #REF!.
- Source meaning: a successful lookup does not prove that the selected source record is correct or current.
- Maintenance: header-based column selection still depends on aligned ranges and reliable headings.
Later lessons use INDEX with MATCH and XLOOKUP to address some of these limitations. Directly identifying a return range can make the intended field clearer. Those approaches still require valid keys, matching row relationships and suitable handling of missing values. A more flexible function does not remove the need to understand the data.
Review a report in a repeatable order
- Read the business question and identify whether it requires an exact identifier or a threshold interval.
- Check the request's actual stored type and allowed domain.
- Inspect the selected source block, including its first and last rows.
- For approximate matching, verify ascending lower bounds and complete paired records.
- For field selection, verify the intended header and its position within the selected block.
- Compare known boundary, missing and structural-change cases.
- Reconcile counts and amounts before presenting the report.
Following this order prevents a common debugging loop: repeatedly editing the final function until one answer looks plausible. Each check asks a specific question. If the table is missing a policy row, changing the formula's match mode does not restore that missing business rule. If the returned field is wrong, sorting the keys does not select the correct column.
10. Check your understanding before opening the answers
1. A ₹1,900 basket is closer to ₹2,000 than ₹1,000. Which rate applies?
Eight percent applies under this policy. Approximate VLOOKUP on the ascending lower-bound table selects the greatest starting amount that has already been reached. ₹2,000 has not been reached, so numerical closeness does not qualify the basket for ten percent. The discount is ₹152 and the remaining amount is ₹1,748.
2. The policy block is E2:F5. Does return index 2 mean worksheet column B?
No. It means the second column inside E2:F5, which is F. Column E is position one within that block. This local counting rule applies regardless of where the table is placed on the worksheet. The destination cell's location does not change the selected source field.
3. Is ₹499.99 in the five-percent band if the displayed amount is rounded to ₹500?
No, if the stored eligible amount remains 499.99. Number formatting can hide decimals without changing the value being compared. This exercise classifies the stored amount. If a real policy requires rounding before eligibility is determined, that must be an explicit, separate calculation with its own boundary tests.
4. A new source column was inserted and the formula returns 440010 instead of Amir. Did the row lookup fail?
Not necessarily. The correct store row may have been found, while the hard-coded return index now selects Pincode. Investigate the meaning of the returned column separately from the row match. In the lab, matching the CityManager heading produces the new position six and restores the intended manager field.
5. Can the header search use B1:G1 when the VLOOKUP data starts at A2?
Those ranges count positions from different starting columns. MATCH might return a number, but that number would refer to a different position inside the VLOOKUP block. Align the header range with the data block, such as A1:G1 with A2:G8, and check the standalone header position before nesting it.
6. Starting the policy table at zero prevents every possible #N/A. True or false?
False. It covers nonnegative amounts in this complete, correctly prepared lower-bound model. A negative amount remains below the smallest threshold, and other source or input problems can still prevent a correct result. A blank amount also needs its own review; it should not be treated as a verified zero-value basket.
11. Practise explaining the decisions in an interview
1. Explain a suitable use of approximate VLOOKUP.
I use an ascending numeric lower-bound table when an agreed rule assigns values to intervals. In the teaching discount table, a ₹1,200 basket selects the band starting at ₹1,000 and receives eight percent. I check just-below, exactly-on and just-above boundaries, and confirm that the policy applies the rate to the intended amount.
2. Describe the column-index trap with a concrete example.
A manager field originally occupies the fifth column of a directory. Inserting Pincode before it moves the manager to position six, while a literal return index of five still selects position five. The formula can return a pincode without an error. I inspect the returned field and can calculate its position from a verified unique heading.
3. How would you make a header-based lookup easier to debug?
I first run MATCH on the heading alone and verify its relative position. I check that its header range has the same left edge and columns as the VLOOKUP data range. Then I test a known key and inspect the returned field. If the nested formula fails, those separate tests reveal whether the heading or the requested record is missing.
4. A sorted policy table produces a valid-looking rate. Is that enough evidence?
No. Sorting is one requirement, not proof that the policy is complete. A missing threshold can extend the preceding band, and a wrong paired rate can still be returned successfully. I compare the source with the approved policy and use independent expected results for each boundary and a few representative amounts.
5. When would you choose another lookup approach?
I would consider an approach such as INDEX with MATCH or XLOOKUP when the return field lies to the left, when a direct return reference improves clarity or when the required matching behaviour fits another function better. I would also check the recipients' Excel versions. Regardless of function, the source keys, selected rows and missing-data rules need verification.
12. Keep the important ideas in six recall cards
- Lower bound
A band begins at its listed starting amount. The next starting amount marks the following band.
- Greatest eligible point
Select the largest threshold no greater than the input. Do not choose the numerically nearest threshold.
- Whole-row sorting
Keep thresholds and their rates together. Sorting one column alone can damage the policy.
- Position versus meaning
A literal return index selects a position. It does not automatically follow a field after a column insertion.
- Aligned header search
MATCH can calculate the field position when the heading range and data block describe the same columns.
- Evidence at boundaries
Test below, at and above each threshold, then test missing input and one controlled structural change.
Before continuing, close the answer sections and explain the difference between the rate selection in Discounts and the manager selection in Requests. The first asks which numeric interval contains an amount. The second asks which stored attribute belongs to an exact store code. Both use VLOOKUP, but their matching decisions serve different questions.