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

4. Lookup Functions

Excel

4.1 VLOOKUP with Exact Match

You have a list of orders containing store codes, and a directory containing the city and manager for each store. Exact VLOOKUP connects the two lists. In this lesson, you will build the formula slowly, copy it without moving the source, bring back several fields and investigate records that cannot be matched confidently.

The lesson uses fictional Blinkit and Amazon Now store records for a student project. The names, locations, codes and email addresses are teaching data, not company records. Keep a separate practice workbook so you can deliberately introduce mistakes and learn to diagnose them. For a shorter refresher after completing the exercises, use the existing VLOOKUP exact-match guide.

The four decisions: which value to find, which table to search, which field to return and which matching rule to use. Decide those in ordinary language before typing the function.

1. Turn a repeated search into a dependable instruction

Begin with the missing information

Suppose your project has received an order export. The export records the store code because the order system needs a compact identifier. Your presentation, however, needs readable cities and manager names. You can find those details in a maintained store directory. The information exists; it is simply stored in a different list.

Without a formula, a student might search the directory for the first code, copy its city into the order sheet, then repeat for every row. Two difficulties appear. First, repeated copying takes time and makes typing mistakes likely. Second, a correction to the directory does not automatically update the values you previously typed. A lookup provides a repeatable connection that can recalculate from the source.

Think of the formula as a careful assistant following written instructions. “Find this code in the first column of this directory, and return the city from the same row.” The assistant needs the correct directory and the correct field. It cannot know that your accidentally selected Area column was supposed to mean City. You remain responsible for describing the task clearly and checking the result.

Describe one row before choosing a formula

  • One row in Orders represents one order, so a store code can legitimately appear many times.
  • One row in Stores represents one store in the current directory.
  • The shared StoreID is the connection between those lists.
  • The requested City is an attribute belonging to that store record.
  • The output should preserve the number and order of the original orders.

This last point is practical. Enriching an order with its city should not delete unmatched orders or combine repeated store codes. Keep every original request visible. If an order cannot be matched, flag that row and investigate it. Silently dropping it can make later city totals look smaller than the original order total.

Know when a single-result lookup is the wrong tool

If a question asks for all orders from Nashik, one returned value is insufficient. If it asks for the total amount handled by Nashik, it needs an aggregation of qualifying transactions. Exact VLOOKUP is appropriate here because the request asks for one stored attribute of one store. Before using any function, describe the expected answer: one label, one amount, a total or a list of records.

The distinction applies beyond delivery apps. A college equipment request can contain an ItemCode while an equipment directory contains the item name. A music project can contain a TrackID while a separate catalogue contains the artist. A purchase sheet can contain a ProductCode while a maintained list contains the standard unit price. These are teaching analogies about connecting records, not claims about the software used inside those businesses.

2. Prepare the directory and request cells

Enter the source exactly once

Create a sheet named Stores. Put the six headings below in A1:F1 and the seven records in rows 2 to 8. If you already completed the chapter overview, use that same directory. Keep the headings on row 1 and include no extra title rows inside this small practice range. The formulas below depend on the stated addresses.

Stores!A1:F8 — fictional source records
StoreIDPlatformCityAreaCityManagerManagerEmail
BLK-PUN-01BlinkitPuneKothrudAbhishek Shindeabhishek.shinde@example.com
BLK-PUN-02BlinkitPuneHinjewadiPriyanka Shindepriyanka.shinde@example.com
BLK-NSK-01BlinkitNashikCollege RoadZoyazoya@example.com
AMN-NGP-01Amazon NowNagpurDharampethAmiramir@example.com
BLK-KOP-01BlinkitKolhapurRajarampuriRanirani@example.com
AMN-SLP-01Amazon NowSolapurMurarji PethSalmansalman@example.com
BLK-SBN-01BlinkitSambhaji NagarCIDCORajaraja@example.com

Create another sheet named Orders. For this lesson, only a small part of that sheet is needed: put StoreID in G1 and City in P1. Enter BLK-NSK-01 in G2, AMN-NGP-01 in G3 and BLK-PUN-02 in G4. The gap between G and P is intentional, matching the course's larger order layout. You do not need to fill the unused columns to perform this exercise.

