Module 8 ยท Lesson 37

XLOOKUP exact match

Retrieve values in either direction with explicit missing-result handling.

Why this lesson matters: XLOOKUP exact match

Retrieve values in either direction with explicit missing-result handling. In this module, the skill supports a larger goal: Build flexible one-way, two-way, and multi-criteria retrieval logic. The practical application is to return current prices without relying on column positions.

=XLOOKUP(A2,Products[Code],Products[Price],"Missing")

Build it step by step

Work from the business question toward the formula or tool. Keep the source data separate from the output and make every important assumption visible to the reviewer.

  • Choose the smallest lookup and return arrays that solve the question.
  • Use explicit not-found behaviour.
  • Test duplicate, missing, and boundary matches before release.

Check the result and common failure points

Compare a sample of advanced lookup results with a manual filter of the source data. Also test a known record, a missing or blank value, and a boundary case. Confirm that ranges are the same size, units are consistent, and copied references move only where intended.

  • Compare at least one result with a manual calculation or filtered source record.
  • Test blanks, zeros, duplicates, errors, and the exact rule boundary.
  • Reconcile row counts or totals before relying on the output.

Use the result in a decision

Return current prices without relying on column positions. Label the output clearly, state its period and unit, and explain the action it supports. A technically correct result is only complete when another person can understand, refresh, and review it.

Key takeaway: XLOOKUP exact match becomes dependable when its purpose, source data, assumptions, and checking method are all explicit.