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

4. Lookup Functions

Excel

4.6 XLOOKUP Basics and if_not_found

An order contains a store code, but your report needs the city. A staff request contains an employee code, but your checklist needs the assigned laptop. XLOOKUP connects the code you have with the information maintained in another list. Its basic form is easy to read: search this list for the requested value, then return the corresponding item from that list.

This lesson uses fictional store and staff records. Blinkit, Amazon Now and laptop brands provide familiar contexts, not actual company data. You will build two complete lookup exercises, keep missing requests visible, and learn why a friendly missing-result message does not prove that the rest of the data is correct. After studying, use the short XLOOKUP guide for revision.

Search one field, return another: identify the requested code, the source key list and the aligned result list. XLOOKUP uses exact matching by default. Its optional missing-result argument applies when no matching item is found; it is not a universal repair for every error.

1. Start with the information a request is missing

Keep the directory separate from repeated requests

Imagine an operations team receives many requests involving the same stores. Typing a city or manager beside every requested code creates repeated work. It also creates opportunities for spelling differences and outdated details. A maintained directory lets the report retrieve the current recorded information using a consistent identifier.

The request and the directory have different row meanings. A request row represents one enquiry or transaction that needs enrichment. A directory row represents one store in the current teaching source. The same store can appear many times in the requests while appearing once in the directory. Repeated request codes are not automatically duplicates to delete.

  • The input is a code you already have.
  • The search list contains the authoritative codes for this exercise.
  • The return list contains the attribute you want for those same records.
  • The result enriches the request without removing it.
  • A missing result identifies an unresolved relationship.
  • A valid-looking result still needs a trustworthy source and a suitable key.

A store code is usually more useful than a city name for identifying one store. Two stores can operate in Pune, and two people can share a name. XLOOKUP can return a first matching record without proving that the search value uniquely identifies that record. Decide which field identifies one intended source row before choosing a formula.

Understand the three essential arguments

=XLOOKUP(lookup_value,lookup_array,return_array)

The first argument is the value to find. The second is the one-dimensional list to search. The third contains the result associated with each item in that list. For our basic vertical lookup, the search and return lists must contain the same number of rows in the same record order.

Unlike VLOOKUP, you do not supply a numeric count of columns from the left edge of a table. You point directly to the result field. That can make the formula easier to follow and avoids one particular column-number maintenance problem. It does not protect against every kind of source edit, mismatched range or incorrect data.

2. Prepare the complete store directory

Use the original seven teaching stores

Create a worksheet named Stores. Enter the following table in A1:F8, including the headers. Each row is one invented store record. The numeric opening years are attributes, not amounts to total. Keep Store ID as text so letters, hyphens and any meaningful leading zeroes remain intact.

Stores!A1:F8 — fictional directory for both reading and practice
Store IDPlatformCityAreaCity ManagerOpened (year)
BLK-PUN-01BlinkitPuneKothrudAbhishek Shinde2022
BLK-PUN-02BlinkitPuneHinjewadiPriyanka Shinde2023
BLK-NSK-01BlinkitNashikCollege RoadZoya2023
AMN-NGP-01Amazon NowNagpurDharampethAmir2024
BLK-KOP-01BlinkitKolhapurRajarampuriRani2024
AMN-SLP-01Amazon NowSolapurMurarji PethSalman2025
BLK-SBN-01BlinkitSambhaji NagarCIDCORaja2025

Leave column G empty. Put Store to find in H1. Enter BLK-PUN-02 in H2 and BLK-PUN-07 in H3. These first two selectors match the original Task Hub exercise. The first code exists; the second does not. Keeping both gives you a useful known-result check and a deliberate missing-result check.

  • A2:A8 contains seven store keys.
  • C2:C8 contains the seven corresponding cities.
  • D2:D8 contains their areas in the same order.
  • E2:E8 contains their managers in the same order.
  • F2:F8 contains their numeric opening years.
  • H2:H3 contains requests, not additional directory records.

Inspect the relationship manually once

Find BLK-PUN-02 in column A. Its complete row contains Blinkit, Pune, Hinjewadi, Priyanka Shinde and 2023. Before writing any formula, record those expected attributes. This creates an independent check; a formula is not validated merely because it produces a name that appears somewhere in the workbook.

Now look for BLK-PUN-07. It is absent from the seven source keys. Do not infer its city or manager from the similar prefix. A code format may offer a clue, but the directory still has no approved matching row in this exercise. The correct action is to show that the request is unresolved and investigate it.

3. Build the first exact lookup

