4.10 Common Lookup Errors and Fixes
A lookup that displays an error is giving you evidence. A lookup that displays a believable but wrong city, amount or manager can be harder to detect. The practical skill is to trace the request, the searched records and the returned field until you can explain where the result came from. This lesson gives you small failures to reproduce, diagnose and repair.
We use a fictional store directory with familiar app names, a fictional registration table, and a few deliberately damaged teaching records. None of these are real customer, employee or benefit records. Keep an untouched copy of each source and make one change at a time. A successful repair should restore the intended answer while leaving unrelated records intact.
1. Start with the question and the source record
Write the expected meaning before inspecting the syntax
Suppose an order contains a store identifier and the report should return its city. Write that requirement in plain language: find this exact store ID in the current store directory and return that record's City field. This short statement identifies the request, source, match rule and returned field. It also distinguishes the task from finding a manager, summing orders or listing every store in a city.
Next, locate a known source record manually in the small teaching table. Compare the requested ID with the source ID, then read the city from the same row. This gives you an independent expected result. Do not decide that a formula is correct merely because it returns a city name; it must return the city associated with the requested record.
- State the input value and its intended type.
- Identify the exact source field being searched.
- Confirm that the source range includes the expected record.
- Identify the returned field and check record alignment.
- Check the matching rule and duplicate policy.
- Repair one demonstrated cause, then retest present and missing requests.
Separate a symptom from its possible causes
#N/A often means a lookup could not locate a matching value, but the reason may be a genuinely absent record, incompatible types, hidden characters or the wrong search range. A matched return cell can also contain an error of its own. An error label narrows the investigation; it does not identify one universal cause or prescribe a single automatic fix.
Likewise, a wrong answer without an error may come from a shifted return range, an approximate rule used for an identifier, duplicate source keys or a hard-coded column index. Check the record that was actually selected. A technically successful formula can still violate the report's intended meaning.
2. Prepare a complete store troubleshooting lab
Enter the seven-record directory
Create a worksheet named Stores. Enter this table in A1:F8. It preserves the original Task Hub's fictional store data, including the manager names and opening years. The app labels make the delivery-directory context familiar; they do not describe actual locations or staffing arrangements of those businesses.
| Store ID | Platform | City | Area | City Manager | Opened year |
|---|---|---|---|---|---|
| BLK-PUN-01 | Blinkit | Pune | Kothrud | Abhishek Shinde | 2022 |
| BLK-PUN-02 | Blinkit | Pune | Hinjewadi | Priyanka Shinde | 2023 |
| BLK-NSK-01 | Blinkit | Nashik | College Road | Zoya | 2023 |
| AMN-NGP-01 | Amazon Now | Nagpur | Dharampeth | Amir | 2024 |
| BLK-KOP-01 | Blinkit | Kolhapur | Rajarampuri | Rani | 2024 |
| AMN-SLP-01 | Amazon Now | Solapur | Murarji Peth | Salman | 2025 |
| BLK-SBN-01 | Blinkit | Sambhaji Nagar | CIDCO | Raja | 2025 |
Put Store to find in H1. In H2 enter ="BLK-NSK-01"&" " to deliberately create the Nashik identifier with one trailing ordinary space. In H3 type BLK-PUN-09, which is genuinely absent. Put City result in I1. The two requests may both fail an uncorrected exact lookup, but they fail for different reasons.
The directory has seven records and seven unique Store IDs. BLK-NSK-01 belongs to Nashik and manager Zoya. BLK-KOP-01 belongs to Kolhapur and manager Rani. BLK-PUN-02 belongs to Pune and manager Priyanka Shinde. Keep these known pairs beside your test sheet so a plausible wrong result is easier to notice.
Reproduce the first failure
In I2 enter the following expression. It requests an exact match by default, but H2 contains an additional character not present in A4. The lookup does not find that exact ID and returns #N/A. Leave the error visible while collecting the next checks.
=XLOOKUP(H2,$A$2:$A$8,$C$2:$C$8)
In separate spare cells, calculate LEN(H2), LEN(A4), H2=A4 and ISNUMBER(H2). Expect lengths eleven and ten, an unequal comparison, and FALSE for ISNUMBER because this identifier is text. The type being text is correct for a code containing letters and hyphens; it is not itself the defect.
3. Repair the observed extra space
Use TRIM for ordinary spacing problems
Replace the lookup in I2 with the next formula. TRIM removes the leading or trailing ordinary spaces in the requested ID. The cleaned request now matches A4, so the city result is Nashik. LEN(TRIM(H2)) returns ten, which agrees with the clean source ID.
=XLOOKUP(TRIM(H2),$A$2:$A$8,$C$2:$C$8)
TRIM also reduces repeated ordinary spaces inside text to single spaces. That may be appropriate for a human-readable name, but it can change a code whose internal spacing is meaningful. Choose a normalisation rule that belongs to the identifier system instead of assuming that every visible difference is accidental dirt.
Cleaning only the request is sufficient in this particular lab because the source IDs are clean. If the source contains the trailing space instead, trimming H2 alone does not repair that source value. A helper column containing cleaned source keys can make the transformation visible and reusable, especially when many report rows use the same directory.
Do not infer identity from length alone
Two strings can have the same length and still differ. BLK-PUN-01 and BLK-PUN-02 both contain ten characters but identify different stores. Equal lengths only rule out some kinds of extra-character differences. Compare the actual characters and the intended identity, not just the number of characters.
For a case-sensitive diagnostic, EXACT can distinguish different letter cases. Ordinary lookup matching is generally not a case-sensitive identity test. If a source system treats upper and lower case as different IDs, establish that requirement explicitly and design an appropriate matching method. Do not assume that changing letter case always preserves identity in every external system.
4. Handle a nonbreaking space without merging words
Create a reproducible copied-text example
Create a separate worksheet named Products. Put Description, Unit and Price in A1:C1. Enter Gul Cubes 5kg, Pack and 420 in A2:C2. In E1 put Requested product, and in E2 enter ="Gul Cubes 5kg"&UNICHAR(160). The final character is a nonbreaking space, a character that can arrive with text copied from a webpage.
The clean description has thirteen characters; the constructed request has fourteen. LEN(TRIM(E2)) remains fourteen because TRIM is designed around the ordinary space character and does not by itself remove this nonbreaking space. The formula =UNICODE(RIGHT(E2,1)) returns 160, identifying the final character used in this controlled example.
Replace the observed character, then trim
=VLOOKUP(TRIM(SUBSTITUTE(E2,UNICHAR(160)," ")),$A$2:$C$2,3,FALSE)
SUBSTITUTE replaces the nonbreaking space with an ordinary space. TRIM then removes the trailing ordinary space, and VLOOKUP finds the clean description and returns 420. Using UNICHAR and UNICODE makes the intended Unicode character explicit. These helpers are available in modern supported Excel versions used for this course.
Replacing an unwanted separator with a normal space is often safer than deleting it everywhere. If a nonbreaking space appears between Gul and Cubes, deleting it would join the words as GulCubes. The desired cleaned description contains a separator. Decide whether a character is an accidental edge character, a word separator or meaningful content before designing the transformation.
- Use LEN to compare character counts.
- Inspect a known suspect character with UNICODE when appropriate.
- Replace only the character that your diagnosis supports.
- Preserve intended word boundaries during cleanup.
- Review cleaned keys for collisions before using them as unique identifiers.
- Keep the original raw field available for tracing the change.
CLEAN removes a defined set of nonprinting characters; it is not a universal remover of every invisible Unicode character. A blanket TRIM/CLEAN formula can therefore leave some problems unresolved. Conversely, aggressive cleanup can collapse two distinct source values into one key. Treat normalisation as a documented transformation, not a magic repair button.
5. Distinguish numeric values from text identifiers
Create a small numeric-key comparison
On a worksheet named CustomerMaster, put Customer Code and Customer in A1:B1. Enter numeric 1001 and Kulkarni Sweets in A2:B2, then numeric 1002 and Lotus Cafe in A3:B3. In D1 type Requested code. In D2 enter ="1001" so the displayed digits are stored as text.
ISNUMBER(D2) returns FALSE, while ISNUMBER(A2) returns TRUE. The characters appear similar, but the types do not follow the same contract. If these customer codes are intentionally numeric and leading zeros have no meaning, converting the request with VALUE allows the lookup to match numeric 1001 and return Kulkarni Sweets.
=XLOOKUP(VALUE(D2),$A$2:$A$3,$B$2:$B$3)
This repair is appropriate because the exercise explicitly defines numeric customer codes. It is not a general instruction to convert every identifier to a number. An ID can contain only digits and still be text by design, particularly when leading zeros, fixed widths or long digit sequences are significant.
Preserve leading zeros and long identifiers
On a separate scratch list, compare text IDs 00123 and 123. If the source system treats them as distinct, converting both with VALUE collapses them to the same number 123. That destroys information needed to identify the records. Store and match them as text under the approved format instead of normalising them into a numeric collision.
Excel numeric values have limited precision for long digit sequences. Long identifiers should usually be imported and stored as text rather than converted to numbers and later padded back. Once significant digits have been lost during numeric conversion, changing the display format cannot reconstruct the original identifier from the damaged value alone.
Similarly, applying a Text or Number format to an existing cell does not always transform its stored value into the intended type. Use an explicit, reviewed conversion when a conversion is justified, then test the actual value with suitable functions. Alignment and warning triangles can provide clues, but custom formatting and user settings make them insufficient as the only type test.
6. Keep genuinely missing records visible
Use the absent store as a separate control
Return to Stores!H3, which contains BLK-PUN-09. That clean-looking ID is not in the seven-record directory. Trimming it does not create a source record. Use a missing-result message when the request is legitimately absent, while keeping the source and input available for review.
=IFNA(VLOOKUP(H3,$A$2:$F$8,3,FALSE),"Not in master")
The result is Not in master. That message says only that this lookup did not find the ID in the selected source. It does not establish that the store does not exist anywhere, that the request is fraudulent or that the source is complete. A directory can be outdated or filtered to a limited scope.
Choose error handling after the formula works
XLOOKUP's if_not_found argument provides a response when a suitable match is absent. IFNA replaces #N/A from the expression it wraps. IFERROR replaces several error types. They have different scopes, and a wrapper can also conceal an error returned from a matched source cell. A displayed fallback does not always identify which internal step caused the problem.
For a report that needs to distinguish an absent ID from a matched record containing a bad amount, expose the match position and returned value separately while diagnosing. Inspect the source cell on the selected row. Do not label every #N/A as “customer missing” if the same error can originate in the matched customer's recorded data.
7. Repair wrong return columns and range sizes
Count the columns inside the supplied table
On Stores, try the following deliberately broken formula in a spare cell. The table A2:E8 has five columns, but the requested return index is six. VLOOKUP cannot return a sixth column from that supplied table, so this is a reproducible #REF! example.
=VLOOKUP("BLK-KOP-01",$A$2:$E$8,6,FALSE)
The requested field is City Manager, which is the fifth column of A:E. Change the return index to five and expect Rani. Expanding the table to A:F while leaving the index at six would return the opening year 2024, not the manager. That would remove the range-width error while changing the answer to the wrong field.
=VLOOKUP("BLK-KOP-01",$A$2:$E$8,5,FALSE)
This example shows why “make the error disappear” is an incomplete repair objective. A correct result must satisfy the original question. Check both the table width and the semantic identity of the returned column. A number such as 2024 can look valid while belonging to a completely different field.
Check XLOOKUP's record dimensions and alignment
A vertical lookup list with seven records should align with seven return records. Supplying A2:A8 as the lookup list but C2:C7 as the city list creates incompatible record dimensions. Correct the intended source ranges rather than hiding the resulting error. The return array can contain several fields, but its record dimension must correspond to the searched records.
Equal lengths still do not guarantee alignment. A2:A8 paired with C3:C9 contains seven cells on each side, yet the city values are shifted down one row. BLK-PUN-02 at the second lookup position would read the second cell of C3:C9, which is Nashik, instead of Pune. Trace a known record through both lists to catch this believable wrong answer.
- Identify the returned field by its heading.
- Count a VLOOKUP column index from the left edge of its supplied table.
- Check that lookup and return lists cover the same record rows.
- Test a record whose adjacent result differs from its own.
- Prefer explicit field references when the source structure changes frequently.
- Retest after inserting, deleting or moving source columns.
8. Fix a lookup that breaks after copying
Observe the moving source range
Create a worksheet named Orders. Put Store ID in G1, and enter BLK-PUN-01 in G2:G5. In P1 put City. Enter the next formula in P2 without dollar signs around the source range, then fill it down through P5.
=VLOOKUP(G2,Stores!A2:F8,3,FALSE)
In P2, the source includes Stores row two, where BLK-PUN-01 appears, so the result is Pune. Three rows lower, the copied formula refers to Stores!A5:F11. The original row-two store is outside that range, so the same requested ID is no longer found. The request is unchanged; the source being searched has drifted.
Fix the reference that should stay fixed
=VLOOKUP(G2,Stores!$A$2:$F$8,3,FALSE)
Replace P2 with this version and fill down again. The source boundaries remain A2:F8 while the request moves from G2 to G3, G4 and G5. All four outputs should now show Pune. This test checks the first and later copied rows rather than assuming that a successful first result proves the whole column is correct.
An Excel Table can express the intended source fields more clearly and include new records when they belong to the Table. However, fixed references and Table membership solve different problems. Dollar signs prevent copy-relative movement; they do not automatically expand a fixed range to include a new record added in row nine.
To test source growth separately, append BLK-PUN-09 as a new approved fictional record on a copy of the directory. A fixed lookup ending at row eight still cannot see it. Extend the appropriate lookup and return ranges together, or confirm that a structured-reference source includes the new row. Never fabricate a record merely to make a real missing-ID report look complete.
9. Check matching rules and duplicate identities
Use exact matching for this store directory
The seven Store IDs are identifiers, not numeric bands. For BLK-PUN-02, use VLOOKUP with FALSE and expect Pune. Omitting the final argument makes VLOOKUP use its approximate default, which is unsuitable for this unsorted identifier task. Do not accept a nearby-looking code as the requested store.
=VLOOKUP("BLK-PUN-02",$A$2:$F$8,3,FALSE)
Approximate matching is appropriate for a different kind of source. On a separate Slabs worksheet, a fictional packing-rate policy might contain minimum box counts zero, one hundred and five hundred, with rates forty, thirty-five and thirty respectively. For two hundred fifty boxes, the correct lower-bound rate is thirty-five.
If those policy rows are entered in the order five hundred, zero, one hundred, approximate VLOOKUP does not have the ascending source order it requires. Sort complete boundary-and-rate records into ascending order before using that method. The exact accidental result on an unsorted table is not a dependable contract; teach the violated prerequisite rather than memorising one possible wrong output.
Decide whether repeated keys are valid
In a copy of the store directory, append another BLK-PUN-02 record with a different manager. A first-match lookup can still return Priyanka Shinde from the original row. That does not establish which record is current or approved. A source intended to have one row per store now has a conflict that needs a documented resolution.
In an order-history table, repeated store IDs may be entirely valid because one store has many orders. Deleting repeated IDs from that event table would remove legitimate records. Decide what one source row represents before using Remove Duplicates. Unique master records and repeated transaction records serve different purposes.
If the question asks for every matching order, use an all-matches method such as FILTER in a supported Excel version. If it asks for a total, use an appropriate aggregation. If it asks for the latest event, define a chronological ordering and tie policy. A single first or last lookup result cannot automatically answer all three questions.
10. Lab two — repair a fictional registration lookup
Keep the original practice records visible
Create a worksheet named Scheme. Enter the following table in A1:D4. These invented identifiers and amounts preserve the original practice exercise. They are not a real scheme's rules, eligibility decisions or payment records. In this lesson, the table is simply a small registration directory used to practise text cleanup and field selection.
| Beneficiary ID | Name | District | Amount |
|---|---|---|---|
| PMK-001 | Abhishek Shinde | Pune | 6000 |
| PMK-002 | Shahrukh | Solapur | 6000 |
| PMK-003 | Rani | Nashik | 4000 |
Put To find in F1. Enter ="PMK-003"&" " in F2 and PMK-010 in F3. The first request has a deliberate trailing ordinary space. The second is an absent identifier. The clean IDs have seven characters; LEN(F2) returns eight. The three source amounts total 16000.
Find the name after a measured repair
In G1 put Name result. In G2 enter the following formula. TRIM removes the known trailing ordinary space, and the cleaned request matches PMK-003, returning Rani. Check LEN(TRIM(F2)) equals seven and compare the cleaned request with A4.
=XLOOKUP(TRIM(F2),$A$2:$A$4,$B$2:$B$4)
In G3, the next formula returns Not registered for PMK-010 because that ID is absent from the selected three-record source. Read the label as an exercise-specific missing-source status, not as evidence about a person's legal eligibility or registration in any real programme.
=IFNA(VLOOKUP(F3,$A$2:$D$4,4,FALSE),"Not registered")
Repair the requested district column
The deliberately broken expression below asks for column four of a three-column table. It cannot return that column from A:C. The requested output is District, which is the third column, so the repair changes the index to three and returns Solapur for PMK-002.
=VLOOKUP("PMK-002",$A$2:$C$4,4,FALSE)
=VLOOKUP("PMK-002",$A$2:$C$4,3,FALSE)
Expanding the table to A:D while keeping index four would return the amount 6000 instead. That may be a useful amount lookup, but it would not repair a request for the district. The same principle applied to the store-manager task: confirm the returned field, not merely the absence of an error.
Understand the broad fallback used by the original task
=IFERROR(VLOOKUP(TRIM(F2),$A$2:$D$4,4,FALSE),0)
This original exercise returns 4000 for the cleaned PMK-003 request. It demonstrates IFERROR's broad fallback behaviour, but the label “safe amount” should not be interpreted as a guarantee of reliable reporting. If the formula had a structural error, the same wrapper could display zero and conceal that defect.
For a diagnostic extension, calculate the lookup without IFERROR in a separate cell. Confirm 4000 for the present request and inspect the actual error for an absent request. Keep a separate review status in a reporting model if zero is a legitimate recorded amount. The amount field and the validation status should not be forced to share one ambiguous zero.
11. Recognise other symptoms without overgeneralising
Check names, versions and spill space
#NAME? can arise from a misspelled function, an unrecognised named range, missing quotation marks around text, or a function unavailable in the calculating Excel version. XLOOKUP is not available in Excel 2016 or 2019, but not every #NAME? is a version problem. Inspect the actual formula and environment before rewriting it.
A multi-field XLOOKUP can need several output cells. If an occupied cell blocks that intended result, Excel can report #SPILL!. Preserve the obstructing content by moving it appropriately, then leave the required output area clear. Enter a spilling formula in a normal worksheet range outside an Excel Table; a Table can still provide the source records.
A matched source cell that is blank can be displayed as zero by a lookup in common arrangements. That zero is different from a deliberately recorded numeric zero and different from an absent key. Inspect the matched source record and design a clear output policy for missing attributes. Do not use the presence of a number on screen as proof that the source attribute was populated.
Separate calculation errors from display and freshness issues
A column showing hashes may be too narrow to display a numeric or date value, rather than containing a failed lookup. A value that appears rounded may retain more precision internally. Inspect the formula bar and source values before changing matching logic to solve a display issue.
If a correct formula appears not to update after a controlled source change, inspect the workbook's calculation setting and recalculate as appropriate. If the source was imported, confirm that the import itself has refreshed and includes the expected records. A formula cannot return a new source row that has not yet entered the workbook.
For a slow workbook, reduce unnecessary repeated work only after measuring where the delay occurs. Reusing a checked match position, using bounded source ranges or Tables, and preparing data once can help in suitable models. Full-column references are not automatically wrong in every context, and changing every formula without a measured reason can introduce new errors.
12. Walk through one diagnosis
Explain the Nashik lookup repair
Identify the expected source record
The clean ID BLK-NSK-01 is in Stores row four and its City is Nashik. The requested output is the City field.
Measure the mismatch
The input has eleven characters while the source ID has ten. The lab deliberately added one ordinary trailing space.
Apply the smallest justified repair
TRIM removes the known edge space from the input. The source directory remains unchanged because its IDs were already clean.
Retest present and absent requests
The repaired Nashik request returns Nashik. BLK-PUN-09 remains absent, so it should still show the chosen missing-source status.
13. Build a five-failure repair notebook
Record evidence for each controlled mistake
Create a small review table with columns for Request, Expected field, Observed symptom, Diagnosed cause, Repair and Retest result. Use the five failures below on separate copies or clearly labelled scratch cells. Preserve the clean source so each test begins from a known state and one failure does not contaminate another.
- Add the ordinary trailing space to the Nashik ID; verify eleven characters, then repair it and return Nashik.
- Use text 1001 against the explicitly numeric customer source; verify the type difference, then apply the justified conversion and return Kulkarni Sweets.
- Use an approximate rule for a store identifier; replace it with exact matching and confirm BLK-PUN-02 returns Pune.
- Copy an unlocked store range from P2 to P5; inspect its movement, then lock the source and confirm all four Pune outputs.
- Ask for the sixth column of the five-column store table; return the intended fifth-column manager and verify Rani.
Finish with an additional silent-error test: deliberately shift the XLOOKUP city return range down one row. Confirm that BLK-PUN-02 would return Nashik under that wrong alignment, then restore the proper C2:C8 range and expect Pune. This test demonstrates that error-free output is not the same as a correct report.
Reconcile a small batch after the repair
On a separate review sheet, enter eight requests in this order: the deliberately space-suffixed Nashik ID from Stores!H2, BLK-PUN-09, BLK-KOP-01, BLK-PUN-02, AMN-SLP-01, BLK-SBN-01, BLK-PUN-01 and AMN-NGP-01. Keep one row per request and preserve the raw text beside a cleaned helper value. Use the unchanged seven-record directory as the lookup source.
Before cleaning the ordinary edge space, six requests match and two remain unresolved. After applying the justified trimming rule, seven match and one remains unresolved. The remaining request is BLK-PUN-09, which was never present in the source. The request count stays eight throughout; a repair should not silently drop a difficult row from the report.
Count the reviewed statuses separately from the returned city text. A nonempty output cell can contain an error message rather than a successful city, so simply counting populated result cells would not measure lookup success. Record whether the key was found and inspect any missing source attribute as a separate quality condition.
For this clean seven-record directory, the seven successful outputs should include Pune twice and each of Nashik, Kolhapur, Solapur, Sambhaji Nagar and Nagpur once. That city distribution is a second control, but it cannot replace checking the request-to-city pairs: two wrong assignments can sometimes preserve a total count. Review both the batch reconciliation and individual known records.
This small exercise turns a single-cell repair into a repeatable review method. You can explain how many requests were supplied, how many now resolve, which one remains unresolved, and what evidence supports the change. Keep that explanation with the workbook when handing it to another student or colleague.
- Keep all eight request rows in the review, including the unresolved one.
- Check returned fields against known source records, not only against a total success count.
- Record the remaining missing identifier so a later source update can resolve it deliberately.
The original Task Hub also includes the registration-code exercises. Its ten expected controls are eleven, eight, Nashik, Not in master, Rani, Not registered, Rani, Pune, Solapur and 4000 in the task order. Explain the meaning of each result before marking it correct; the two length values are character counts, while the final number is an amount.
14. Quiz and interview questions with explained answers
1. Does #N/A always mean the real-world record does not exist?
No. The selected source may omit it, the formula may search the wrong range, or the values may differ in type or characters. A matched return cell can also contain an error. Diagnose the expression and source before assigning a business meaning to the error label.
2. Why does TRIM not fix the constructed product request?
Its final character is a nonbreaking space with Unicode value 160, not the ordinary space TRIM handles by itself. Replace the identified character with a normal space, then trim. That targeted transformation returns the clean description and allows the lookup to return 420.
3. Are equal text lengths proof of equal IDs?
No. BLK-PUN-01 and BLK-PUN-02 have equal lengths but identify different stores. Length is one diagnostic signal. Compare characters, types and the intended identifier rules before treating two source values as the same record.
4. Should every digit-only ID be converted to a number?
No. Leading zeros and long digit sequences can be significant. Converting 00123 and 123 to numbers collapses them into the same value. Convert only when the identifier contract is explicitly numeric and the transformation preserves the intended identity.
5. Why is expanding A:E to A:F not the manager repair?
With return index six, the expanded table returns the opening year, not the fifth-column manager. The repair must satisfy the requested field as well as avoid #REF!. For BLK-KOP-01, the intended manager is Rani.
6. Can seven lookup cells and seven return cells still be wrong?
Yes. If their starting rows differ, positions refer to different records. The shifted city list returns Nashik for BLK-PUN-02 even though both ranges have seven cells. Match record boundaries and test a known pair.
7. Why does the copied formula fail only in later rows?
The source reference moves because it is relative. By P5 it searches A5:F11 and excludes the original row-two store. Lock the intended source range while allowing the order input reference to move down.
8. Should repeated store IDs always be removed?
No. They may be valid in an order-history source where each row is an event. A master directory expecting one row per store has a different uniqueness rule. Understand the row meaning before removing records or choosing first-match logic.
9. Is IFERROR with zero a complete validation strategy?
No. It can hide structural errors and make unresolved records appear to contain valid zero amounts. Use explicit review statuses and independently checked controls. Apply a fallback only when its meaning and scope fit the report.
10. What should remain true after the trailing-space repair?
The known Nashik record should resolve, while the genuinely absent BLK-PUN-09 should remain unresolved. Testing both guards against a repair that merely forces every request into some result without preserving identity.
11. How would you explain your troubleshooting approach in an interview?
I first state the intended input, source and returned field. I reproduce the issue on a small known record, inspect type, characters, range coverage and alignment, then repair the demonstrated cause. I finish with present, absent and changed-source controls and document any remaining data-quality issue.
15. Keep a compact repair checklist
Meaning
Name the requested record and field before editing the formula.
Characters
Measure the suspected difference, then clean only what the identifier rules permit.
Types
Preserve significant zeros and long IDs. A numeric-looking code may be text by design.
Ranges
Coverage, alignment and copy behaviour are separate checks.
Duplicates
Decide whether each row is a unique entity or a repeated event.
Retest
A known record should succeed and a truly absent record should remain distinguishable.
Use the Excel Task Hub for the original lookup-repair exercises, then complete the chapter's practice-and-answer page. When a repair feels uncertain, return to the source record and explain the expected answer in ordinary words. The spreadsheet should make that reasoning inspectable.
References and compatibility
Reviewed primary references include Microsoft's #N/A troubleshooting, TRIM documentation, data-cleaning guidance, and formula-error guidance. All examples are independently constructed or preserve the site's fictional practice fixtures.