Memuat
Memuat
Want to go deeper?
Join one of our courses or ask us directly on WhatsApp.
Picked from the software, topic, and level of “Beginner Excel Class #6: VLOOKUP: Automatically Searching Data”.
Other ways we can help with Excel.
Learn with a mentor
Scheduled Microsoft 365 & Azure courses with live guidance and a certificate.

Course/Training Excel Macro — Implementing Excel Macros in an Interactive Dashboard for Employee Performance Monitoring and Evaluation
★ 5.0 (12)

Course/Training Microsoft Excel 2016 Fundamental
★ 5.0 (9)

Course/Training Excel — Interactive Excel Dashboards
★ 5.0 (6)
Have it built for you
No time to learn Excel? Our team can do the project for you.

Development Service: Excel — Microsoft Excel Macro VBA
★ 5.0 (11)

Development Service: In-House Excel Macro & VBA Training — Data Automation
★ 5.0 (7)

Development Service: Excel Macro — Excel VBA Programming Master Class
★ 5.0 (4)
Get notified about new Excel classes
At most one email a week. Unfollow anytime with one click.
The full narration of this video. The current sentence is highlighted while the video plays; click any sentence to jump there.
This is the final result we will create, a store invoice. Just type in the item code and quantity, and the item name, unit price, and subtotal appear automatically, pulling details from the price list in another sheet. This method is used in stores, offices, and warehouses. Every time two tables need to be connected through the same code. Learn once, and the result can be used repeatedly. Let's start. Hello, welcome to the Excel for Beginners tutorial, VLOOKUP, and Index.me. We will create a store invoice that automatically fills in the item name and price, just by typing the item code. This function is very useful for connecting two tables.
This file has two sheets. The price sheet contains the list of codes, item names, and prices. The invoice sheet contains the item code and the quantity purchased, while the item name, price, and subtotal are still empty. Our task is to retrieve the name and price from the price sheet, based on the item code. Press Ctrl Page Down and Ctrl Page Up to switch sheets.
Switch to the invoice sheet, then click cell B2. Type equals VLOOKUP, open the parenthesis. The first part is the value to look for, which is A2, the item code. Semicolon. The second part is the table where to look, which is the price sheet, from A2 to C9. Type a dollar sign before each letter and number to lock the table address, or press F4 for a quick way.
Semicolon. The third part is the column number to retrieve. Column one is the code, column two is the item name, so type two. Semicolon. Fourth part determines the search must be exactly the same, type false. Close parenthesis and press Enter. The item name appears automatically.
Double-click fill handle to copy the formula to all rows. Now all codes have turned into item names.
For price, the formula is almost the same. In C2, type VLOOKUP, A2, semicolon, same table, semicolon, but column number is 3, semicolon, false. Copy down. Then in E2, subtotal is price times quantity. Type equals C2 times D2, and copy down.
In E9, sum all subtotals with same. Now let's test. Change one of the codes, for example to B999, which is not in the list. An error N/A appears. To make the display more polite, we wrap the formula with IFERROR. The formula, IFERROR, open parenthesis, VLOOKUP as before, semicolon, quote code not found.
Besides VLOOKUP, there is another more flexible way, which is combining INDEX and MATCH. In the second cell, type equals INDEX, open parenthesis, column item name in the price sheet, semicolon, MATCH, open parenthesis, A2, semicolon, column code in the price sheet, semicolon, zero, then close two parentheses. MATCH finds the row order of the item code, and INDEX takes the cell content at that order. The result column is free, can be to the left or right of the code column. The result is the same as VLOOKUP.
Finally, we tidy up with currency format for price and subtotal, widen columns, then save with Ctrl+S. Now we have an invoice that fills itself. If there's a new item, just add one row in the price sheet, and the invoice will recognize it automatically. No more searching for prices one by one, no more typos in item names. Work that used to take hours is now completed in seconds, and the results are always consistent.
Done! We've created an automatic invoice using VLOOKUP, IP error, and index MI. Thank you for watching, see you in other tutorial series. Want to master Excel for work and business? Cerdas Inovasi Digital offers Excel and Office courses, template creation services, reports, and dashboards, as well as sells the practice files for this tutorial. Contact us via WhatsApp, or visit cerdasinovasidigital.com. Thank you for watching, see you in other tutorial series. Thank you for watching!
Type a question or keyword; we find the part of this episode that explains it and jump the video there.
Notes are saved with the current video time and are only visible to you.
Stuck on a step? Ask here; the instructor and other learners can answer.
No questions yet.

Cerdas Inovasi Digital Team
Software developers, BIM & 3D engineers, and AI practitioners
We build software, BIM models, games and AI automations for clients every day, and turn that hands-on work into step-by-step classes: every step is shown on screen and comes with a PDF guide you can keep.
See our clients →