You ask in plain words
With whatever notes or documents you already have.
Is my XLOOKUP pulling the price from the right row?
Check this exact SKU request for B. Return price as display text.
Your notes
=VLOOKUP("B",A2:B4,2) SKU|price B|£6 A|£4 B|£7
Your agent answers with a checked method
It runs 5 checks before it replies.
Your agentUsing this skill
Hold the price for SKU B. The two B rows show £6 and £7, and the omitted lookup argument selects approximate matching on an unsorted table. Confirm which price applies, resolve the duplicate and use FALSE for exact SKU matching.
- Reordering an approximate table can change results. A correct output for one lookup does not validate the table.
- Exact lookup ordinarily returns the first match. It does not resolve competing rows or make an identifier case-sensitive.
- Wrapping a lookup in IFERROR(..., 0) turns a missing key into a zero price or rate without any warning.
- A key stored as the number 42 on one side and the text 0042 on the other does not match, so the lookup fails or finds a different row.
- Checking for duplicates with COUNTIF can overcount when IDs look like numbers.
Why that’s right. Sorting the table would address approximate search ordering but would leave the duplicate SKU unresolved.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- A VLOOKUP or XLOOKUP returns a price, rate, code or category and someone wants to be sure it is the right row.
- A lookup result looks plausible but the table may have duplicate keys or be unsorted.
- IDs with leading zeros, such as 0042, may be stored as text in one place and as numbers in another.
Not the right skill when
- Predicting how many rows a database or pandas join will return. Use the join row-count skill.
- Auditing a whole block of formulas for shifted references and wrong totals. Use the spreadsheet formula audit skill.
The method it follows
6 steps, in order, every time.
- Read the match mode. In VLOOKUP, FALSE or 0 asks for an exact match; TRUE, 1 or an omitted last argument selects approximate matching. XLOOKUP matches exactly by default, and only its binary search modes assume sorted data.
- For an exact-ID request, flag approximate mode even if the current result looks plausible. Whenever approximate mode is used, check that the first column is in ascending order.
- For exact lookups, find every row matching the key under the spreadsheet's matching rules: text matching ignores case, and the text 0042 does not match the number 42. Surface the distinct return values before any selection, including tied or reused keys. Never coerce IDs to numbers.
- Count duplicates with a type-strict comparison such as SUMPRODUCT(--(A2:A100=key)) rather than COUNTIF. COUNTIF can read the criterion "0042" as the number 42 and count a stored 42 as well as the text, so it overcounts numeric-looking IDs.
- For a genuinely banded schedule with verified ascending lower bounds, choose the value at the greatest bound that does not exceed the request. A value below the lowest bound has no match.
- Report the candidate rows, the value the formula returns now and the fix: exact mode, a sorted band table, a unique key or a key column stored consistently as text.
What to have ready
If something’s missing, your agent asks before it starts.
- Lookup formula, lookup value, lookup table in source order, and whether the question asks for an exact ID or a band.
- The intended treatment of duplicate keys and the result column.

Is the lookup meant to find an exact ID, such as a SKU or account code, or a band, such as a quantity break or tax band?

Can you share the formula and the lookup table in its current order, including how the key column is stored?

If a key appears more than once, which row should win, and who decides?
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionCheck the rate band for an order of exactly 50 units. Return only JSON following the skill’s test format. =VLOOKUP(50,A2:B4,2,TRUE) quantity lower bound|rate 0|Base 50|Trade 100|Bulk
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The lower bound is inclusive.
{
"issues": [],
"candidates": [
"Trade"
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
-
Copy the questionFind candidates for the exact text ID "0042". Review the supplied types. Return only JSON following the skill’s test format. VLOOKUP("0042",A2:B4,2,FALSE) text 0042 | North number 42 | South text 0042 | West
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The two text IDs collide. The numeric 42 row is a different key.
{
"issues": [
"duplicate-key"
],
"candidates": [
"North",
"West"
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.