Retrieve the manager from a selected code

Put Manager in K1 and enter the following formula in K2. It searches the source IDs for H2 and retrieves the corresponding manager. With BLK-PUN-02 selected, the answer should be Priyanka Shinde.

=XLOOKUP(H2,$A$2:$A$8,$E$2:$E$8)

The source key is the second item in A2:A8, so the result comes from the second item in E2:E8. You do not need to calculate that position yourself, but understanding the relationship helps you audit the answer. The dollar signs keep the source ranges fixed when copying the formula to other request rows.

Copy K2 into K3. The input changes from H2 to H3 while the source ranges remain fixed. Because BLK-PUN-07 is missing, K3 shows #N/A. In this situation, the error conveys useful information: the formula cannot find the requested code in the stated directory.

Use exact matching intentionally

Three arguments are enough for the basic exact lookup. XLOOKUP's default matching mode is exact, so you do not add FALSE as you did with VLOOKUP. The fourth argument has a different purpose: it is the optional result to display when the search finds no matching item.

This distinction matters when translating formulas. Copying VLOOKUP's final FALSE into XLOOKUP's fourth position does not set the match mode; it supplies a logical FALSE fallback. Learn the argument roles rather than transferring a familiar-looking tail from another function. Approximate, wildcard and reverse searches belong to explicit options covered in the next lesson.

BLK-PUN-02 matches the second key in A2:A8 and returns Priyanka Shinde from the second aligned manager cell in E2:E8.
The key and result lists refer to the same store records. Their physical distance across the worksheet does not change that relationship.

4. Add a useful missing-result message

Keep unresolved requests visible

Replace K2 with the four-argument version below, then fill it into K3. The known request still returns Priyanka Shinde. The missing request now displays Not in master. That wording means the requested code is absent from this source; it does not establish whether the code is wrong, new or intentionally excluded.

=XLOOKUP(H2,$A$2:$A$8,$E$2:$E$8,"Not in master")

The final text must be enclosed in double quotation marks. It can be a different clear message such as Review store ID, provided everyone understands its meaning. Avoid a blank fallback when unanswered requests would disappear from review, and avoid numeric zero when zero could be interpreted as a genuine measured result.

For a staff-name field, a visible text fallback is easy to read. For a price or quantity field, mixing text and numbers can affect downstream calculations. A SUM may ignore text and therefore show only the total of resolved values. That partial total is not a complete total of all requested records. Track unresolved counts separately and explain the coverage.

Separate a missing match from other problems

  • An unknown code can use the supplied missing-result message.
  • A valid code with an empty manager cell is a matched record with missing information.
  • A return cell containing an existing error can propagate that error.
  • Unequal search and return dimensions can produce a structural error.
  • A deleted referenced field can break the formula.
  • A misspelled function name or unsupported Excel edition is not a missing store.

The missing-result argument is therefore more specific than wrapping everything in IFERROR. It communicates one expected situation while allowing unrelated problems to remain visible. Even so, you still need to inspect data quality and source errors. Friendly output is a presentation choice, not proof that the lookup relationship is trustworthy.

If the source genuinely records a numeric zero, preserve it. If the source has no recorded value, keep that condition distinguishable. A simple lookup to an empty source cell can display zero, so checking whether the code exists and checking whether its required attribute is populated are separate tasks.

5. Lab 1 — enrich five store requests

Build a report that preserves every request

Keep H2 and H3 as entered. Add BLK-NSK-01 in H4, AMN-SLP-01 in H5 and BLK-SBN-01 in H6. Put City in I1, Area in J1, Manager in K1 and Opened in L1. Enter the following formulas in I2, J2, K2 and L2 respectively, then fill each through row 6.

=XLOOKUP($H2,$A$2:$A$8,$C$2:$C$8,"Not in master")
=XLOOKUP($H2,$A$2:$A$8,$D$2:$D$8,"Not in master")
=XLOOKUP($H2,$A$2:$A$8,$E$2:$E$8,"Not in master")
=XLOOKUP($H2,$A$2:$A$8,$F$2:$F$8,"Not in master")

The dollar sign in $H2 keeps the input column fixed while allowing the request row to change. Each output reads the same requested code but retrieves a different attribute. This arrangement makes it easy to compare the enriched request with a complete directory row.

