---
title: "VLOOKUP function in Excel: syntax and examples | PracticeExcel"
description: "How to use VLOOKUP in Excel and Google Sheets: exact and approximate match, #N/A and common mistakes. Live drills."
canonical_url: "https://practiceexcelonline.com/functions/vlookup"
locale: en
meta:
  "og:description": "How to use VLOOKUP in Excel and Google Sheets: exact and approximate match, #N/A and common mistakes. Live drills."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VkxPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBWTE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBleGFjdCBhbmQgYXBwcm94aW1hdGUgbWF0Y2gsICNOL0EgYW5kIGNvbW1vbiBtaXN0YWtlcy4gTGl2ZSBkcmlsbHMu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VkxPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCBjb2xfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvdmxvb2t1cCI%2Cs_W0km26NNQRXVNZ1c.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "VLOOKUP function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VkxPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBWTE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBleGFjdCBhbmQgYXBwcm94aW1hdGUgbWF0Y2gsICNOL0EgYW5kIGNvbW1vbiBtaXN0YWtlcy4gTGl2ZSBkcmlsbHMu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VkxPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCBjb2xfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvdmxvb2t1cCI%2Cs_W0km26NNQRXVNZ1c.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The VLOOKUP function**

Looks for a value in the first column of a table and returns the value from another column in the same row.

=

VLOOKUP(

## **Syntax**

```
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
```

<dl><dt>**lookup_value **</dt>
<dd>The value to find in the first column.</dd>
<dt>**table_array **</dt>
<dd>The table, starting with the column to search.</dd>
<dt>**col_index_num **</dt>
<dd>Which column of the table to return, counting from 1.</dd>
<dt>**range_lookup **(optional)</dt>
<dd>FALSE for an exact match. TRUE or left out finds the closest smaller value in a sorted column.</dd></dl>

## **Examples**

D1`=VLOOKUP(<sup>1</sup>"Pear",<sup>2</sup>A2:B4,<sup>3</sup>2,<sup>4</sup>FALSE)`

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Fruit | Price |  | **6** |
| 2 | Apple | 4 |  | |
| 3 | Pear | 6 |  | |
| 4 | Plum | 5 |  | |

**In plain words:** Find <sup>1</sup>Pear in the first column of <sup>2</sup>A2:B4 and return the value <sup>3</sup>in the table's second column, <sup>4</sup>only on an exact match.

D1=VLOOKUP("Kiwi",A2:B4,2,FALSE)

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Fruit | Price |  | **#N/A** |
| 2 | Apple | 4 |  | |
| 3 | Pear | 6 |  | |
| 4 | Plum | 5 |  | |

## **Practice VLOOKUP**

- [**1****Look up a price with VLOOKUP**→](https://practiceexcelonline.com/practice/vlookup/vlookup-exact-match)
- [**2****VLOOKUP a number key**→](https://practiceexcelonline.com/practice/vlookup/vlookup-number-id)
- [**3****VLOOKUP with an approximate match**→](https://practiceexcelonline.com/practice/vlookup/vlookup-approximate-match)
- [**4****Bring prices into an order list**→](https://practiceexcelonline.com/practice/vlookup/vlookup-fill-down-locked-table)

## **Read the guide**

- [**Excel for job interviews: what gets tested and how to prepare**](https://practiceexcelonline.com/learn/excel-for-job-interviews)
- [**Free Excel course online: learn Excel from your first formula to job-ready**](https://practiceexcelonline.com/learn/how-to-learn-excel)
- [**VLOOKUP vs XLOOKUP vs INDEX MATCH: which lookup to use**](https://practiceexcelonline.com/learn/vlookup-vs-xlookup-vs-index-match)

## **Questions**

<details>

<summary>

### Why does VLOOKUP return #N/A?

</summary>

The value is not in the first column of the table. Check for extra spaces, numbers stored as text, or a missing FALSE at the end.

</details>

<details>

<summary>

### Can VLOOKUP look to the left?

</summary>

No. It only returns columns to the right of the one it searches. Use XLOOKUP or INDEX and MATCH instead.

</details>

## **Related functions**

- [**XLOOKUP**](https://practiceexcelonline.com/functions/xlookup)
- [**INDEX**](https://practiceexcelonline.com/functions/index)
- [**MATCH**](https://practiceexcelonline.com/functions/match)
- [**HLOOKUP**](https://practiceexcelonline.com/functions/hlookup)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/vlookup#webpage","description":"How to use VLOOKUP in Excel and Google Sheets: exact and approximate match, #N/A and common mistakes. Live drills.","name":"VLOOKUP function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/vlookup","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/vlookup#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/functions/vlookup#/schema/question/1"},{"@id":"https://practiceexcelonline.com/functions/vlookup#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/vlookup"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/vlookup#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"VLOOKUP function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/vlookup#article","description":"How to use VLOOKUP in Excel and Google Sheets: exact and approximate match, #N/A and common mistakes. Live drills.","headline":"VLOOKUP function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VkxPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBWTE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBleGFjdCBhbmQgYXBwcm94aW1hdGUgbWF0Y2gsICNOL0EgYW5kIGNvbW1vbiBtaXN0YWtlcy4gTGl2ZSBkcmlsbHMu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VkxPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCBjb2xfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvdmxvb2t1cCI%2Cs_W0km26NNQRXVNZ1c.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/vlookup#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/vlookup#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/functions/vlookup#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Why does VLOOKUP return #N/A?","acceptedAnswer":{"@type":"Answer","text":"The value is not in the first column of the table. Check for extra spaces, numbers stored as text, or a missing FALSE at the end."}},{"@id":"https://practiceexcelonline.com/functions/vlookup#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"Can VLOOKUP look to the left?","acceptedAnswer":{"@type":"Answer","text":"No. It only returns columns to the right of the one it searches. Use XLOOKUP or INDEX and MATCH instead."}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VkxPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBWTE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBleGFjdCBhbmQgYXBwcm94aW1hdGUgbWF0Y2gsICNOL0EgYW5kIGNvbW1vbiBtaXN0YWtlcy4gTGl2ZSBkcmlsbHMu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VkxPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCBjb2xfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvdmxvb2t1cCI%2Cs_W0km26NNQRXVNZ1c.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VkxPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBWTE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBleGFjdCBhbmQgYXBwcm94aW1hdGUgbWF0Y2gsICNOL0EgYW5kIGNvbW1vbiBtaXN0YWtlcy4gTGl2ZSBkcmlsbHMu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VkxPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCBjb2xfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvdmxvb2t1cCI%2Cs_W0km26NNQRXVNZ1c.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
