The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for tax accountants

Tax work is matching work: invoices claimed against what suppliers filed, accounts mapped to a computation, rates fetched by code. Done by eye, one missed line becomes a wrong return. The Complete Excel Course with AI Integration teaches the lookups that do it on an industry-standard HR workbook: VLOOKUP, XLOOKUP and its two-way lookup, IFERROR, INDEX and MATCH, keys built from two fields, FILTER for whatever stays unmatched, and a challenge.

Taught by Sagnik Bhattacharya and Virginia Thorn

The Complete Excel Course with AI Integration: Sagnik Bhattacharya and Virginia Thorn

What you will be able to do

At work, you will be able to:

  • Match a client's purchase register to suppliers' filings with XLOOKUP on a key that joins the supplier's registration number to the invoice number, run from both sides to find claims with no filing and filings never booked.
  • Map every trial balance account to its line in the tax computation with an exact-match lookup, so a newly opened account shows up as unmapped instead of vanishing.
  • Fetch a tax or withholding rate by code from a locked rate table, and by code and period at once with a two-way lookup.
  • Show a readable flag where a match is missing, with XLOOKUP's if-not-found answer or IFERROR round VLOOKUP, so a reviewer reads each gap at a glance.
  • Return a value from a column left of the key with INDEX and MATCH or XLOOKUP, and keep lookups working when a column is inserted into the table.
  • Build a matching key from two fields with CONCAT or the ampersand, and take a prefix or a serial out of a longer code using LEFT, MID and RIGHT.
  • List every unmatched invoice with FILTER in a current Excel, ready to send to the client or the supplier.

Projects

What you will build.

The course has 14 industry-standard projects. This one matters most here.

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    Built on HR records, it is the course's lookup workbench, and a tax accountant takes from it every move a claim check needs: VLOOKUP, XLOOKUP and INDEX and MATCH reaching into a second sheet, a readable flag for a code with no partner, and keys built from two fields or cut into their parts.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 9 of them, 39 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 67 Lookup functions in Excel

Start at Lesson 67 if IF and SUMIFS are already part of your week: the HR dataset is introduced there and VLOOKUP follows at once. Writing VLOOKUP already? Go straight to Lesson 69, where XLOOKUP, its if-not-found answer and the two-way lookup begin. Formulas themselves still unfamiliar? Take the formula lessons from Lesson 8 first, and the tour of the Excel window from Lesson 1 before them.

9 of 186 lessons · 39 min

08 Advanced Excel functions: lookups, text and arrays 7 of 12 lessons · 31 min The lookups themselves, on the PeopleInsight HR workbook: why matching through a shared code beats copying between tabs, VLOOKUP with an exact match and a locked table, XLOOKUP with its own answer for a missing code and a two-way lookup, IFERROR round both, INDEX and MATCH for keys outside the first column, then CONCAT, the ampersand and TEXTJOIN to build one key from two fields, and LEFT, RIGHT and MID to take a code apart. The lessons use employee records; a register keyed on registration and invoice numbers takes the same steps.
  1. 67 Start here Lookup functions in Excel The PeopleInsight HR dataset and why lookups matter 2 min
  2. 68 VLOOKUP in Excel Find employee data across sheets with exact match 4 min
  3. 69 XLOOKUP in Excel Exact match, if not found and two-way lookup 6 min
  4. 70 IFERROR in Excel Handle lookup errors in VLOOKUP and XLOOKUP formulas 3 min
  5. 71 INDEX and MATCH in Excel A flexible alternative to VLOOKUP 6 min
  6. 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
  7. 73 LEFT, RIGHT and MID in Excel Extract parts of a text code like DAL-SAL-0001 7 min
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 5 min FILTER, which turns a matching column into a worklist: every row that meets a rule, spilled by one formula, with AND and OR conditions, in a current Excel. Pointed at the not-found flag, it lists the invoices still to chase.
  1. 76 FILTER function in Excel Dynamic array filtering with AND and OR criteria 5 min
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 3 min A lookup challenge to finish on: product names and per-unit figures looked up for every order from a second sheet, a line total worked out from them and order IDs given a text prefix, all checked against a solution file.
  1. 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min

Instructors

Who teaches it.

Virginia Thorn smiling at the camera, dark hair tied back, wearing a navy top.

Instructor, Excel with AI

Virginia Thorn

Emmy Award winner. Teaches Excel with AI at Coding Liquids.

Questions

Asked before starting.

What do XLOOKUP and VLOOKUP do for a tax accountant that copying between sheets cannot?

They join a client's files on a shared code, every row at once and every row the same way, and both are built by hand in The Complete Excel Course with AI Integration from Coding Liquids, on an industry-standard workbook designed after talking with people from many different industries. Lesson 67 puts the case plainly: copying between tabs is slow, messy and invites mistakes, while a lookup applies one rule to thousands of rows. In tax work that rule fetches the tax a supplier reported for each claimed invoice, maps every trial balance account to its computation line, brings a withholding rate to each payment and fills a client's details into a workpaper. VLOOKUP (Lesson 68), XLOOKUP with its if-not-found answer and two-way lookup (Lesson 69), IFERROR (Lesson 70) and INDEX and MATCH (Lesson 71) are all here, practised on HR records keyed on employee IDs, and the 9 lessons on this page take 39 minutes.

