The XLOOKUP or VLOOKUP + IFNA guide
For each invoice in the ledger, look it up on the bank statement: =XLOOKUP(A2, $F$2:$F$9, $G$2:$G$9, "Not in bank"). Then compare: =IF(C2=B2, "OK", "Check"). What's missing and what came in short are the two answers a reconciliation is for.
Two questions per line
- Is it on the statement? A lookup by invoice number. When it isn't there, the lookup fails with #N/A: that is the answer, so show it in words with XLOOKUP's fourth argument or
IFNA. - Is the amount right? Compare the bank amount with the ledger amount. A bank fee, a short payment or a typo shows up here.
VLOOKUP needs FALSE here
Without a fourth argument, VLOOKUP does an approximate match, which assumes the first column is sorted. A bank statement is in date order, not invoice order, so VLOOKUP jumps past the right row and returns another invoice's amount, without any error to warn you. Always =IFNA(VLOOKUP(A2, $F$2:$G$9, 2, FALSE), "Not in bank"). See VLOOKUP.
Every cent counts
Don't round before comparing: 1,249.50 against 1,250.00 is exactly what you are looking for. If the amounts come from calculations with long decimals, round both to two places, not to whole numbers.
Lock the statement range
Filled down without $, the statement range slides with the formula and its first rows drop out. The invoices that were paid early in the month then look missing.
The other direction
A line on the statement with no invoice in the ledger is the opposite problem. Look the statement refs up in the ledger the same way, or count them: =COUNTIF($A$2:$A$9, F2)=0. See compare two lists.
FAQ
- How do I reconcile two lists in Excel?
- Look each item of one list up in the other by its ID, with XLOOKUP or VLOOKUP and FALSE, show a message when it is missing, and compare the amounts with IF.
- Why does VLOOKUP return the wrong amount?
- Without FALSE as the last argument, VLOOKUP assumes the list is sorted and can return a nearby row. Add FALSE for an exact match.
- How do I show "Not found" instead of #N/A?
- Give XLOOKUP a fourth argument, =XLOOKUP(A2,F2:F9,G2:G9,"Not found"), or wrap VLOOKUP in IFNA(…,"Not found").
- Should I round amounts before comparing them?
- Only to two decimals, to remove floating-point noise. Rounding to whole numbers hides the differences a reconciliation is meant to find.
This task is in the timed accounting practice test. What Excel interview tests check






























