Check the key and the expected field

Find BLK-NSK-01 in the source by eye. Its City is Nashik. Now find AMN-NGP-01, whose City is Nagpur, and BLK-PUN-02, whose City is Pune. Write those expected answers in a note outside the result range. Do not type them into P2:P4, because those cells will contain formulas.

Count the six source columns from the left edge of the selected block. StoreID is 1, Platform is 2, City is 3, Area is 4, CityManager is 5 and ManagerEmail is 6. The requested field is City, so its return index is 3. The worksheet location of the destination P2 does not affect that index.

  • Use the code as the identifier, rather than a non-unique city name.
  • Keep each source record intact across all six columns.
  • Check that the source range includes the field you want to return.
  • Check that the key is the first column of that selected range.
  • Keep a small manual expected-result list for the first test.

3. Assemble the formula one argument at a time

Read the complete instruction

=VLOOKUP(G2,Stores!$A$2:$F$8,3,FALSE)

Enter this in Orders!P2. The expected result is Nashik. The function name begins with V because it searches down a vertical first column. Its four arguments describe the input, source block, returned column and matching mode. FALSE explicitly requests an exact match; omitting that final argument selects approximate matching instead. The Microsoft function reference documents this syntax.

Argument one: the value being requested

G2 is a cell reference, so Excel reads the code currently stored in that cell. If you replace G2 with another valid code, the formula can return the corresponding city. The reference is useful because the same formula pattern can serve different order rows. You are not writing a separate formula containing a manually typed code for every order.

To test one fixed code in a scratch cell, text must appear inside quotation marks:

=VLOOKUP("BLK-NSK-01",Stores!$A$2:$F$8,3,FALSE)

The two formulas currently produce the same city, but their dependencies differ. The first follows changes to G2. The second always searches for the typed code until you edit the formula. Prefer a cell reference for a row-by-row report; use a literal only when that fixed value is intentional.

Argument two: the selected source block

Stores! identifies the worksheet. The exclamation mark separates the sheet name from its cell address. A2:F8 selects seven records and six columns. The first column of this block is A, containing StoreID. VLOOKUP does not search every column in the workbook for your code. If you accidentally select C2:F8, the first search column becomes City, and the store code is no longer in the place the function searches.

The dollar signs fix both ends of the range during copying. They are part of reference behaviour, not protection or encryption. A fixed reference can still refer to a source cell whose contents change. Its purpose here is to keep every copied order formula looking at the same directory block.

Argument three: the returned field within that block

The number 3 selects City because City is the third column of A:F. If the source block were moved elsewhere, you would count from its new left edge, not from worksheet column A. A return index is a position inside the selected block. It is not the letter of the destination column, a worksheet row number or the number of matching records.

Change the index to 5 in a separate formula and the same store returns Zoya, its CityManager. This is an excellent check of understanding: the matched record stays the same while the requested attribute changes. If you expected Nashik but received Zoya, investigate the returned field before changing the search code.

Argument four: the matching rule

For a store identifier, another nearby-looking code is not an acceptable replacement. FALSE keeps the request tied to the intended identifier under Excel's text-matching rules. The ordinary exact VLOOKUP does not require the source codes to be sorted. You may sort the complete source table for readability, but sorting only the key column would break its relationship with the other fields.

Exact mode is not a guarantee that all source records are unique, complete or correctly entered. It also does not mean a case-sensitive character comparison; special wildcard characters have their own behaviour, discussed later. Learn the scope of the promise: the match mode controls how the function searches, while separate checks establish whether the source is suitable.

Four lookup decisions: use G2 as the requested code, search Stores A2:F8, return source column three for City, and use FALSE for exact matching.
Read the arguments as decisions. You can diagnose a wrong answer more easily when each part has a clear job.

4. Copy the formula while keeping the source stable