Can a lookup set the tax each supplier reported beside the tax a client claimed, invoice by invoice?

Yes, and the difference column that follows is where the review starts. A key comes first: the supplier's registration number and the invoice number joined into one value with CONCAT or the ampersand (Lesson 72), built the same way in both files. XLOOKUP in The Complete Excel Course with AI Integration then finds each claimed invoice in the authority's download and returns the tax shown there (Lesson 69), so the reported figure sits beside the claimed one and a subtraction exposes every gap, a wrong amount as well as a missing invoice. Its if-not-found answer labels the claims no supplier reported, and the same lookup run the other way finds what suppliers filed that the client never booked. FILTER (Lesson 76) then lists every line with a gap for the follow-up email. The lessons use HR records; a register keyed on registration and invoice numbers behaves identically.

Our return templates are rolled forward and edited every year: which lookup survives that, VLOOKUP or XLOOKUP?

XLOOKUP, and The Complete Excel Course with AI Integration shows exactly why on a lookup table that changes shape. VLOOKUP counts its return column by number, so when Lesson 68 inserts a column into the lookup table, every result quietly turns to zero; XLOOKUP points straight at the column it returns, so the same insertion leaves it untouched (Lesson 69). A rolled-forward template gains a column most years, for a new disclosure or a new rate, and that difference decides which formulas still work in the busy season. VLOOKUP still earns its place: older workbooks from clients and colleagues are full of it, XLOOKUP needs a modern Excel, and nobody repairs what they cannot read. The course teaches both, plus INDEX and MATCH (Lesson 71), which inherited templates also use, so every lookup that lands on your desk is one you can follow and fix.

Can a lookup map every trial balance account to its line in the tax computation, add-backs included?

Yes: one mapping table and one exact-match lookup do it, and The Complete Excel Course with AI Integration teaches the pattern in Lesson 68. There, VLOOKUP takes each employee's department code, finds it in a separate table and returns the department's name, with FALSE for an exact match and the table locked with F4 before filling down. For a computation, the codes are account numbers and the table gives each one its line: turnover, allowable cost, an add-back such as entertaining, or a capital item. Every account in the trial balance then carries its treatment, and SUMIF on that column totals each line of the computation. The real gain is control: an account opened this year has no row in the mapping, so XLOOKUP's if-not-found answer (Lesson 69) labels it Unmapped instead of letting it drop out of a total.

Can a lookup give every payment its withholding rate from the payee type?

Yes, from a rate table you keep once, and The Complete Excel Course with AI Integration teaches the lookup on a table built just like one. Lesson 69 fetches each employee's city, state, region and work arrangement from a location table by its code, with the table range locked and an exact match set. Swap the location codes for payee types or withholding sections and the city column for the rate, and every payment row picks up its rate; multiply by the amount and the tax to withhold follows on each line. The table becomes the one place a rate lives, so a change of rate is a single edit that every payment sees. An unknown payee type is where withholding goes wrong, and the if-not-found answer turns it into a readable flag that a reviewer sees at once, long before the return is prepared.

Rates change part-way through a client's year: can one formula pick the rate for a code in a given period?

Yes, with a two-way lookup, which The Complete Excel Course with AI Integration names in the title of Lesson 69. A two-way lookup reads the value where a row and a column cross, so a rate table with tax codes down the side and periods across the top answers both questions at once: which code, and which period. Each invoice line then takes the rate in force when it was raised, not one rate for the whole year, and the earlier periods keep their earlier rates for the comparison a reviewer asks for. Held in one table, every rate change becomes a new column instead of an edit hidden inside formulas. The lesson works on the PeopleInsight HR data; the shape of the problem, a value picked by two keys at once, is identical in a grid of rates, and it is the lookup a mid-year change calls for.

Can one lookup fill a client's entity type, tax number and year end into every row of a workpaper?

Yes, from a client master kept on its own sheet, and The Complete Excel Course with AI Integration builds that move in Lesson 69. The lesson writes one XLOOKUP for the city, locks its ranges, then copies it across for state, region and work arrangement, moving the return range a column each time and putting the lookup cell back on the code column after it shifts. Four details arrive on every row from a single code. In a practice, the code is the client ID and the details are entity type, tax registration number, year end and filing frequency, held once and read everywhere, so a change of year end is made in one place. In a current Excel a single XLOOKUP can also return several neighbouring columns in one go. The habit that matters is the lesson's own: lock the master's range before filling down, or the rows lower down return errors.

When a claimed invoice has no match in the supplier's filing, what should the lookup column say?

A plain message, and The Complete Excel Course with AI Integration teaches the two ways to write one. Lesson 69 gives XLOOKUP its own answer for a missing code, typed straight into the formula; Lesson 70 breaks a code on purpose, watches the errors appear in both lookup columns, then wraps VLOOKUP in IFERROR with NOT MATCHED as the message. A word such as Not filed tells the client, the reviewer and you what to do next, where a column of raw errors tells most people nothing. The two are not identical: XLOOKUP's answer covers only a missing match, while IFERROR replaces any error at all, a broken range included, so on a workpaper that will be filed, XLOOKUP's version hides less. The lesson's warning fits tax data exactly: one extra character in an invoice number is enough to break a match.

