In Google Sheets, LOOKUP is best for a sorted one-dimensional range when an approximate match is acceptable; VLOOKUP searches the first column of a table and can return a value from a column to its right. For a dependable exact match, set VLOOKUP’s final argument to FALSE; for a more flexible modern option, consider XLOOKUP.
What “lookup” means in Google Sheets
“Lookup” can mean the general task of finding a record by a key, or it can mean the specific Google Sheets function named LOOKUP. That distinction matters: VLOOKUP is also a lookup function, but it follows different rules from the standalone LOOKUP formula.
For example, a product list might have an item code, name, and price. A lookup formula searches for the item code and returns the associated name or price. The key is the value you search for; the lookup range contains possible keys; and the result range or table column contains the information you want back.
The names describe the search direction in VLOOKUP: the “V” stands for vertical, meaning it searches down the first column of a range. LOOKUP is not limited to a vertical table, but it is designed for a one-row or one-column search range rather than a multi-column table with a numbered return column.
How the LOOKUP function works
Google Sheets has two common forms of LOOKUP: one searches a single row or column and returns a corresponding item from that same range; the other searches one range and returns the item in the same position from a second range. In either case, LOOKUP is an approximate-match function, and its search values must be sorted in ascending order for reliable results.
With IDs 101, 104, 110, 117, and 120 in A2:A6 and corresponding categories in C2:C6, enter a search value of 115 in E2. The formula =LOOKUP(E2,A2:A6,C2:C6) returns the category paired with 110, the greatest ID that is less than or equal to 115. It does not return “not found” just because 115 is absent.
That behavior can be useful when the key represents a threshold rather than a unique record. For example, a rate table might assign one rate to values from 0 through 9, another from 10 through 19, and another from 20 onward. A sorted LOOKUP range can return the category for the closest lower threshold. It is risky for product IDs or names when you expect an exact match: a misspelled or missing key can produce a plausible but incorrect result.
How VLOOKUP works
VLOOKUP searches the first column of a rectangular range, then returns a value from another column in the same row. Its basic syntax is VLOOKUP(search_key, range, index, [is_sorted]). The index is a number counting columns from the left edge of the selected range: 1 means its first column, 2 the next, and so on.
Suppose A2:A6 contains product codes, B2:B6 contains product names, and C2:C6 contains prices. With a code in E2, =VLOOKUP(E2,A2:C6,3,FALSE) searches column A and returns the price from column C for an exact match. If E2 contains a code found in row 4, the formula returns the value in C4.
The final argument is important. FALSE requests an exact match and does not require the first column to be sorted. TRUE, or leaving the argument out, requests approximate matching; in that mode, the first column must be sorted ascending, and the function returns the closest value that is less than or equal to the search key. Because the default is approximate, omitting the argument is a frequent source of surprising results.
LOOKUP and VLOOKUP side by side
- Search shape: LOOKUP uses a one-row or one-column search range. VLOOKUP uses a rectangular table and searches its first column.
- Return position: LOOKUP pairs values by position in a result range, if supplied. VLOOKUP uses a numeric column index counted from the table’s left edge.
- Match behavior: LOOKUP is approximate and relies on ascending sort order. VLOOKUP can use exact matching with
FALSEor approximate matching withTRUE. - Return direction: VLOOKUP returns from a column to the right of the search column. LOOKUP can return a corresponding value from a separate range, so the result range need not be to the right.
- Typical purpose: LOOKUP suits sorted thresholds and compact one-dimensional ranges. VLOOKUP suits familiar table-based searches, especially exact key-to-detail matches.
Neither function automatically resolves duplicate keys. If the search value appears more than once, VLOOKUP returns the first matching row it encounters; LOOKUP’s approximate behavior instead depends on the sorted values and position. If duplicates are meaningful, decide which record should win or use a method that returns multiple matches.
Which function should you choose?
Choose based on the kind of data and the match you actually need, not just on which formula looks shorter. For an exact product-code, employee-ID, or order-number search in a conventional table, VLOOKUP with FALSE is a straightforward choice. Make the first column of the range the key column and count the return column carefully.
Use LOOKUP when your search values are ordered and you deliberately want the nearest lower threshold. Common examples include grade bands, shipping brackets, or effective ranges that assign a label according to the highest boundary not exceeding the input. Confirm that the range is sorted ascending and that every possible input belongs to the intended band.
Consider XLOOKUP when you want an exact match by default, a separate lookup range and result range, or a return column to the left of the key. In Google Sheets, for example, if codes are in C2:C6 and names in A2:A6, and the code to find is in E2, =XLOOKUP(E2,C2:C6,A2:A6,"Not found") searches the codes and returns the matching name, or “Not found” when no match exists. XLOOKUP is available in Google Sheets, though its availability and behavior may differ in other spreadsheet applications.
Common errors and how to avoid them
The most consequential mistake with VLOOKUP is leaving off its final argument. If you need a precise identifier match, explicitly use FALSE. A formula that uses approximate mode on an unsorted key column can return an unexpected answer rather than clearly signaling that the data is out of order.
Check these details when a lookup fails or returns the wrong record:
- Range and index: Make sure the key is in the first column of the VLOOKUP range, and that the index points to the intended return column. The index is relative to the selected range, not the worksheet’s column letter.
- Sorting: Sort ascending before using LOOKUP or approximate VLOOKUP. Sorting only the key column without its associated rows can break the relationship between keys and results; sort the full table together.
- Data types: A number stored as text may not match a numeric value as expected. Check for extra spaces, inconsistent formatting, or IDs imported with different types.
- Missing keys: Exact VLOOKUP usually reports
#N/Awhen no match is found. You can handle that deliberately with=IFNA(VLOOKUP(E2,A2:C6,3,FALSE),"Not found"), assuming the key is in E2 and the table is A2:C6. - Column changes: VLOOKUP’s index is a number, so changes to the table layout can make a formula return a different field than intended. Review formulas after inserting or rearranging columns.
A useful check is to test the formula with one key you know exists and one that does not. For approximate functions, also test values below the smallest key, between two keys, and above the largest key. This makes boundary behavior easier to spot before you rely on the result in a larger sheet.
Alternatives when neither is a good fit
XLOOKUP is often the clearest single-formula alternative for exact lookups because the lookup and return ranges are specified separately; it can return values from either side of the key. INDEX with MATCH is another flexible combination, especially in older spreadsheet workflows or when you want to separate the position search from the returned value. In Google Sheets, a filtered result can be more suitable when one key matches several rows and you need every matching record rather than just one.
HLOOKUP is the horizontal counterpart to VLOOKUP: it searches the top row of a range and returns a value from a specified row beneath it. It can suit a table whose keys are arranged across columns, but transposing the data or using XLOOKUP may make the layout easier to maintain. For a simple exact lookup, avoid choosing a more complicated formula unless its extra flexibility solves a real requirement.
Frequently Asked Questions
Is LOOKUP the same as VLOOKUP in Google Sheets?
No. They are separate functions with different layouts and match behavior. LOOKUP works with a single row or column and uses approximate matching; VLOOKUP searches the first column of a rectangular table and can perform an exact match when its final argument is FALSE.
Does VLOOKUP in Google Sheets default to exact match?
No. If you omit the optional final argument, VLOOKUP uses approximate matching. For identifiers and other values that must match precisely, add FALSE explicitly.
Can LOOKUP find an exact match?
LOOKUP is built around approximate matching, returning the closest lower value when the exact search key is absent. If exact matching is essential, use VLOOKUP with FALSE or use XLOOKUP with its default exact-match behavior.
Can VLOOKUP return a value to the left of the key?
No. VLOOKUP searches the first column of its selected range and returns from a column to its right. Use XLOOKUP with separate lookup and result ranges, or use INDEX and MATCH, when the result is to the left.
Why does VLOOKUP return the wrong value?
Common causes include omitting FALSE, using approximate matching on unsorted data, selecting the wrong column index, or having inconsistent text and number formats. Check the key column, range boundaries, and final argument first.
Which is better for beginners?
For a standard exact-match table, VLOOKUP with FALSE is easy to recognize and widely understood. If you are building a new sheet and want a separate return range or a result to the left, XLOOKUP may be easier to adapt. For sorted thresholds, LOOKUP remains useful when its approximate behavior is intentional.
Related
- Google Sheets Join Text in Cells: Formulas, Tips, and Fixes
- Google Sheets JOIN Function: Syntax, Examples, and Tips
- Google Sheets Jira Plugin: Setup, Features, and Options Guide
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Data Analysis in Excel: Methods, Steps, and ExamplesYes—Excel can analyze data by cleaning and organizing it, calculating summaries with formulas, and revealing patterns with PivotTables…
- Excel Page Break Not Moving? Causes and FixesIf an Excel page break will not move, first open the worksheet in desktop Excel and choose View…
- Transpose Shortcut in Excel: Paste Rows as ColumnsIn Excel for Microsoft 365 on Windows, copy the cells, select an empty destination, and press Ctrl+Alt+V, then…
- Excel Slicer: Connect One Slicer to Multiple PivotTablesYes. In Excel for Microsoft 365 on Windows, select the slicer, open the Slicer tab, choose Report Connections…
- Excel Shortcut for Filtering a Table: Keys and TipsIn Excel for Microsoft 365 on Windows, press Ctrl+Shift+L to turn filter buttons on or off for the…
- VLOOKUP in Google Sheets: How to Use ItTo use VLOOKUP in Google Sheets, enter =VLOOKUP(search_key, range, index, FALSE) in the cell where you want the…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.