Expected store report before resolving the missing code
Requested IDCityAreaManagerOpened
BLK-PUN-02PuneHinjewadiPriyanka Shinde2023
BLK-PUN-07Not in masterNot in masterNot in masterNot in master
BLK-NSK-01NashikCollege RoadZoya2023
AMN-SLP-01SolapurMurarji PethSalman2025
BLK-SBN-01Sambhaji NagarCIDCORaja2025
  1. Confirm that all five input requests remain present in H2:H6.
  2. Compare the four resolved rows with their complete source records.
  3. Confirm that the BLK-PUN-07 row stays visible as unresolved.
  4. Count five requests, four resolved codes and one unresolved code.
  5. Temporarily change H4 to AMN-NGP-01.
  6. Predict Nagpur, Dharampeth, Amir and 2024 before checking the outputs.
  7. Confirm that only that request row's returned attributes change.
  8. Restore BLK-NSK-01 and confirm the original results return.

Check a key directly before resolving it

For these simple literal store IDs, =COUNTIF($A$2:$A$8,H3) returns zero for the missing request. A result of one indicates one source occurrence; more than one indicates repeated keys requiring review. COUNTIF has wildcard rules, so this convenient check needs adaptation if actual identifiers contain literal wildcard characters.

Investigate an unresolved request through the source process: compare the original code, check whether spaces or punctuation were introduced, and ask whether an approved new store record exists. Do not invent a manager or silently add a directory row merely to remove a message. The exercise below provides an explicit fictional approval so you can practise the update safely.

6. Add an approved teaching record and update the ranges

Use a clearly stated source change

For this experiment only, assume the directory owner has confirmed the following new fictional record: BLK-PUN-07, Blinkit, Pune, Baner, Riya, opened in 2026. Add these six values in Stores!A9:F9. This is supplied exercise data, not a fact inferred from the unresolved code.

The original formulas still refer to rows 2 through 8, so they cannot see row 9. Extend both the search range and each return range through row 9. The manager formula becomes the following; apply the same end-row change to the city, area and opening-year formulas.

=XLOOKUP($H2,$A$2:$A$9,$E$2:$E$9,"Not in master")

After filling the revised formulas through row 6, the BLK-PUN-07 request should show Pune, Baner, Riya and 2026. The directory now has eight records, while the request report still has five rows. All five requested codes resolve. Adding a source record does not create an extra request row.

  • Before the change: seven directory rows and five requests.
  • Before the change: four resolved requests and one unresolved request.
  • After the approved addition: eight directory rows and five requests.
  • After extending the formulas: five resolved requests and no unresolved request.
  • The original four resolved request rows keep their previous attributes.
  • A different absent code such as BLK-PUN-09 remains unresolved.

Use an Excel Table for a maintained directory

On a separate practice copy, select the source directory including its headers and convert it to an Excel Table. Confirm My table has headers and name the Table tblStores. Keep the H:L request area outside the selected source. Use the exact source header spelling in the structured-reference formula.

=XLOOKUP(H2,tblStores[Store ID],tblStores[City],"Not in master")

A structured reference follows the Table's actual data membership. When a new row is included in that Table, the column references include it without manually changing an ending row number. Verify membership after typing, pasting or importing; a row placed nearby but outside the Table is not automatically part of its source in every workflow.

This formula returns one city for one selected code, so it is a scalar lookup. Later lessons also use XLOOKUP to return several fields as a spilled array. Keep those multi-cell outputs outside Excel Tables and leave the spill area clear. Learning the single-result case first makes the later array behaviour easier to understand.

7. Follow the decision from request to result

Resolve a store request

  1. Read the requested identifier

    The request contains BLK-PUN-07. Keep that original code available so an unresolved case can be investigated.

  2. Search the stated directory

    The original seven-row directory contains no matching code. The formula cannot obtain a manager from a record that is not present.

  3. Show the unresolved condition

    The optional fallback displays Not in master. It does not invent a city, assign a manager or change the directory.

  4. Use a confirmed source update

    In the supplied extension exercise, the approved eighth row records manager Riya. After both source ranges include row nine, the request resolves to that recorded manager.

Use the same reasoning for a real system export. A failed match may come from a new source record, a typing error, an outdated extract or a code from a different system. The formula shows a symptom; the investigation establishes the cause. Keep a short review note rather than editing identifiers until something happens to match.

8. Return a field to the left

The result does not need to sit after the key

Suppose the request gives a manager name and asks for the store code. In the original directory, Rani appears once. Search the manager list in column E and return from the code list in column A. The result is BLK-KOP-01 even though the return field lies to the left of the search field.

=XLOOKUP("Rani",$E$2:$E$8,$A$2:$A$8,"Manager not found")

