Google Sheets tutorial
How to use VLOOKUP in Google Sheets
This whole video was made by AI.
Make your own at sayscreen.com
$1 for 7 days, then $49/month
- 5:13 video
- 12 steps
- Last verified December 2, 2026
VLOOKUP searches the first column of a table for a value and returns something from the same row. This video types a small product list (the headers and the first product on camera, the other four off camera) and builds an order box where typing a product ID shows that product's name and price, explaining each part of =VLOOKUP(F1, A2:C6, 2, FALSE) as it's typed. It changes the ID to show the results update, tries an ID that isn't in the list to show the #N/A error, uses TRUE for an approximate match on a sorted discount table, and adds XLOOKUP, which can show its own message when nothing matches, before ending on a real ID.
Steps
- Type the product list's headersProduct ID, Name and Price. VLOOKUP searches the leftmost column, so the IDs go first.
- Add the productsHere: P101, Notebook, $4.50. The other four are filled in off camera, so the list runs from A2 to C6.
- Make an order box beside the listLabels for Product ID, Name and Price, and the ID to look up, P103, in F1.
- Type =VLOOKUP( and the search keySheets shows its parts: search_key, range, index and the optional is_sorted. The search key is F1, the ID cell.
- Add the range and the column to returnThe range is A2:C6, with the IDs in its first column. Name is column 2.
- Finish with FALSE for an exact match=VLOOKUP(F1, A2:C6, 2, FALSE) returns the name for P103.
- Type the price formula with column 3=VLOOKUP(F1, A2:C6, 3, FALSE) returns the price.
- Change the ID to see both results updateHere: P104.
- Try an ID that isn't in the listP999 gives #N/A. Hover the cell to see why.
- Use TRUE for an approximate matchA discount table sorted by quantity, typed off camera, gives the tier for 25 items. The first column must be sorted.
- Try XLOOKUP=XLOOKUP(F1, A2:A6, B2:B6, "Not found") shows Not found for the missing ID.
- Enter a real ID to finishP105 brings back its name and price, and XLOOKUP gives the same name.
Transcript
0:00VLOOKUP lets you type one value, like a product ID, and pull back matching details from a table. Let's build a small product list and an order box that fills itself in.
0:12First, the product list. In cell A1, type Product ID. The ID goes in the first column, because VLOOKUP always searches the leftmost column of a table. Next to it, a Name column, and a Price column.
0:31Now the first product: ID P101, a Notebook, priced at four fifty. The other four products are filled in the same way, so the whole list runs from A2 down to C6. That range is the table VLOOKUP will search.
0:54Next, the order box, leaving column D empty as a gap. In E1, type a Product ID label, then Name below it, and Price. In F1, type the product to look up, P103. This is the cell you'll change whenever you want a different product.
1:20Now the formula. In F2, next to Name, type equals VLOOKUP and an opening bracket. Sheets shows the four parts it needs: a search key, a range, an index, and whether the data is sorted. The search key is F1, the product ID cell, so the formula always looks for whatever ID is typed there.
1:45The range is the product table, A2 to C6. The IDs must sit in its first column, since that's the only column VLOOKUP searches. The index says which column to return, counting from the left of the range. Name is column 2.
2:03Last, is sorted: type FALSE, then close the bracket. FALSE means exact match, so P103 only ever matches P103, never a close neighbour.
2:17Press Enter, and Stapler appears. For the price, it's the same formula with one change: index 3, because Price is the third column.
2:28There's the price, eight ninety nine. Now change the ID to P104, and both results update instantly: a Backpack for twenty four dollars.
2:40Next, select the ID cell and try one that isn't in the list. Type P999 and press Enter. Both cells now show N A, short for not available. Hover over one and Sheets explains why. It did not find P999. With exact match, a missing ID gives this error instead of a wrong product, which is exactly what you want for orders. To show a friendlier message, you can wrap the formula in IFERROR. Now for approximate match. Below the products, I've added a discount table sorted from smallest to largest quantity, plus a quantity of 25 to check.
3:24This time the last argument is TRUE. Since 25 isn't in the list, VLOOKUP drops back to the closest value below it, which is 10. So 25 items earns the 5 percent tier. Approximate match is perfect for ranges like discounts, shipping bands or grades, but the first column must be sorted. For IDs, stick with FALSE, or a missing ID could quietly return the wrong product.
3:54Finally, XLOOKUP, the newer alternative. Label a spare row in the order box XLOOKUP, and beside it type XLOOKUP with the ID, then the column to search, the column to return, and a message for when nothing matches. With the missing ID, XLOOKUP shows Not found instead of an error. It matches exactly by default, and because the search and return columns are separate, the ID doesn't have to be the leftmost column. Use it for new sheets; VLOOKUP is still everywhere in existing ones.
4:33To finish, select the ID cell again and enter a real product. Type P105 and press Enter. The order box is working again: P105 brings back the Desk Lamp at nineteen fifty, and XLOOKUP agrees. You've built an order box with VLOOKUP using an exact match, seen why a missing ID gives N A, and learned when approximate match or XLOOKUP is the better choice.
Google Sheets is a trademark of its owner. SayScreen isn't affiliated with, sponsored or endorsed by Google Sheets; this video shows the public app as it looked when it was recorded, and we last checked the steps on December 2, 2026. If Google Sheets has changed since, tell us at hey@sayscreen.com. Google Sheets's own guide: support.google.com/docs/answer/3093318.
More how-to videos
All Google Sheets videos
2:41Google SheetsHow to create a pivot table in Google Sheets8 steps · Verified November 30, 2026
4:09Google SheetsHow to merge cells in Google Sheets10 steps · Verified December 2, 2026
4:02Google SheetsHow to create a dropdown list from another tab in Google Sheets10 steps · Verified November 6, 2026