Can lookups set last year's computation figures beside this year's, account by account?

Yes: last year's trial balance becomes a lookup table, and The Complete Excel Course with AI Integration gives you everything the comparison needs. XLOOKUP (Lesson 69) finds each account of this year's list in last year's sheet and returns its figure, exact match, ranges locked; a subtraction beside it gives the movement, and an IF can flag the movements large enough to explain. The two lists never match perfectly, and that is the point. An account opened this year finds nothing and takes the if-not-found answer, New account; an account closed since then is caught by running the lookup the other way, from last year into this year. INDEX and MATCH (Lesson 71) does the same job in templates built before XLOOKUP. With the lessons' HR data in place of ledgers, every step is practised on the PeopleInsight workbook before it meets a client's figures.

Online guides calculate tax with VLOOKUP's approximate match: why do these lessons insist on an exact match?

Because for codes, rates and tax numbers a near match is a wrong match, and The Complete Excel Course with AI Integration builds exact matching into every lookup it teaches: VLOOKUP's last argument set to FALSE in Lesson 68 and XLOOKUP's match set to exact in Lesson 69. An approximate match returns the closest smaller entry when the exact one is missing, and unpredictable rows when the table is not sorted, so a mistyped tax code can pick up a neighbour's rate without any warning, the error a reviewer can least afford. The approximate mode those guides use, which reads a sorted table of brackets, is not among the lessons, and the habits built here make it easy to follow: the same VLOOKUP with its last argument changed and a sorted table behind it. For the bands themselves, IFS (Lesson 32) tests thresholds from the top down with every threshold in view.

The authority's download keeps the tax number to the right of the amount: can a lookup still bring the amount back?

Yes, and The Complete Excel Course with AI Integration teaches two lookups that read in either direction. VLOOKUP cannot: it searches only the first column of its table and returns columns to the right of it, so a key in a later column would mean rearranging the download first. XLOOKUP searches one column and returns from any other, left or right (Lesson 69). INDEX and MATCH (Lesson 71) splits the job in two: MATCH finds the row where the tax number sits, as a position, and INDEX returns the amount from that row of whichever column you name; the lesson also names its tables on the Table Design tab, so the formula reads in words. That matters for files you do not control: an authority's or a client's export arrives in its own column order, and you match it as it is, untouched, which is what a reviewer wants to see.

Can a lookup catch a sales invoice charged at the wrong rate for its product?

Yes, by setting the rate each product should carry beside the rate it was charged. The Complete Excel Course with AI Integration gives you both halves: XLOOKUP fetches the expected rate from a product-to-rate table by the product code (Lesson 69), and IF, taught in the formula lessons (Lesson 30), compares it with the rate on the invoice and writes Wrong rate where they differ. Filled down a quarter's sales register, that column reviews every line in seconds, and FILTER (Lesson 76) lifts the flagged lines into a list of their own, in a current Excel. When a code has no entry in the table, the if-not-found answer says so, and a product nobody has classified cannot slip through as correct. The product codes in the lessons belong to a challenge file of orders (Lesson 78); a sales register is the same lookup on a longer list.

Why do the lookup lessons break their own formulas on purpose, and what does that teach a tax reviewer?

To show what a failing lookup looks like before a client's figures depend on spotting one, the most useful habit The Complete Excel Course with AI Integration teaches here. Lesson 68 inserts a column into the lookup table to watch VLOOKUP's answers turn to zero, then undoes it; Lesson 70 alters a code so that it no longer matches and watches the errors appear before handling them. The lessons add the routine checks: errors or zeros low in a filled column usually mean a table range left unlocked, and an @ in a table reference takes only the current row, which breaks a lookup that needs the whole column (Lesson 78). The challenge then gives an orders file to complete with XLOOKUP and a solution file to check every answer against. A reviewer who has seen each fault made on purpose recognises it at once in a client's workbook, and your first real match is not your first match.

The quarterly return is due soon: how much of this must I watch before I can match this quarter's invoices?

About 39 minutes in all, and the matching itself is ready well before the end. The Complete Excel Course with AI Integration puts VLOOKUP, XLOOKUP and the not-found answer at the very start of this path, so after Lesson 70 you can already look a register up against a download and label every gap. Joining the registration number to the invoice number as one key follows in Lesson 72, then FILTER for the list of gaps and the challenge to prove it all. Watch with the PeopleInsight starter file open and build each lookup alongside, then repeat the steps on a copy of this quarter's files. For a download that arrives every month, Power Query's merge (Lesson 163) later runs the same lookup again at each refresh, with nothing rewritten. With lifetime access, every lesson is still there when the next quarter comes round.

Excel with AI

See the whole course.

The Complete Excel Course with AI Integration: 16 hours of video in 186 lessons, built around 14 industry-standard projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.