Try the same pattern with Dharampeth in the Area field. The formula below returns AMN-NGP-01. Reading the arguments as known field and needed field is clearer than trying to remember which direction the result moves across the worksheet.

=XLOOKUP("Dharampeth",$D$2:$D$8,$A$2:$A$8,"Area not found")

These examples work as single-result lookups because the selected manager and area appear once in this sample. In a larger directory, a manager may oversee several stores and several stores may share an area. Returning the first code would then answer only one of the matching records. Use a more specific key or a multiple-record approach when that is the actual question.

  • State which field the request provides.
  • Choose the corresponding search range.
  • Choose the required result range.
  • Confirm the two ranges describe the same records in the same order.
  • Check whether the selected search value is unique in the source.
  • Use an explicit review path when one input can mean several records.

Direction is flexible; record alignment is not

Searching left or right changes which columns are referenced, but it does not change the requirement for aligned records. On a scratch copy, shift the manager return range down to E3:E9 while retaining the original keys A2:A8. A search for BLK-PUN-02 now selects the second item of the shifted manager range, Zoya, instead of Priyanka Shinde.

Both ranges still contain seven cells, so their equal size does not expose the error. Compare the first and last source records and use known answers. A plausible name can be more dangerous than an obvious error because it may look reasonable enough to pass an informal glance.

9. Lab 2 — build a staff equipment lookup

Set up a second complete source

Create a worksheet called Staff and enter the following table in A1:D5. These are invented employees and equipment assignments. They preserve the original staff Task Hub fixture. An employee identifier is the key for this current assignment list; a person's name and laptop brand are attributes that may not be unique.

Staff!A1:D5 — fictional employee directory
Emp IDNameTeamLaptop
E-1001Priyanka ShindeCloudDell
E-1002AmirSecurityLenovo
E-1003RavinaDataHP
E-1004ShahrukhCloudApple

On Staff, put Requested ID in G1, Name in H1, Team in I1 and Laptop in J1. Enter E-1003, E-1002, E-1009, E-1004 and E-1001 in G2:G6 in that order. The request E-1009 is deliberately absent. Keep it in the report so the exercise measures unresolved coverage instead of silently dropping a row.

=XLOOKUP($G2,$A$2:$A$5,$B$2:$B$5,"Not found")
=XLOOKUP($G2,$A$2:$A$5,$C$2:$C$5,"Not found")
=XLOOKUP($G2,$A$2:$A$5,$D$2:$D$5,"Not found")

Enter these formulas in H2, I2 and J2 respectively, then fill each through row 6. The same input row supplies all three lookups. Confirm the following results by reading the staff source, not by comparing one lookup formula with another copy of the same formula.

Expected staff request results
Requested IDNameTeamLaptop
E-1003RavinaDataHP
E-1002AmirSecurityLenovo
E-1009Not foundNot foundNot found
E-1004ShahrukhCloudApple
E-1001Priyanka ShindeCloudDell
  1. Confirm four original employee records and five request rows.
  2. Check E-1003 resolves to the Data team.
  3. Check E-1002 resolves to the Lenovo laptop.
  4. Check E-1009 remains visible with the Not found message.
  5. Search the Name column for Shahrukh and return the Emp ID; expect E-1004.
  6. Temporarily change Amir's source laptop from Lenovo to Dell.
  7. Confirm his request changes to Dell while his name and team remain Amir and Security.
  8. Confirm the original four-person source now contains two Dell assignments and no Lenovo assignment.
  9. Restore Amir's laptop to Lenovo before the next experiment.

Follow an explicit approved employee addition

For a separate teaching extension, the source owner confirms E-1009, Meera, Data, Dell. Add that complete record in Staff!A6:D6 and extend both the search and return ranges through row 6. The E-1009 request should resolve to Meera, Data and Dell. The five-request report now has five resolved IDs.

The expanded employee directory contains two Cloud employees, two Data employees and one Security employee. Dell appears twice; Lenovo, HP and Apple each appear once. These source counts offer an independent way to check the addition. They do not imply five separate physical laptop assets, because the source stores brands rather than unique device serial numbers.

A real asset-management process may allow several devices per employee or several assignment periods per device. This teaching directory describes one current brand assignment per employee only. If the source changes to an assignment history, employee ID alone may stop identifying one row. Clarify the record meaning before reusing this formula in a different data structure.

10. Test duplicates, blanks and text types

A first result does not prove uniqueness

