Contact

VLOOKUP Function in Google Sheets: Formula, Examples & Troubleshooting

Lookup Intermediate Google Sheets

Learn the VLOOKUP formula in Google Sheets: find a value in the first table column and return another column, with reproducible examples, expected answers and compatibility cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: VLOOKUP searches the first column of a table and returns a selected column from the first matched row. Use FALSE for exact matching on identifiers. TRUE or an omitted final argument uses ascending sorted boundaries and approximate matching.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official VLOOKUP reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and original practice data

=VLOOKUP(search_key, range, index, [is_sorted])

Square brackets mark optional arguments and are not typed. Examples use English function names and comma separators; review File → Settings → Locale when comparing punctuation-sensitive formulas. Enter the original data below in A1:F9, with the Row column used only as an explanatory label. Amount and Units are numbers; other fields are text. Keep outputs outside the input table.

Row A · Item B · Team C · Status D · Amount E · Units F · Agent
1 Item Team Status Amount Units Agent
2 Pen East Paid 120 12 Ana
3 Pad West Pending 75 5 Bo
4 Box East Paid 210 7 Ana
5 Tape North Paid 90 0 Cy
6 Folder West Paid 150 3 Bo
7 Pen East Pending 60 8 Dee
8 Pad West Paid 125 12 Ana
9 Box North Pending 80 4 Cy

Two original worked examples

=VLOOKUP("Pad",A2:D9,4,FALSE)
=VLOOKUP("Box",A2:D9,4,FALSE)

Expected results are 75 and 210. Pad and Box each occur twice, but the first matching row supplies the answer. Google’s dedicated help explicitly describes that first-match rule.

For comparison, both Pad amounts total 200, from 75+125. VLOOKUP does not aggregate the matching records. Use SUMIF when a total is the intended answer, or a separate all-matches report when every record is needed.

Argument scope: worksheet tables and relative columns

The key is searched only in the first column of range. The required return index counts columns from one within that same range. Thus index 4 selects Amount from A2:D9; it is not the worksheet column number independent of the range.

The help page also contains a separate BigQuery section. These examples use ordinary worksheet ranges, not connected-table column syntax. Do not combine the two interfaces when copying a formula.

An index of 1 can return the matched key itself. A negative index is not a way to look left. Use XLOOKUP or aligned INDEX/MATCH ranges when the desired output lies to the left of the key column.

Advanced example: distinguish an absent item from a zero value

On a separate sheet enter A1:C5:

Code Description Price
K-10 Clip 9
K-20 Pad 16
K-30 Box 28
K-40 Sample 0
=VLOOKUP("K-20",A2:C5,3,FALSE)
=VLOOKUP("K-40",A2:C5,3,FALSE)
=IFNA(VLOOKUP("K-99",A2:C5,3,FALSE),"Missing code")

Expected results are 16, 0 and Missing code. Zero is a real stored price in this dataset. The absent K-99 lookup would otherwise return the documented #N/A error.

IFNA can also replace a #N/A already stored in a matched result cell. It does not, by itself, prove that the key was absent. Keep that distinction in mind before using the fallback as a data-quality diagnosis.

For requested codes in E2:E4, enter =VLOOKUP(E2,$A$2:$C$5,3,FALSE) in F2 and fill down. Absolute table references keep the source range fixed. A header-driven version is =VLOOKUP("K-30",A2:C5,MATCH("Price",A1:C1,0),FALSE), where MATCH returns 3 and the final result is 28.

Advanced example: combine two controlled criteria

Return to the original order table. In H2 enter =A2&"|"&C2 and in I2 enter =D2; fill both through row 9. The helper key combines Item and Status, with the amount immediately to its right.

=VLOOKUP("Pad|Paid",H2:I9,2,FALSE)
=VLOOKUP("Pen|Pending",H2:I9,2,FALSE)

Expected results are 125 and 60. This avoids mistakenly selecting the first Pad or Pen regardless of status. If a combined key is still duplicated, the first-match rule still applies.

The separator is safe here because neither source field contains a vertical bar. Blind concatenation can collide: AB plus C and A plus BC both create ABC. A helper key is only as reliable as its explicit encoding and uniqueness rule.

Advanced example: approximate numeric thresholds

On another sheet, enter ascending boundaries 0,10,20,50 in A2:A5 and labels Starter,Standard,Plus,Bulk in B2:B5.

=VLOOKUP(35,A2:B5,2,TRUE)
=VLOOKUP(35,A2:B5,2)

Both return expected Plus, using boundary 20, the largest boundary no greater than 35. Query 50 or 75 returns Bulk. Query -1 is below the smallest boundary and has documented #N/A; exact-mode query 35 also has #N/A because that key is absent.

This is not a nearest-distance calculation: 35 is equally distant from 20 and 50, and the lower boundary is selected. Unsorted approximate results are not certified.

Wildcards and documented errors

Google explicitly supports ? for one character and * for any sequence in FALSE mode. In the unique-code table, =VLOOKUP("K-3?",A2:C5,3,FALSE) has expected result 28. This is wildcard matching, not a regular expression.

For the three-column table, index 4 has documented #REF!, and index 0 has documented #VALUE!. The main argument table permits the last column; a later troubleshooting sentence says “smaller than” the maximum, so follow the explicit valid-index range rather than treating the last column as forbidden.

Leading or trailing spaces and number-versus-text keys can change a match. Preserve the original inputs when normalizing them, and do not assume a display-format change alone has validated their stored types.

Product-specific verification

Related guides already published for this function: Microsoft Excel | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric | Calligra Sheets

A corresponding guide establishes separate documentation, not guaranteed identical defaults or file-conversion behavior. See the function comparison tool and editorial testing standards.

The full manuscript, original source table and all original formulas were reviewed on October 14, 2026. New outputs were independently modeled from explicit inputs. The previously approved availability/history section is retained exactly. No native Google Sheets execution or complete type/error matrix is claimed.