If your VLOOKUP formula has TRUE (or is blank) as the last argument, it performs an approximate match: Excel scans the first column for the largest value that is less than or equal to your lookup value, and returns the corresponding row. If your data isn’t sorted ascending, this can return wrong or unexpected results. The FALSE argument forces an exact match, which is what most people actually want.
What the Fourth Argument Actually Does
VLOOKUP’s syntax is VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). The fourth argument, range_lookup, is optional. If you omit it, Excel defaults to TRUE. Here’s what each setting means:
- TRUE or omitted – Approximate match. Excel finds the closest match that is less than or equal to the lookup value. The first column of your table must be sorted in ascending order (A to Z, smallest to largest) for this to work correctly.
- FALSE – Exact match. Excel looks for a value that exactly equals your lookup value. If none exists, it returns
#N/A. No sorting required.
For example, with a table in A2:B6 containing 1, Apple, 2, Banana, 3, Cherry, and you write =VLOOKUP(2.5, A2:B6, 2, TRUE), Excel returns “Banana” because 2 is the largest value ≤ 2.5. If you use FALSE, it returns #N/A because 2.5 isn’t in the list.
Why Approximate Match Can Bite You
The classic mistake is using TRUE (or forgetting the argument) on unsorted data. Suppose your first column is 10, 5, 20 and you look up 15. With TRUE, Excel doesn’t scan linearly; it uses a binary search algorithm that assumes the data is sorted. On unsorted data, the result is unpredictable – it might return the row for 10, or 20, or even #N/A. This is why many Excel trainers say “always use FALSE unless you have a specific reason not to.”
When TRUE Is Actually Useful
Approximate match shines in lookup tables that define ranges or tiers. Common examples:
- Tax brackets: Income up to 9,950 → 10%, up to 40,525 → 12%, etc.
- Shipping rates: Weight 0–1 lb → $5, 1–5 lb → $8, etc.
- Grade scales: Score 90–100 → A, 80–89 → B, etc.
For these, you build a table with the lower bound of each tier in the first column, sorted ascending. Then TRUE correctly finds the tier for any input. Example: with 0 in A2, 1000 in A3, 5000 in A4, and rates in B2:B4, =VLOOKUP(2500, A2:B4, 2, TRUE) returns the rate for the 1000–4999 tier.
How to Choose: TRUE or FALSE
Ask yourself: do you need an exact match (like looking up an employee ID, product code, or exact name)? Then use FALSE. Do you need to categorize a continuous number into a bracket? Then use TRUE, but ensure your first column is sorted ascending. If you’re ever unsure, use FALSE – it’s safer and more predictable. You’ll get #N/A when there’s no match, which is easier to handle than a wrong result.
Common Problems and Fixes
Here are frequent issues people hit with the fourth argument:
- #N/A with FALSE – No exact match exists. Check for extra spaces, non-printable characters, or number stored as text. Use
TRIMorCLEANon the lookup value. - Wrong result with TRUE – First column not sorted ascending. Sort it, or switch to FALSE.
- Forgot the argument – Excel defaults to TRUE, so if you omit it, you’re in approximate mode. Always type FALSE explicitly if you want exact.
- Lookup column isn’t the leftmost – VLOOKUP can only look in the first column of the table. If your key is in column B, you’ll need to reorder or use INDEX/MATCH instead.
Alternatives to VLOOKUP
Modern Excel offers better options. XLOOKUP (Excel 2021/365) defaults to exact match and lets you specify the lookup column independently. For example, =XLOOKUP(100, B2:B10, C2:C10) finds 100 in B and returns the matching C. It also handles approximate match with the fifth argument. For older versions, INDEX/MATCH is a flexible alternative: =INDEX(C2:C10, MATCH(100, B2:B10, 0)) – the 0 means exact match, 1 for approximate (sorted ascending), -1 for approximate (sorted descending).
Frequently Asked Questions
Does VLOOKUP default to TRUE if I omit the last argument?
Yes. In all versions of Excel, if you leave out the fourth argument, it’s treated as TRUE (approximate match). This is a common source of errors, so always include FALSE or TRUE explicitly.
Can I use TRUE with unsorted data if I only need a close match?
No. Approximate match assumes sorted data. On unsorted data, results are unreliable. If you need a close match without sorting, use XLOOKUP with match_mode set to 1 (exact or next smaller) or 2 (exact or next larger), which doesn’t require sorting.
Why does VLOOKUP return the previous row instead of the next one?
Because approximate match finds the largest value less than or equal to your lookup value. That’s by design. If you want the next larger value, you need to sort descending and use TRUE? Actually, VLOOKUP doesn’t support descending with TRUE reliably; use XLOOKUP with match_mode 2 or INDEX/MATCH with -1.
Is there a way to make VLOOKUP case-sensitive?
No, VLOOKUP is case-insensitive. If you need case-sensitive matching, use XLOOKUP with match_mode 0 and search_mode 2 (case-sensitive) in Excel 365, or use INDEX/MATCH with EXACT in array form.
What if my lookup value is a number stored as text?
That can cause #N/A with FALSE. Convert the lookup value to text with TEXT or use VLOOKUP(TEXT(value,"0"), ...), or ensure both are the same data type. A quick fix is to multiply the lookup value by 1 if it’s text, or use VALUE.
Practical Example: Tax Bracket Lookup
Let’s say you have a tax table in A2:B5 with income thresholds and rates:
A2: 0 B2: 10%
A3: 10000 B3: 12%
A4: 40000 B4: 22%
A5: 85000 B5: 24%
To find the rate for an income of 50,000, use =VLOOKUP(50000, A2:B5, 2, TRUE). Since 50,000 is between 40,000 and 85,000, the largest value ≤ 50,000 is 40,000, so it returns 22%. This works because the thresholds are sorted ascending. If you used FALSE, you’d get #N/A because 50,000 isn’t exactly in the list.
Remember: the fourth argument is powerful but dangerous. Use FALSE for exact lookups, and reserve TRUE for sorted range lookups. When in doubt, FALSE is the safe choice.
Related
- Select Each Cell in a Range: Excel Steps
- How to Apply Data Entry: Step-by-Step Guide
- Google Sheets Percentile Rank: How to Use PERCENTRANK
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Split Numbers and Text in Excel With FormulasYes. With mixed values such as AB-123 in A2, Excel for Microsoft 365 can extract the digits with…
- Calculate Age in Excel With a Birthday Date FormulaTo calculate someone’s age in completed years in Excel, enter their birthday as a real date in A2,…
- VLOOKUP Errors in Excel: Causes, Checks, and FixesIf VLOOKUP returns an error, first check that the lookup value is in the leftmost column of the…
- COUNTIF Excel Text in Cell: Exact or Partial MatchesTo count cells that contain particular text anywhere in their contents, use =COUNTIF(A2:A100,"*apple*"); the asterisks allow any characters…
- Excel PivotTable Report Filter: Setup and ExamplesA PivotTable report filter lets you show only the records that match a chosen item, without changing or…
- Excel Formula to Randomize a List (With Examples)To randomize a list in Microsoft 365, enter =SORTBY(A2:A20,RANDARRAY(ROWS(A2:A20))) in an empty cell, replacing A2:A20 with your list’s…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.