Inspect the copied formula, not just the displayed city

  1. Select P2 after confirming its result is Nashik.
  2. Copy the formula into P3 and P4 using your usual fill or copy-and-paste method.
  3. Inspect P3 in the formula bar. The first argument should be G3.
  4. Inspect the source range in P3. It should still be Stores!$A$2:$F$8.
  5. Inspect P4. Its input should be G4 and its source should remain unchanged.
  6. Compare the results with Nagpur and Pune from your manual notes.

A fill-handle double-click can be convenient in a well-formed neighbouring dataset, but its stopping point depends on the surrounding data. For this small lab, explicitly fill the intended three-row range so you know where the formulas ended. After any larger fill operation, inspect the bottom rows instead of assuming the entire list was covered.

On supported desktop setups, a reference-toggle shortcut can cycle through relative and absolute forms while editing a formula. Keyboard behaviour varies with platform and function-key settings. You can always type the dollar signs directly. The goal is the resulting reference, not memorising a shortcut that behaves differently on another keyboard. See Microsoft's absolute-reference explanation.

Compare a correct copy with a drifting copy

Expected reference movement when copied one row down
PartIn P2In P3Reason
Requested codeG2G3Each order uses its own row
Fixed directoryStores!$A$2:$F$8Stores!$A$2:$F$8Every order searches the same records
Unfixed directoryStores!A2:F8Stores!A3:F9The copied range shifts and loses its first record

The drifting version might still return a correct result for a code that remains inside the shifted range. That makes the fault easy to miss. A formula can work on one row and fail on another without any change to the business question. Testing the first source record after copying exposes this particular problem.

Return several fields deliberately

Keep City in P. Put Area in Q1, CityManager in R1 and ManagerEmail in S1. Enter the following formulas in row 2 and copy each down through row 4. The input is locked to column G so that the requested code remains clear if you later copy the expression across columns. The return indexes are chosen separately for each output.

P2: =VLOOKUP($G2,Stores!$A$2:$F$8,3,FALSE)
Q2: =VLOOKUP($G2,Stores!$A$2:$F$8,4,FALSE)
R2: =VLOOKUP($G2,Stores!$A$2:$F$8,5,FALSE)
S2: =VLOOKUP($G2,Stores!$A$2:$F$8,6,FALSE)

The P2 and Q2 labels above identify destination cells; they are not text to include inside the formula. Row 2 should produce Nashik, College Road, Zoya and zoya@example.com. Adding more returned fields does not create additional stores. It adds attributes to the same order record.

If you insert a new field inside the source block, review these numeric indexes. A hard-coded 5 still means the fifth position, even if the heading at that position has changed. The next lesson examines this structural risk. For now, keep the practice layout stable and label each output clearly so a wrong-field result is easier to spot.

Trace the second copied order

  1. Move to the next input

    P3 reads G3, which contains AMN-NGP-01. The request changes because the formula is now on the next order row.

  2. Keep the directory fixed

    The source remains Stores!$A$2:$F$8. Its first column still contains all seven store codes, including the one being requested.

  3. Select the city field

    The return index remains 3. Excel retrieves City from the matched record, so the result is Nagpur rather than the manager Amir.

  4. Inspect the evidence

    Compare Nagpur with the source record, check that the code occurs once and inspect the formula itself. A visible result and a correct reference pattern should agree.

5. Investigate a missing match without hiding the evidence

Start with the simplest explanation

Add BLK-PUN-09 to Orders!G5 and copy the city formula into P5. That code is not in the seven-record directory, so the exact lookup should produce #N/A. In this controlled example, the result is useful: it correctly tells you that the source does not contain the requested key. Do not change FALSE to TRUE merely to make a city appear.

In a real assignment, an unmatched code can have several causes. The order may contain a typing error, the directory may be incomplete, the formula may search the wrong range, or the values may have incompatible representations. The same error display does not identify which cause applies. Inspect the request and the source before deciding how to repair either one. Microsoft's #N/A troubleshooting guide describes these distinctions.

  1. Read the exact code from the input cell, including any unexpected characters.
  2. Confirm that the selected source begins with the intended key column.
  3. Confirm that its final row includes the record you expect to find.
  4. Search the source manually for the intended record.
  5. Compare input and source types if they look similar but still fail to match.
  6. Correct only the verified cause and rerun the known and missing test cases.

