VLOOKUP in Google Sheets: Syntax, Examples and Differences from Excel

VLOOKUP in Google Sheets searches the first column of a table range for a value and returns data from a column you specify. The syntax is =VLOOKUP(search_key, range, index, is_sorted). Use FALSE as the fourth argument for an exact match. It works in the browser with live collaboration and no save cycle required.

  • Key Takeaway 1: The fourth argument in Google Sheets VLOOKUP is is_sorted, not range_lookup as in Excel. Use FALSE for an exact match in almost every real-world scenario.
  • Key Takeaway 2: You can pull data from a completely separate Google Sheets file using IMPORTRANGE combined with VLOOKUP, something Excel cannot do natively without Power Query.
  • Key Takeaway 3: Google Sheets added XLOOKUP in 2023, and it handles left-side lookups and missing values more cleanly than VLOOKUP.
  • Key Takeaway 4: The most common cause of a #N/A error is a data-type mismatch: your search key is stored as text while the lookup column contains numbers, or vice versa.
  • Key Takeaway 5: Data skills like VLOOKUP transfer directly into analytics and security work. SOC analysts filter log tables and build dashboards using the same lookup logic every day.

VLOOKUP Syntax in Google Sheets

The VLOOKUP Google Sheets formula has four arguments. Three are required; one is optional but should almost always be written explicitly to avoid errors.

Argument What it means Example value
search_key The value you are looking for A2 (a student roll number)
range The table to search. The first column must contain the search key. B2:E100
index Which column in the range to return (counted from 1) 3 (third column of the range)
is_sorted TRUE for approximate match, FALSE for exact match FALSE

How to Use VLOOKUP in Google Sheets: A Practical Example

Say you have a sheet where column A holds student roll numbers (101, 102, 103…) and column C holds their city. To find the city for roll number 105, you write:

=VLOOKUP(105, A2:C200, 3, FALSE)

The formula scans column A for 105, then returns whatever is in the third column of the range A2:C200, which is column C. This VLOOKUP Google Sheets example covers the most common real-world use case: exact ID matching. Change FALSE to TRUE only when your first column is sorted in ascending order and you need a grade-band or salary-bracket lookup.

HR teams at Bengaluru startups use this exact pattern to match employee IDs against payroll tables. Finance analysts at Mumbai firms use it to reconcile invoice numbers across two sheets. The logic is identical in every case.

Locking the Range with Absolute References

One of the most common mistakes beginners make is dragging a VLOOKUP formula down a column without locking the range. When you copy the formula from row 2 to row 10, the range shifts too and you end up looking at the wrong rows.

Fix it by pressing F4 after selecting the range, which adds dollar signs: =VLOOKUP(A2, $B$2:$E$100, 3, FALSE). The range stays fixed no matter where you paste the formula. This is basic, but it saves hours of debugging on real projects, especially when you are working on data analytics projects with hundreds of rows.

Using ARRAYFORMULA to Apply VLOOKUP Across a Column

If you want the VLOOKUP Google Sheets formula to fill an entire column automatically without dragging, wrap it in ARRAYFORMULA:

=ARRAYFORMULA(VLOOKUP(A2:A100, $D$2:$F$200, 2, FALSE))

You write it once in the first cell and it populates every row in the output column. This is a Google Sheets-specific feature with no direct one-cell equivalent in standard Excel.

Cross-Sheet and IMPORTRANGE Lookups

Google Sheets lets you use the VLOOKUP lookup function to pull data from a different sheet within the same file, or from an entirely separate Google Sheets file. These are two distinct techniques and they work differently.

Looking Up Data from Another Sheet in the Same File

Reference another sheet by putting its name followed by an exclamation mark before the range:

=VLOOKUP(A2, StudentDB!$A$2:$C$500, 3, FALSE)

If the sheet name has spaces, wrap it in single quotes: ‘Student DB’!$A$2:$C$500. This is clean and fast because both sheets live in the same file.

Pulling Data from a Separate Google Sheets File with IMPORTRANGE

IMPORTRANGE pulls a range from a completely different Google Sheets file using its URL. You can then nest it inside VLOOKUP:

=VLOOKUP(A2, IMPORTRANGE(“https://docs.google.com/spreadsheets/d/FILE_ID/”, “Sheet1!A:C”), 3, FALSE)

The first time you use IMPORTRANGE, Sheets asks you to grant access. Click “Allow access” once and the connection persists. After that, any change in the source file reflects automatically in your lookup.

A realistic use case: a placement cell at a college in Pune maintains a master Google Sheet of company offers. Students in a separate sheet use VLOOKUP Google Sheets with IMPORTRANGE to check their offer status against that master file, without the placement officer ever sharing edit access. Edtech platforms across India running on Google Workspace use the same pattern to sync student progress data across departments.

Performance Note

IMPORTRANGE recalculates on every sheet open and on a timed interval. If your source file is large (10,000 or more rows), the initial load can be slow. In those cases, use Google Sheets’ built-in QUERY function to filter before passing data to VLOOKUP, which reduces the data volume being imported.

VLOOKUP Google Sheets vs Excel: Key Differences

The core logic of the VLOOKUP lookup function is the same in both tools. The differences are in naming, cloud behaviour, and what each platform offers beyond the basic formula.

Feature Google Sheets Microsoft Excel
Fourth argument name is_sorted (TRUE/FALSE) range_lookup (TRUE/FALSE)
Default if omitted TRUE (approximate match) TRUE (approximate match)
Cross-file lookup IMPORTRANGE (native, free) Power Query or external data connections
ARRAYFORMULA support Yes, native (introduced 2006) No direct equivalent; use Ctrl+Shift+Enter arrays
XLOOKUP availability Yes (rolled out 2023, free to all users) Yes (Microsoft 365 and Excel 2021+)
Real-time collaboration Yes, live browser updates Yes, but requires OneDrive or SharePoint
Offline use Limited (Chrome app mode) Full offline support
Active user base (2023) 3 billion+ (Google, 2023) 1.5 billion+ (Microsoft, 2023)

The naming difference catches people constantly. In Excel, the argument is called range_lookup. In Google Sheets, it is is_sorted. Both mean the same thing logically, but the Google Sheets name is more descriptive: it literally asks whether your first column is sorted.

Google Workspace is used by over 3 billion users worldwide, according to Google’s own reporting from 2023. With that scale, a large number of working professionals, including aspiring analysts figuring out the difference between a data analyst vs data scientist, are doing their first lookups in Sheets rather than Excel. Knowing both tools matters if you are preparing for data analyst interview questions, because interviewers routinely ask about both environments.

Alternatives: XLOOKUP and FILTER

VLOOKUP has two structural limitations. First, it can only look to the right: the search column must always be the leftmost column in your range. Second, it returns the first match and ignores duplicates. XLOOKUP and FILTER both solve these problems.

XLOOKUP in Google Sheets

Google Sheets added XLOOKUP in 2023. The syntax is:

=XLOOKUP(search_key, lookup_range, return_range, [if_not_found], [match_mode], [search_mode])

You separate the lookup column and the return column, so the return column can be anywhere, including to the left of the search column. The if_not_found argument lets you return a custom message like “Not found” instead of a raw #N/A error, which is cleaner for dashboards shared with non-technical stakeholders.

FILTER as a Multi-Result Alternative

When you need all matching rows, not just the first one, FILTER is the right spreadsheet formula:

=FILTER(A2:C100, A2:A100=105)

This returns every row where column A equals 105. VLOOKUP would only return the first match. If you are building anything that involves multiple entries per ID, like attendance records or sales transactions, FILTER is more accurate. The QUERY function goes further still, letting you write SQL-like statements directly in a cell to filter, sort and aggregate data from a range.

If you want to go beyond spreadsheet formulas entirely, tools like Pandas and NumPy give you the same lookup and merge logic in Python, with far more power for large datasets. That is worth knowing if you are planning to grow your skills toward a data or analytics role.

The demand is real. According to LinkedIn’s Jobs on the Rise 2024 report, data analyst roles continue to feature among the fastest-growing job categories in India, with spreadsheet and data wrangling skills listed as baseline requirements by the majority of employers. NASSCOM’s 2023 State of Technology report projected that India would need over 11 million skilled tech workers by 2026, with data skills at the core of that gap. If you are building toward those roles, spreadsheet proficiency is the floor, not the ceiling. Check out highest paying tech skills to see where data expertise sits in the salary picture.

For structured learning without spending money upfront, there are solid options covered in our guide to best free online learning platforms that include Google Sheets and spreadsheet analytics courses.

Frequently Asked Questions

How do I use VLOOKUP in Google Sheets?

Type =VLOOKUP(search_key, range, index, FALSE) into a cell. Replace search_key with the value or cell you are looking for, range with the table that contains your data (first column must hold the search key), and index with the column number index to return. Always include FALSE as the fourth argument unless your data is sorted and you need an approximate match.

Can VLOOKUP in Google Sheets pull from another file?

Yes. Wrap IMPORTRANGE around the source file URL and use it as the range argument inside VLOOKUP: =VLOOKUP(A2, IMPORTRANGE(“URL”, “Sheet1!A:C”), 3, FALSE). You need to grant access the first time. After that, the lookup updates automatically whenever the source file changes, which makes it ideal for shared team workflows.

Does Google Sheets have XLOOKUP?

Yes, Google Sheets added XLOOKUP in 2023. It is available to all users at no extra cost. XLOOKUP is more flexible than VLOOKUP because it separates the lookup column from the return column, supports left-side lookups, and lets you define a custom message for missing values instead of showing a raw error.

Why does my VLOOKUP Google Sheets formula return #N/A?

The most common reason is a data-type mismatch: your search key is text (like “105”) but the lookup column stores the same value as a number, or the other way around. Check by selecting a cell in each column and looking at the alignment: text aligns left by default, numbers align right. Also check for hidden spaces using the TRIM function, and confirm the search key exists in the first column of your range.

Is VLOOKUP the same in Google Sheets and Excel?

The logic is identical, but the fourth argument is named differently: is_sorted in Google Sheets, range_lookup in Excel. Both default to TRUE (approximate match) if omitted, which is why omitting it causes unexpected results in both tools. Google Sheets also supports IMPORTRANGE and ARRAYFORMULA natively, which Excel does not replicate with built-in functions alone.

Where to go from here: you now know how VLOOKUP in Google Sheets works, how to pull data across files with IMPORTRANGE, and when XLOOKUP or FILTER is the smarter choice. Here are three concrete next steps to take this week:

  1. Open a real Google Sheet you already use, pick two related tables, and write a VLOOKUP that joins them. Then rewrite it as an XLOOKUP and compare the results.
  2. Practice a cross-file lookup using IMPORTRANGE with a classmate or colleague. Share a source sheet, grant access, and have them query it. That one exercise covers collaboration skills that come up in real jobs.
  3. If you want to apply these data skills in a security or analytics career, explore the EC-Council Certified SOC Analyst course at 3.0 University. SOC analysts filter log tables, query event data and build detection dashboards every shift, and the lookup logic you have learned here maps directly onto that work. Browse the full 3.0 University course catalogue to find the certification that fits where you are headed.

Last updated: October 2026. Reviewed by the 3University editorial team.

We create, review, and maintain educational content covering Cybersecurity, Ethical Hacking, Artificial Intelligence, Blockchain, Web3, and emerging technologies.

Read More Articles