On a disposable copy of the original four-person Staff source, add a second row for E-1002 with the deliberately conflicting details Arjun, Finance, HP. Extend the search and return ranges so both occurrences are included. A normal first-to-last XLOOKUP still returns the first matching employee record: Amir, Security and Lenovo.

The formula has not decided which record is authoritative. It has followed its search order. A duplicate-key check now finds two occurrences of E-1002. Resolve the source conflict through the relevant business process instead of assuming that the first row, last row or most recently pasted row is correct.

Reverse search is useful in some deliberately ordered histories, but the last occurrence is not automatically the latest event. A date, a sequence and a clear policy are needed to establish that meaning. The next lesson explains search modes; this basic lesson keeps the source unique so one requested ID has one intended answer.

Recognise missing fields inside a matched record

Return to the clean four-person source. If Amir's Laptop cell is emptied, E-1002 still exists. The missing-result message does not apply because a matching key was found. A plain lookup may show zero for that empty source cell, even though zero is not a laptop brand. The correct diagnosis is missing equipment information in a matched employee record.

Review required source attributes separately from key existence. For this small list, inspect the four Laptop cells and ensure each contains the intended brand text. In a larger workflow, add explicit completeness and type checks in the cleaning stage. Do not replace missing attributes with invented values merely to keep the report looking complete.

  • A truly empty cell differs from a zero-length text result created by a formula.
  • Numeric zero differs from a missing measurement.
  • The text Not found is a report message, not an employee name.
  • Text 1001 and numeric 1001 can behave differently in exact matching.
  • Leading and trailing spaces can prevent a label from matching as expected.
  • Ordinary case-insensitive matching does not establish that differently cased IDs are interchangeable in every source system.

Clean according to meaning rather than appearance

A numeric-looking identifier may need to stay text to preserve leading zeroes. Do not multiply all codes by one as a universal fix. A currency amount stored as text may need conversion, but a product code or employee ID has a different purpose. Identify the field's meaning and maintain consistent types on both sides of the lookup.

For suspicious spaces, compare the original values and their lengths before cleaning. Ordinary TRIM does not remove every possible Unicode separator. Keep raw data available and apply a documented normalisation rule. Otherwise, two genuinely different source identifiers may be merged accidentally while trying to repair a match.

Separate an unknown employee ID, a known ID with an empty laptop field, and a known ID with a valid recorded laptop; each needs a different interpretation.
Key coverage and attribute completeness are different checks. A single friendly fallback cannot describe every condition.

11. Diagnose the actual failure

Use a short sequence of checks

When a lookup fails, begin with the request you intended to answer. Read the exact input cell and inspect the source field. Then check function availability, range dimensions, record alignment and the source content. This order prevents random edits that make a formula return something while changing the meaning of the report.

Common symptoms and focused investigations
SymptomLikely investigationUseful control
Not in masterRequested code absent from included sourceFind the exact code and inspect source range membership
Wrong plausible managerMisaligned result range or duplicate keyCompare full source row and first matching occurrence
#VALUE!Incompatible lookup and return dimensionsCheck both first and last included records
#REF!Broken reference or unsupported external situationInspect referenced fields and workbook links
#NAME?Function/name typo or unsupported functionCheck formula spelling and Excel edition
Unexpected zeroMatched source cell may be emptyCheck key existence and required attribute separately

Keep formula and data fixes distinct

If a return range starts one row too low, repair the formula. If two source records share an identifier unexpectedly, investigate the data. If the recipient uses an edition without XLOOKUP, provide a compatible implementation. These are different causes with different remedies; wrapping all three in IFERROR does not solve them.

Test the first and last source keys, one middle key and one missing key. Also test a controlled source change and confirm that only the corresponding output changes. If the report includes a new source row, check that the formula actually includes that row. A previous successful result does not prove that newly appended records are covered.

Preserve a useful review trail

In a small operational report, add a simple review area listing the original unresolved ID, the observed issue and the confirmed action. Keep this separate from the source directory so a reviewer can see what changed. Avoid placing unnecessary personal information in shared teaching or troubleshooting examples.

When the report is exported as values, its lookups no longer recalculate. Label such an export with the source date or snapshot context. A live workbook and a static export can show the same numbers today but have different update behaviour tomorrow. Readers need to know which kind of result they received.

12. Choose a formula your audience can use

Confirm function availability before sharing

XLOOKUP is available in Microsoft 365 and newer perpetual Excel editions such as Excel 2021 and Excel 2024. It is not available in Excel 2016 or 2019. Platform and update differences still matter, so check the actual recipient environment rather than relying only on the file extension.