A longer source list needs an intentional range update

If a genuinely new store is added in Stores row 9, the fixed A2:F8 range still stops at row 8. That boundary was useful for consistent copying, but it does not automatically grow when new data is typed outside it. Extend the source range deliberately, or use a well-defined Excel Table and suitable references in a later exercise. Then check the new record and an old record at the top of the directory.

A common repair mistake is extending only some output formulas. City might search through row 9 while ManagerEmail still stops at row 8. The same order then has a city but an unresolved manager. Keep related output formulas consistent and review every returned field after a source-range change.

Keep error handling separate from source correction

Once the raw lookup is understood, a narrowly chosen error message can improve readability. For example, IFNA can turn an expected missing-match error into “Review store code” while leaving other error categories visible. The dedicated error-handling lesson explains this function in depth. The message should direct the next action; it should not imply the store was verified.

=IFNA(VLOOKUP($G5,Stores!$A$2:$F$8,3,FALSE),"Review store code")

Do not use a blank fallback merely to make the sheet look complete. A blank can be mistaken for an intentionally empty field. Do not use zero for a missing text attribute. Most importantly, keep a count or list of unresolved requests so that the final report can state how much data was successfully connected and what remains under review.

6. Understand the limits of the word exact

Letter case and identifier policy

VLOOKUP treats uppercase and lowercase text as equivalent. A code written as blk-nsk-01 can match BLK-NSK-01. Microsoft also documents this in its VLookup method reference. That behaviour is convenient when the organisation considers letter case unimportant, but it is unsuitable as a case-sensitive identifier validator.

If your source system intentionally distinguishes Ab12 from AB12, do not assume FALSE preserves that distinction. Define the required comparison rule and choose a method designed for it. For learning, you can compare two candidate text values with EXACT, which distinguishes case. A separate comparison check is not the same as changing how an existing VLOOKUP performs its search.

Wildcard characters can change the search meaning

In text searches with FALSE, an asterisk can represent a sequence of characters and a question mark can represent one character. A tilde before either symbol requests the literal symbol. That means exact matching can still be a pattern search when the lookup text contains wildcard syntax. For ordinary StoreID values in this lesson, none of those special symbols appears, so the examples remain straightforward identifier searches.

A separate scratch example in Symbols!A1:B4
CodeLabel
BOX-A1Grey pouch
BOX-B1Blue pouch
BOX-*1Pattern pouch
=VLOOKUP("BOX-*1",Symbols!$A$2:$B$4,2,FALSE)
=VLOOKUP("BOX-~*1",Symbols!$A$2:$B$4,2,FALSE)

The first expression uses an asterisk as a wildcard and can match BOX-A1 first, returning Grey pouch. The second escapes the asterisk and requests the actual code BOX-*1, returning Pattern pouch. This small demonstration explains why “FALSE always compares every character literally” is an incomplete description.

Do not add wildcard patterns to a store identifier merely to make an unmatched record disappear. A broad pattern can match several different stores, and the first returned label can look plausible. Use intentional pattern searches only when the task asks for that behaviour and the potential ambiguity is handled. For imported keys containing special characters, define a literal-key strategy rather than relying on a visual resemblance.

Spaces, number types and leading zeros

Two displayed values can look alike while their stored content differs. An imported code may carry a trailing space or a nonbreaking space from copied web content. A numeric-looking code might be text in one list and a number in another. Changing a cell's display format does not reliably repair those underlying differences.

Keep the original imported column and perform any proposed cleaning in a helper column. Compare a few changed values with their originals before replacing anything. TRIM handles ordinary spaces according to its documented rules, but it does not remove every Unicode spacing character. The text-cleaning lessons explain the difference. Removing all punctuation from an identifier can merge two genuinely distinct records, so cleaning requires a rule, not just a desire for tidy text.

Consider an equipment code 00127. If those five characters are the official identifier, preserve them as text on both sides of the lookup. Converting the code to a number produces 127 and loses the original leading-zero information. A display format may make 127 look like 00127, but the underlying value remains numeric. Decide the required representation before importing the source and request lists.

