Hands-On Excel Lookup functions

Excel lookup exercises

Twelve exercises for pulling a value out of a table: VLOOKUP with exact and approximate match, HLOOKUP, XLOOKUP with wildcards, MATCH, INDEX, INDEX MATCH and a two-way lookup, then fixing #N/A and a bank reconciliation with IFNA. Each one runs on an Excel-style sheet in your browser and checks the result, so any formula that gets it right passes.

12 lessonsAbout 36 minutesBy Updated

The 12 exercises

Each one is a short task on an Excel-style sheet in your browser, free and without sign-up. The checker looks at the result, so any formula that gets it right passes, and a wrong one gets the reason.

  1. Look it up VLOOKUP, Core, 3 min

    VLOOKUP finds a value in the first column of a table and returns a value from the same row.

  2. Find the right bracket VLOOKUP approximate match, Core, 3 min

    An approximate-match VLOOKUP returns the band a number falls into, from a table sorted by where each band starts.

  3. Fill a lookup down VLOOKUP + $, Core, 3 min

    Filled down a column, VLOOKUP needs its table locked with $, or the table moves down a row with every formula.

  4. Look across a row HLOOKUP, Core, 3 min

    HLOOKUP finds a value in the top row of a table and returns a value from a row below it, counted from the top of the table.

  5. XLOOKUP, the modern way XLOOKUP, Core, 3 min

    XLOOKUP finds a value in one column and returns the matching value from another, on either side, with an answer for "not found".

  6. XLOOKUP with wildcards XLOOKUP match_mode, Advanced, 3 min

    In match mode 2, XLOOKUP reads * as any run of characters and ? as any one character, so it can find text that only contains your value.

  7. Where is it in the list? MATCH, Core, 3 min

    MATCH returns the position of a value in a list, not the value itself.

  8. Give me the nth one INDEX, Core, 3 min

    INDEX returns the cell at a given position in a range, counting from the first cell of the range, not from the top of the sheet.

  9. INDEX and MATCH together INDEX + MATCH, Advanced, 3 min

    MATCH finds the row of a value and INDEX returns what is in that row of another column, even one to the left.

  10. Row and column lookup INDEX + MATCH + MATCH, Advanced, 3 min

    A two-way lookup gives INDEX two MATCHes: one finds the row, the other the column, and INDEX returns the cell where they cross.

  11. Mistake hunt: #N/A everywhere Fixing #N/A, Core, 3 min

    #N/A from VLOOKUP means the value wasn't found in the first column of the range exactly as written.

  12. Reconcile the ledger with the bank XLOOKUP or VLOOKUP + IFNA, Core, 3 min

    A bank reconciliation looks up each ledger entry on the statement and flags the ones that are missing or don't match.

Do module 7 in order, step by step, in the courseAll 126 exercises

FAQ

Which lookup function should I learn first?
VLOOKUP. It is in most existing workbooks and the other lookups are easier once you know what it does and where it falls short. Then XLOOKUP if you have Excel 365, and INDEX MATCH for older versions and tests that ask for it by name.
VLOOKUP, XLOOKUP or INDEX MATCH: which should I use at work?
XLOOKUP if everyone who opens the file has Excel 365 or 2021 and later: it looks either way, matches exactly by default and has its own not-found message. INDEX MATCH if the file goes to older versions. VLOOKUP is fine when the answer sits to the right of the lookup column.
Why does my lookup return #N/A when the value is in the table?
Usually a space you can't see, a number stored as text, or a table range that moved when the formula was filled down. The #N/A exercise in this set has all three on one sheet.
Do these exercises work like Google Sheets lookups too?
Yes. VLOOKUP, HLOOKUP, XLOOKUP, MATCH and INDEX take the same arguments in Google Sheets, so the formulas you write here work there as well.