Note details

How to Use VLOOKUP in Excel (free file included)

BY mq0sg
July 14, 2025
Public
Private
6248 views

VLOOKUP in Excel: The Ultimate Guide

Objective

This is a class note summarizing the comprehensive tutorial on using the VLOOKUP function in Excel, including its usage, syntax, common errors, and troubleshooting tips.


Key Points

1. What is VLOOKUP?

  • VLOOKUP stands for "Vertical Lookup."
  • It searches for a value in the first column of a range (table array) and returns a value in the same row from a specified column.
  • VLOOKUP is available in all versions of Excel.
  • Commonly used to automate data analysis, saving time and reducing errors.

2. VLOOKUP Syntax

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
  • lookup_value: The value you want to search for.
  • table_array: The range of cells that contains the data.
  • col_index_num: The column number in the table from which to retrieve the value.
  • range_lookup: Optional. Use FALSE (or 0) for exact match, TRUE (or default) for approximate match.

3. Steps to Use VLOOKUP

Exact Match Example

  • Used to find related data from another area and bring it over.
  • Select the cell for the answer → Enter =VLOOKUP( → Fill out the arguments:
    1. Lookup value (e.g., customer name)
    2. Table array (must include both lookup value and result column, with lookup column on the left)
    3. Column index number (e.g., 3 for profession)
    4. Set last argument to FALSE or 0 for exact match
  • To copy the formula down, use $ or F4 to fix the table array range.

Lookup from Another Sheet

  • Ensure the lookup column is left of the result column.
  • Reference the table array from the other sheet.
  • Remember to fix the range and set FALSE or 0 for an exact match.

Approximate Match Example (Grades)

  • Useful for number ranges (e.g., grading).
  • Default behavior (or using TRUE) is for approximate match—returns the closest lower value.
  • Ensure your lookup range (scores) is sorted in ascending order.

4. Common Mistakes & How to Fix

  • Forgetting FALSE/0 for Exact Match:

    • If not specified, Excel defaults to an approximate match, possibly leading to incorrect results.
    • Always use FALSE or 0 to ensure an exact match when needed.
  • Incorrect Range Referencing:

    • If the formula’s range shifts when copied down, use F4 to fix the range.
  • Lookup Column Not Leftmost:

    • VLOOKUP requires the lookup column to be on the left side of the result column. Adjust your table or use newer functions in Excel (like XLOOKUP).
  • Spaces in Data:

    • Extra spaces can prevent a match.
    • Use the TRIM function on lookup values to handle additional spaces.
  • #N/A Errors:

    • Occur when a value isn’t found or table setup is incorrect.
    • Handle with IFNA or IFERROR to display a custom message, e.g.:
      =IFNA(VLOOKUP(...), "Not found")
      

5. Best Practices

  • For approximate matches, always sort the lookup range in ascending order.
  • Use FALSE or 0 for exact matches unless you explicitly need an approximate match.
  • Use absolute references (F4) for the table array to prevent errors when copying formulas.
  • If using Office 365 or a later version, consider using XLOOKUP for greater flexibility (no left-hand restriction).

Common Error Troubleshooting

| Error | Possible Cause | Solution | |-------------------|----------------------------------------|-------------------------------------------------| | Wrong result | Omitted FALSE/0 for exact match | Add FALSE/0 as last argument | | Shifting range | Range not fixed | Use F4 to fix table array | | #N/A error | Value not found or wrong table setup | Check table, use IFNA(IFERROR) for fallback | | Wrong columns | Lookup column not on left | Swap columns or use XLOOKUP | | Extra spaces | Hidden spaces in data | Use TRIM on lookup value |


Pro Tip

  • XLOOKUP (Excel for Office 365 and above): Easier to use, supports look left/right, more flexible. Consider switching if available.

Further Learning

  • Check video or channel description for links to in-depth tutorials on XLOOKUP and other Excel tips.

Actions After Learning

  1. Practice using VLOOKUP with sample data.
  2. Remember to lock your ranges and specify match type.
  3. Explore XLOOKUP if using a recent Excel version.

Call to Action

If you found these notes helpful, consider subscribing to the channel for more Excel tips and tricks!

    How to Use VLOOKUP in Excel (free file included)