7. Check source uniqueness and field completeness

A matching occurrence is not proof of a unique record

Exact VLOOKUP uses the first matching occurrence when duplicate keys exist. If the directory contains two rows for BLK-NSK-01 with different cities, a returned Nashik does not prove that the directory is consistent. Changing row order could expose a different answer. Resolve the conflicting source records rather than treating row position as evidence of correctness.

For the literal StoreID values used here, count matching source records in a helper column:

=COUNTIF(Stores!$A$2:$A$8,G2)

Expect one match for each valid store code and zero for BLK-PUN-09. A value above one needs review under our one-row-per-store directory rule. COUNTIF has its own case-insensitive and wildcard criteria behaviour, so this simple check is appropriate for the supplied codes but is not a universal literal-string validator. The key policy and comparison method must agree.

Inspect the returned field as well as the key

A source record may exist but have a missing manager email. That is different from an absent store code. A successful match establishes where the record is, not whether every attribute is complete. Review required source fields separately, especially when an output is needed for another task such as assigning responsibility or grouping a report.

In our practice directory all six fields are populated. If you deliberately clear one field in an experiment copy, record the change and inspect the affected output. Do not interpret an empty or unexpected-looking returned value as proof that the key is missing. First identify whether the record was found, then inspect the specific field that was requested.

Preserve the meaning of repeated orders

Add a second order with StoreID BLK-NSK-01. Both orders should receive Nashik. This repetition in Orders is expected and does not require removing a row. A duplicate in the store directory, by contrast, creates ambiguity about which record represents that store. Always state which list you are checking for uniqueness and why.

A source match-count check branches into zero matches for review, one match for field checks, and more than one match for duplicate investigation.
Finding a value and trusting the relationship are separate steps. The source-match count helps explain which investigation comes next.

8. Lab: complete an order enrichment and a review log

Build the required outputs

Use the Stores directory from section 2 and the four requested codes already entered in Orders!G2:G5. Your deliverable is a small enrichment sheet with City, Area, CityManager and ManagerEmail in columns P:S. Add SourceMatches in T1 and ReviewNote in U1. Keep the original StoreID values unchanged so the result remains traceable to its input.

  1. Enter the four formulas from section 4 in P2:S2, using the appropriate return index in each cell.
  2. Fill those four columns down through row 5.
  3. Enter the COUNTIF source-match check in T2 and fill down through T5.
  4. For the three valid rows, compare all four returned attributes with the directory.
  5. For row 5, retain the unresolved status and write “Code absent from current directory” in the review note.
  6. Record that three of four requests have one matching source record and one request has none.
  7. Inspect the last copied formula in S5 to confirm its source still begins at A2 and ends at F8.
Expected resolved rows for the order lab
CodeCityAreaManagerSource matches
BLK-NSK-01NashikCollege RoadZoya1
AMN-NGP-01NagpurDharampethAmir1
BLK-PUN-02PuneHinjewadiPriyanka Shinde1
BLK-PUN-09UnresolvedUnresolvedUnresolved0

Run three controlled experiments

Save an experiment copy. First, change G2 to BLK-KOP-01. The outputs should become Kolhapur, Rajarampuri, Rani and rani@example.com. This tests whether all four attributes follow the input consistently. Restore the original code after recording the outcome.

Second, change the City formula's return index from 3 to 4. The first row should now show College Road in a column labelled City. The formula still calculates, but the answer is semantically wrong. Restore the index and explain that the fault was field selection, not record matching.

Third, add a conflicting BLK-NSK-01 record in source row 9 and extend all relevant source ranges to row 9 in the experiment copy. Put Pune as the conflicting city. The source-match check should become 2 for that code, while a first-match VLOOKUP can still show the original Nashik. This demonstrates why the separate duplicate check matters. Remove the experimental row and restore the original source ranges before returning to your clean practice workbook.

Write a useful handover note

A good note might say that the directory contains seven unique store codes, three requested codes resolved to one record each, and BLK-PUN-09 remains absent. It should name the source range and explain that the code was not guessed or replaced. This gives another student enough context to continue the investigation without repeating your entire exercise.

