The VLOOKUP formula syntax is =VLOOKUP(lookup_value, table_array, col_index_num, range_lookup). It searches the leftmost column of a table for a value you specify, then returns data from a column to the right. Use FALSE as the fourth argument for exact matches — the correct default for almost every business and analyst use case.
- Key Takeaway 1: VLOOKUP always searches the leftmost column of your table array. If your lookup column is not first, the formula will not work correctly.
- Key Takeaway 2: Use FALSE as the fourth argument for exact matches. Leaving it blank or using TRUE silently returns wrong data if your table is not sorted.
- Key Takeaway 3: Lock the table array with absolute references ($A$2:$C$100) so the range does not shift when you copy the formula down.
- Key Takeaway 4: The column index number counts from the first column of your table array, not from column A of the spreadsheet.
- Key Takeaway 5: VLOOKUP returns only the first match it finds. For multiple matches or left-side lookups, consider XLOOKUP or INDEX/MATCH.
The VLOOKUP Syntax at a Glance
The full VLOOKUP syntax in Excel looks like this: =VLOOKUP(lookup_value, table_array, col_index_num, range_lookup). Every argument has a specific job, and getting any one of them wrong gives you either a wrong answer or an error like #N/A or #REF!. Understanding each piece is the fastest way to stop guessing and start building reliable spreadsheets.
Here is a quick reference table breaking down the four arguments:
| Argument | What It Means | Example Value | Required? |
|---|---|---|---|
| lookup_value | The value you want to find | A2 (a cell containing an Employee ID) | Yes |
| table_array | The range that holds your data | $B$2:$D$100 | Yes |
| col_index_num | Which column in the range to return | 3 (third column of the range) | Yes |
| range_lookup | Exact (FALSE/0) or approximate (TRUE/1) match | FALSE | Optional, but always specify it |
According to a 2023 analysis published on the Microsoft Excel Tech Community blog, VLOOKUP is used in more spreadsheet files than any other lookup function, appearing in an estimated 80% of workbooks that contain at least one formula. It is the first lookup function most Indian MIS executives and data professionals learn, and it shows up regularly in data analyst interview questions at companies ranging from Infosys to startups on AngelList India.
Each Argument Explained with Examples
Let us walk through a real scenario. You have a sales register in columns A (Employee ID), B (Employee Name), and C (Monthly Sales in INR). You want to pull the sales figure for a specific employee ID entered in cell F2.
Your formula would be: =VLOOKUP(F2, $A$2:$C$100, 3, FALSE). That is it. Each argument does one job, and together they answer one question: find this ID, look in this table, give me the third column value, and match exactly.
Argument 1: lookup_value
This is the value Excel searches for in the first column of your table. It can be a cell reference like F2, a hard-coded value like “EMP001”, or a number. Using a cell reference is almost always better because you can change the search term without rewriting the formula.
A common mistake on the job: the lookup value is stored as text in one sheet and as a number in the other. Excel treats “101” and 101 as different things, so your formula returns #N/A even though the data looks identical. Always check the data type first. This is especially common in Indian payroll and GST invoice registers where employee codes or GSTIN numbers are sometimes imported as mixed types from tally exports.
Argument 2: table_array
This is the range that contains your data. The first column of this range must contain the values you are searching for. If you select $A$2:$C$100, Excel searches column A, not column B or C.
You should almost always use absolute references here (the dollar signs). If you use A2:C100 without locking it and then copy the formula down, the range shifts to A3:C101, then A4:C102, and your results break silently. Locking with $A$2:$C$100 keeps the range fixed no matter where you copy the formula. Named ranges work even better: define your data as “SalesData” in the Name Box and write =VLOOKUP(F2, SalesData, 3, FALSE) for a formula that is readable and self-documenting.
Argument 3: col_index_num
This tells Excel which column of the table array to return the value from. It counts from the first column of the table array, not from column A of the worksheet. If your table array starts at column B and you want the value from column D, that is column index 3 (B=1, C=2, D=3).
Getting this wrong is one of the most common VLOOKUP formula mistakes in professional settings. A #REF! error appears if the number you enter is larger than the total number of columns in your table array. If your range is only three columns wide and you enter 4, Excel throws an error immediately.
Argument 4: range_lookup
This is the argument most beginners skip, and skipping it is dangerous. It accepts either TRUE (or 1) for approximate match, or FALSE (or 0) for exact match. When you omit it, Excel defaults to TRUE.
With TRUE, Excel assumes your first column is sorted in ascending order and returns the closest value below your lookup term. That is useful for tax bracket calculations or grade thresholds, but for most business lookups, like finding a customer name from an order ID, it silently returns the wrong row. Always type FALSE unless you have a specific reason not to.
Exact vs Approximate Match
The distinction between FALSE and TRUE in the fourth argument is where a lot of VLOOKUP formula use goes wrong. Here is a practical comparison so you can decide which one your situation needs.
| Scenario | Use FALSE (Exact) | Use TRUE (Approximate) |
|---|---|---|
| Finding a customer by ID | Yes | No |
| Assigning a grade from a marks range (0-40=F, 41-60=C, etc.) | No | Yes (data must be sorted) |
| Pulling a product price from a price list | Yes | No |
| Calculating income tax slab rates | No | Yes (data must be sorted) |
| Matching employee names from HR data | Yes | No |
The NASSCOM Future of Work 2023 report highlights that data handling and spreadsheet proficiency rank among the top baseline skills expected of analysts entering India’s IT and BPO sectors. Knowing when to use exact vs approximate match is the kind of detail that separates a reliable analyst from someone who produces reports that look right but are not. If you are building toward a data career, check out what it takes to become a data analyst in India from scratch.
LinkedIn’s 2024 Jobs on the Rise report for India listed data analyst roles among the fastest-growing positions, with Excel and data wrangling skills appearing in over 60% of relevant job postings. A separate 2023 Coursera Industry Skills Report found that Excel proficiency, including VLOOKUP, appeared in 74% of entry-level data analyst job descriptions globally. Knowing your VLOOKUP syntax cold is not optional if you are interviewing for those roles.
Why Is VLOOKUP Not Working? Common Errors Explained
If your VLOOKUP formula returns an error or the wrong value, one of four things has usually gone wrong. The lookup value data type does not match the table (text vs number). The lookup column is not the first column of the table array. The column index number is larger than the number of columns in the range. Or the fourth argument is missing and Excel is defaulting to approximate match on unsorted data. Checking these four points resolves the majority of VLOOKUP errors in real-world spreadsheets.
Spotting the Correct VLOOKUP Formula
One of the most common exam and interview questions is: which of the following is the correct VLOOKUP formula? Let us look at four versions and identify what is right or wrong with each.
Formula Comparison: Spot the Mistake
| Formula | Correct? | What’s Wrong (if anything) |
|---|---|---|
| =VLOOKUP(A2, B2:D100, 3, FALSE) | Yes (but risky) | No absolute reference; range shifts when copied |
| =VLOOKUP(A2, $B$2:$D$100, 3, FALSE) | Yes, fully correct | None |
| =VLOOKUP(A2, $B$2:$D$100, 5, FALSE) | No | col_index_num is 5 but the range only has 3 columns; returns #REF! |
| =VLOOKUP($B$2:$D$100, A2, 3, FALSE) | No | Arguments 1 and 2 are swapped; table_array is in position 1 |
The second formula, =VLOOKUP(A2, $B$2:$D$100, 3, FALSE), is the gold standard for most everyday lookups. It has a cell reference for the lookup value, a locked table array, a valid column index, and an explicit exact match. That is the answer to “which of the following is the correct VLOOKUP formula” in most test scenarios.
How to Put the VLOOKUP Formula in Excel, Step by Step
- Click the cell where you want the result to appear (e.g., G2).
- Type =VLOOKUP( and Excel will show a tooltip with all four arguments.
- Click the cell containing your lookup value (e.g., F2), then type a comma.
- Select your data table range, press F4 to lock it (adds the dollar signs automatically), then type a comma.
- Type the column number you want returned, then a comma.
- Type FALSE and close the bracket. Press Enter.
- Copy the formula down the column. The locked table array stays fixed; the lookup value shifts row by row.
That F4 shortcut is one of those small things that experienced analysts use constantly. It is faster than typing four dollar signs manually and it eliminates a whole category of formula errors when you are working with large datasets. These are the kinds of practical habits you pick up when you work on real data analytics projects rather than just reading about them.
Excel skills sit right alongside Python libraries when employers assess data candidates. If you are curious how Excel compares to Python tools like Pandas for data work, our breakdown of Pandas and NumPy explains where each tool fits. And if you are weighing career paths, the comparison between a data analyst vs data scientist role clarifies which skill set each path actually demands.
Excel proficiency, including the VLOOKUP function in Excel, is also a transferable skill in cybersecurity operations. SOC analysts filter through thousands of log entries, correlate data across tables, and build dashboards, work that maps directly onto what you practise when you master lookup formulas. The highest paying tech skills in 2026 increasingly blend data fluency with security knowledge.
Frequently Asked Questions
What is the VLOOKUP formula syntax?
The VLOOKUP formula syntax is =VLOOKUP(lookup_value, table_array, col_index_num, range_lookup). The function takes four arguments: the value to search for, the table containing your data, the column number to return a value from, and whether you want an exact or approximate match. Always specify the fourth argument explicitly to avoid silent errors.
What does the 4th argument in VLOOKUP mean?
The fourth argument, range_lookup, controls how Excel matches your lookup value. Use FALSE or 0 for an exact match, which is correct for most business lookups like finding a customer ID or product code. Use TRUE or 1 for an approximate match, which only works correctly when your first column is sorted in ascending order.
Which of the following is the correct VLOOKUP formula?
The correct VLOOKUP formula structure is =VLOOKUP(A2, $B$2:$D$100, 3, FALSE): a cell reference as the lookup value, a locked absolute range for the table array, a valid column index number within that range, and FALSE for an exact match. Common errors include swapping arguments 1 and 2, entering a column index larger than the table width, or omitting the fourth argument entirely.
Why use FALSE in VLOOKUP?
Using FALSE forces VLOOKUP to find an exact match for your lookup value. Without it, Excel defaults to TRUE and returns the closest value below your search term, which produces wrong results if the data is not sorted. For any lookup involving IDs, names, codes, or product numbers, FALSE is the safe and correct choice every time.
How do I lock the table array in VLOOKUP?
Select the table array range in your formula and press F4. This converts a relative reference like B2:D100 into an absolute reference $B$2:$D$100, locking both the row and column. Alternatively, define the range as a named range in Excel’s Name Box and use the name directly in the formula, which is even more readable and equally stable.
Why is VLOOKUP not working?
VLOOKUP most often fails because the lookup value data type does not match the table data (text stored as a number or vice versa), the lookup column is not the leftmost column of the table array, the column index number exceeds the width of the selected range, or the fourth argument is omitted and Excel defaults to approximate match on unsorted data. Check these four points first before troubleshooting further.
You now have everything you need to write, check and troubleshoot the VLOOKUP formula in Excel with confidence. The four arguments each have a clear job, exact match is almost always the right default, and locking the table array protects you the moment you copy a formula down a column.
- Open a spreadsheet with real data today and write one VLOOKUP formula from scratch using FALSE and absolute references.
- Practice identifying formula errors using the spot-the-mistake table above, then test each broken version in Excel to see what error it produces.
- If you are building toward a data or analyst career, browse common data analyst interview questions to see how lookup logic gets tested in real hiring processes.
Data skills like the VLOOKUP formula transfer directly into security operations work, where analysts query log tables, correlate event IDs, and filter datasets to spot threats. If that kind of applied data work interests you, explore the EC-Council Certified SOC Analyst course at 3.0 University, or browse the full 3.0 University online certification courses covering Cybersecurity, Ethical Hacking, AI, Blockchain and Web3. Every course is built for working professionals and career switchers who want practical, industry-ready skills, not just theory.
Last updated: June 2025. Reviewed by the 3University editorial team.