Investigate a believable result as carefully as an error
A lookup formula that returns a department or account name can look more trustworthy than a visible error. Yet the result may belong to a neighboring identifier. When a finance mapping contains an unexplained assignment, inspect the lookup rule before assuming the reference table is correct or changing the transaction's original identifier.
Separate two legitimate tasks. Finding the approved account for an exact account code requires an identity match. Finding the rate applicable to a value within an agreed band can require a range match. A formula designed for the second task can produce a plausible but incorrect answer when reused for the first.
Microsoft documents that VLOOKUP uses approximate matching when its fourth argument is TRUE or omitted. FALSE requests an exact match. Read the formula itself, including copied formulas elsewhere in the column. A worksheet heading that says account lookup does not establish which matching behavior the preparer selected.
References: Microsoft: VLOOKUP function
Reproduce the result with a small controlled example
Suppose a fictional mapping table contains numeric codes 100 for supplies, 200 for travel and 300 for software, sorted in ascending order. The transaction has code 250, which is absent from the approved list. With the table in A2:B4, =VLOOKUP(250,A2:B4,2,TRUE) returns the entry associated with 200. That outcome follows the range-matching rule, but it does not authorize treating code 250 as travel.
Changing the fourth argument to FALSE makes this absent numeric code return #N/A. That visible exception is useful: it identifies a mapping decision still needed. It should not automatically be replaced with zero, an empty string or a familiar department merely to make the report look complete. Preserve the original code and obtain a supported assignment.
Microsoft's lookup guidance explains approximate matching as selecting the largest qualifying lookup value no greater than the requested value in the illustrated sorted-table use. Test the actual formula with a known match, an absent code between two entries and a code below the smallest entry. These cases reveal behavior that a demonstration containing only valid codes can conceal.
References: Microsoft: VLOOKUP function; Microsoft: Look up values with VLOOKUP, INDEX or MATCH
Do not repair an identifier lookup by sorting alone
Approximate VLOOKUP requires an appropriately sorted first column; Microsoft warns that an unsorted column can produce unexpected results. Sorting may therefore repair a legitimate band lookup. It does not turn an approximate identifier match into an exact one. Establish the intended business rule before choosing the technical change.
Ask the mapping owner whether codes are numbers, text identifiers or values with meaningful leading zeros. Do not convert an entire list to numbers simply because the demonstration used numeric codes. Some businesses distinguish references that look numerically equivalent. Preserve their source representation and review any proposed normalization separately from the matching-mode repair.
For text lookups, inspect special characters and the function's documented behavior. Exact-mode VLOOKUP can still interpret supported wildcards in a text lookup value. The mode alone should not be described as a universal literal-identifier guarantee. If the company's keys contain such characters, have the workbook owner choose and test the appropriate comparison method using those actual cases.
References: Microsoft: VLOOKUP function
Check the mapping table's business boundaries
An exact formula can still return a wrong business answer when the reference table contains an inappropriate relationship. Confirm that the mapping belongs to the relevant company, reporting basis and period. An account code reused by two entities may require a combined key. A valid current mapping may be wrong for a historical reporting date.
Inspect repeated keys in the mapping population and determine whether they represent errors or missing context. One identifier associated with two departments needs an owner decision before the lookup can be relied on. Do not make the issue disappear by deleting whichever row happens to be less convenient or by selecting the first result without recording the rationale.
Verify the returned column and the range boundaries too. Inserting a column or copying a relative reference can alter a lookup's meaning even when the matching mode is correct. Trace several assignments from source code to approved mapping and returned label. The review should establish the whole relationship, not merely the presence of FALSE in the formula.
Quantify the effect before replacing the issued report
Run the old and proposed rules against the same preserved transaction population. List assignments that change, records that now remain unmatched and amounts associated with each group. A change that leaves the overall total unchanged can still materially alter departmental or account-level reporting. Reconcile at the level where management uses the mapped result.
For illustration, three transactions with an unsupported code total $1,800, $700 and $500. Their combined $3,000 was previously placed in travel by the approximate lookup. Correcting the formula should expose $3,000 as awaiting mapping until the owner resolves it. Moving that amount directly to software without evidence would replace one unsupported answer with another.
Record the approved disposition for each exception and rerun the affected report. Compare both the total population and the category changes. Have the accounting or reporting owner decide whether downstream journals, allocations or distributed reports require correction. A workbook formula fix alone does not establish that earlier uses of its output have been repaired.
Make the expected failure part of the workbook check
Retain a small set of fictional examples with the workbook instructions, including a valid identifier and an intentionally absent one. The absent code should produce the agreed exception behavior, while an approved band calculation should continue to demonstrate its own intended range logic. These checks protect two different uses without banning a useful function.
Name who owns the mapping table and how new identifiers enter it. Keep unresolved counts visible in the report-preparation process so a fresh code cannot receive an accidental neighboring assignment. The dependable outcome is an explained mapping, with explicit exceptions where the company has not yet made the required decision.
Sources
Requirements and product details can change. Check the linked guidance for the facts that apply to your situation.
Related reading
Need help with this work?
General information, not personalized accounting, tax, legal, or investment advice. Have the appropriate qualified professional review decisions that depend on your circumstances.