For an older compatible workflow, the equivalent basic manager lookup can use INDEX with exact MATCH. The formula below searches the same source keys and retrieves from the same manager range. It is a useful bridge because it exposes the position-based reasoning already studied in this chapter.

=INDEX($E$2:$E$8,MATCH(H2,$A$2:$A$8,0))

Handle expected missing keys deliberately in the alternate implementation and retain diagnostics for other faults. Do not promise that replacing one function makes an entire modern workbook compatible; other formulas, dynamic arrays, charts or features may still depend on a newer edition.

Keep this basic lesson focused

The full XLOOKUP syntax also offers matching and search options. You can return several fields, search from the last record or apply approximate matching under stated conditions. Those options deserve their own checks and examples. Do not change modes merely to make an unresolved identifier produce an answer.

For the present exercises, use exact matching and a unique current directory. That limited contract is easy to explain and test. Once you can describe its behaviour for known, unknown, duplicate and incomplete records, you are ready to study the additional modes without confusing search mechanics with business policy.

13. Test the key decisions

1. Does XLOOKUP need FALSE for an exact match?

No. Exact matching is the default. The fourth argument is the missing-result value, so putting FALSE there supplies a logical fallback rather than setting an exact-match option. Read each function's argument roles before translating a formula from VLOOKUP.

2. The missing store was added in row nine. Why is the message still present?

The formula may still search only rows two through eight. Extend both the key and result ranges, or use structured references to a Table that actually includes the new row. A nearby row is not necessarily part of the referenced source.

3. Does Not in master mean the requested store is definitely invalid?

No. It means the requested value was not found in the specified source. The code might be mistyped, newly approved, excluded from the extract or from a different system. Investigate the original request and maintained source before changing either.

4. Both ranges have seven cells. Can the result still be wrong?

Yes. Equal length does not guarantee record alignment. Shifting only the return range by one row can return a plausible attribute from a different store. Check the first and last records and compare several results with complete source rows.

5. E-1002 exists but its laptop is empty. Should Not found appear?

The key was found, so the missing-key fallback is not the correct condition. Inspect the matched record's attribute completeness separately. A displayed zero from an empty source cell is not evidence of a valid laptop assignment.

6. How many original staff requests resolve before adding Meera?

There are five requests and four resolve. E-1009 remains unresolved. After the supplied approved addition and correct range extension, all five resolve. Keep both the request count and coverage count visible so missing cases cannot disappear silently.

14. Practise a clear interview explanation

Explain XLOOKUP to someone who has never used it.

I provide a value to find, a list to search and a corresponding list of results. For example, I search a store-code list and return the manager from the same record. I check that the key identifies one intended row and that the two lists are aligned.

How does if_not_found differ from broad error handling?

It supplies an output when the lookup finds no matching item. It does not repair unequal ranges, deleted references or an error in a matched source value. I prefer to keep those separate faults visible while showing a clear message for expected unresolved requests.

Can XLOOKUP return a value on the left?

Yes. The lookup and return ranges are specified separately. I can search the manager field and return a store code to its left, provided the selected manager identifies one intended record. Direction is flexible, while alignment and uniqueness still need checking.

How would you maintain a growing source directory?

I would use a well-defined Table where suitable, verify that newly added records are actual Table members, and reference the relevant columns. I would also check duplicate keys and required attributes. An expanding range solves coverage maintenance, not the quality of the records inside it.

What would you test before handing over a lookup report?

I would test known first, middle and last keys, an unknown key, a controlled source edit and a new source row. I would inspect duplicate and empty-attribute behaviour, reconcile request coverage and confirm that the recipient's Excel edition supports the functions used.

15. Keep these six reminders

Input

Keep the original requested identifier. A successful-looking replacement is not a substitute for understanding the source code.

Source

Know what one directory row represents. A current employee list and an equipment-assignment history require different keys.

Alignment

Search and result fields must describe the same records in the same order. Matching cell counts alone are insufficient.

Fallback

A missing-result message describes an absent match. It does not establish zero activity or repair every formula error.

Coverage

Count requested, resolved and unresolved records. A partial numeric total can look convincing while omitting unresolved inputs.

Compatibility

Check the workbook recipient's Excel edition. Keep a tested alternative when XLOOKUP is unavailable.

Finish with a prediction: change one known store request, predict all four attributes, and verify them against the source. Then restore the original fixture and practise the staff questions in the Excel Task Hub. Continue to XLOOKUP match modes, search modes and multiple returns once you can explain every basic outcome.

Reference checks