Do not claim the directory is complete for a real business merely because it covers three requests. Your test proves the stated fixture behaves as expected. Wider completeness requires comparing the source against an agreed authoritative list. Knowing the limits of a check is part of being reliable with spreadsheets.

9. Lab: connect a purchase request to a price catalogue

Transfer the idea to a different context

A college club is preparing a stationery purchase list. Think of the separation between an item page and a shopping basket in an app such as Amazon: the basket identifies an item and quantity, while the catalogue supplies its description and current unit price. The following prices are invented for this exercise and are not Amazon prices. We will use a small workbook to understand the relationship.

Create a sheet named Catalog with the following records in A1:D5. Each code identifies one item and one stated unit. A pen pack is not the same unit as a single pen, so keep that information visible when calculating line totals.

Catalog!A1:D5 — fictional club supplies
ItemCodeItemNameUnitPriceUnit
NOTE-01Notebook90One notebook
PEN-05Pen pack60One pack of five
USB-16USB drive450One drive
FILE-01Folder35One folder

Create Purchases with ItemCode in A1, Quantity in B1, UnitPrice in C1 and LineTotal in D1. Enter NOTE-01 and 2 in row 2, PEN-05 and 3 in row 3, USB-16 and 1 in row 4, FILE-01 and 4 in row 5, and BAG-01 and 1 in row 6. BAG-01 is deliberately absent from the catalogue.

C2: =VLOOKUP(A2,Catalog!$A$2:$D$5,3,FALSE)
D2: =B2*C2
  1. Enter the price lookup and line-total formula in the indicated cells, excluding the destination labels from the formula text.
  2. Copy both formulas through row 6.
  3. Manually calculate the first four line totals: ₹180, ₹180, ₹450 and ₹140.
  4. Confirm that the four resolved lines total ₹950.
  5. Keep the missing BAG-01 price and line total unresolved. Do not silently substitute zero.
  6. Add a source-match check and a review note identifying the absent catalogue item.
  7. Label ₹950 as the resolved subtotal, not the complete purchase total, because the fifth request has no verified price.

Distinguish retrieval from calculation

The lookup retrieves the unit price; multiplication calculates the line total. Keep those two operations in separate columns while learning. If a line total is wrong, inspect whether the unit price or quantity is wrong before rewriting the multiplication. This separation makes the calculation easier to explain and gives a reviewer visible intermediate evidence.

For PEN-05, quantity 3 means three packs of five pens, not three individual pens. The amount is 3 × ₹60 = ₹180. A correct lookup cannot fix a mistaken unit interpretation. If the request actually means three pens, the source unit and the request need to be reconciled before pricing. The worksheet's labels help the student notice that question.

Change one input and predict the impact

In an experiment copy, change the notebook's source price from ₹90 to ₹95. Its two-notebook line should rise from ₹180 to ₹190, and the resolved subtotal should rise from ₹950 to ₹960. Restore ₹90. Then change the pen-pack quantity from 3 to 5. Its line becomes ₹300 and the resolved subtotal becomes ₹1,070. Restore the quantity after documenting the result.

These two experiments test different dependencies. The first changes a source attribute used by the lookup. The second leaves the source unchanged and changes an input used by multiplication. Being able to predict which cells should change is a stronger sign of understanding than seeing a new total and assuming it is reasonable.

For a historical purchase record, today's catalogue price may not be the intended price. A completed transaction might need the agreed price captured at purchase time. This exercise deliberately uses current catalogue prices to practise formulas; do not treat that design as a universal accounting rule. State the meaning of the price field whenever you reuse the pattern in a project.

10. Test the concept before revealing the explanation

1. The source is B2:E8. Which worksheet column does return index 3 select?

It selects worksheet column D. Count within the supplied block: B is position 1, C is position 2 and D is position 3. The index belongs to the selected source range. It does not automatically mean worksheet column C, and it has no relationship to the destination cell where you entered the formula.

2. Why can an unfixed source range work in the first row and fail after copying?

A relative source range moves with the copied formula. A2:F8 becomes A3:F9 when copied down one row, so the first source record is no longer included. Codes remaining inside the shifted range may still return correct values. This is why you inspect references and test an edge record, rather than checking only one convenient successful result.

3. Should you sort only the StoreID column before using exact VLOOKUP?

No. Exact mode does not require sorting, and moving only the key column separates codes from their related cities and managers. If sorting is useful for readability, sort the complete table so each record stays together. A formula can faithfully retrieve a city that was incorrectly attached to a code by a partial-column sort.

4. A source code occurs twice but the lookup returns a city. Is the directory ready?

Not under this lesson's one-row-per-store rule. The first matching occurrence can produce an answer even when another record conflicts with it. Investigate the duplicate and decide which record is valid using the source rules. A successful formula result does not replace a uniqueness check.

5. Is the unresolved BAG-01 request worth zero rupees?

No. Its price is unknown in the supplied catalogue. Zero would be a specific numeric price, while missing means the relationship could not be established. The four resolved lines total ₹950, but the whole purchase request remains incomplete until BAG-01 is resolved or explicitly removed under the project's rules.

6. Why does BOX-*1 return Grey pouch in the scratch example?

The asterisk is interpreted as a wildcard in that text lookup, so BOX-A1 qualifies and is encountered first. Escaping the asterisk with a tilde requests the literal code BOX-*1 and returns Pattern pouch. The matching mode and the characters in the lookup value both affect the search.

11. Practise a clear interview explanation

1. Explain the four VLOOKUP arguments using the store example.

The lookup value is the order's store code in G2. The table array is Stores!A2:F8, whose first column contains those codes. The return index is 3 because City is the third column of that block. FALSE requests exact matching. I fix the source references before copying and check known, missing and duplicated keys.

2. How would you investigate #N/A in a known store lookup?

I would inspect the exact input, confirm the selected first column and range boundaries, then compare source and request values for type or character differences. I would check whether the record is actually present in the selected source. I would repair the verified cause and retest. I would not switch to approximate mode or suppress the error just to produce a cleaner-looking sheet.

3. What limitation does a hard-coded column index introduce?

It expresses a position rather than a field name. If the table structure changes, that position can refer to a different field and produce a plausible but incorrect result. I would review formulas after layout changes or use a suitable header-based or direct-return-range approach, while still checking that the source and output retain their intended meaning.

4. How do you distinguish repeated orders from duplicate master records?

I first define what a row represents. Several orders can legitimately share one store code, so repetition in Orders is expected. The current Stores directory is intended to have one record per store, so repeated codes there need review. Removing repeated order rows would destroy valid transactions and would not repair an ambiguous directory.

5. What would you include when handing over a lookup workbook?

I would identify the source, key, returned fields, formula range and intended update behaviour. I would include known-result checks, an unresolved-record count and any duplicate-source findings. I would also explain version compatibility and whether the output reflects current source attributes or a historical snapshot. That makes the workbook understandable to someone who did not build it.

12. Revise with six short cards

  • Search starts at the block's left edge

    VLOOKUP searches the first selected column. Selecting the correct worksheet is not enough if the selected block starts in the wrong place.

  • Count the returned field inside the block

    City is position 3 in A:F. A changed block or inserted field can change the meaning of a numeric index.

  • Move the request, hold the directory

    Each order reads its own input row. Fixed source references keep copied formulas looking at the same complete list.

  • Exact is a matching mode

    It does not validate uniqueness, case-sensitive IDs, source completeness or business meaning. Wildcards require deliberate handling.

  • Missing deserves a review status

    An unresolved price is not zero. An unresolved city is not an invitation to guess. Preserve the input and explain the exception.

  • Predict a controlled change

    Change one source value or one request, predict which output changes, then compare. This tests the relationship you intended to build.

Continue with approximate matching and the column-index trap to learn when a different match rule is appropriate. The Excel Task Hub remains available for additional exercises after these two labs.

Sources and version notes

Checked 24 November 2026. Formulas use English names and comma separators. Keyboard shortcuts, regional separators and menu locations vary; type the demonstrated references directly when needed.