---
title: "HLOOKUP function in Excel: syntax and examples | PracticeExcel"
description: "How to use HLOOKUP in Excel and Google Sheets: VLOOKUP turned sideways, for tables with headers in a row."
canonical_url: "https://practiceexcelonline.com/functions/hlookup"
locale: en
meta:
  "og:description": "How to use HLOOKUP in Excel and Google Sheets: VLOOKUP turned sideways, for tables with headers in a row."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SExPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBITE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBWTE9PS1VQIHR1cm5lZCBzaWRld2F5cywgZm9yIHRhYmxlcyB3aXRoIGhlYWRlcnMgaW4gYSByb3cu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SExPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCByb3dfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvaGxvb2t1cCI%2Cs_OtgWSAqKlsm3z_Ga.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "HLOOKUP function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SExPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBITE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBWTE9PS1VQIHR1cm5lZCBzaWRld2F5cywgZm9yIHRhYmxlcyB3aXRoIGhlYWRlcnMgaW4gYSByb3cu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SExPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCByb3dfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvaGxvb2t1cCI%2Cs_OtgWSAqKlsm3z_Ga.png"
---

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

# **The HLOOKUP function**

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

=

HLOOKUP(

## **Syntax**

```
HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
```

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

## **Examples**

F1`=HLOOKUP(<sup>1</sup>"Feb",<sup>2</sup>B1:D2,<sup>3</sup>2,<sup>4</sup>FALSE)`

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Month | Jan | Feb | Mar |  | **150** |
| 2 | Sales | 120 | 150 | 90 |  | |

**In plain words:** Find <sup>1</sup>Feb in the top row of <sup>2</sup>B1:D2 and return the value <sup>3</sup>in the table's second row, <sup>4</sup>only on an exact match.

F1=HLOOKUP("Mar",A1:D2,2,FALSE)

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Month | Jan | Feb | Mar |  | **90** |
| 2 | Sales | 120 | 150 | 90 |  | |

## **Read the guide**

- [**VLOOKUP vs XLOOKUP vs INDEX MATCH: which lookup to use**](https://practiceexcelonline.com/learn/vlookup-vs-xlookup-vs-index-match)

## **Related functions**

- [**VLOOKUP**](https://practiceexcelonline.com/functions/vlookup)
- [**XLOOKUP**](https://practiceexcelonline.com/functions/xlookup)
- [**INDEX**](https://practiceexcelonline.com/functions/index)

```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/hlookup#webpage","@type":"WebPage","description":"How to use HLOOKUP in Excel and Google Sheets: VLOOKUP turned sideways, for tables with headers in a row.","name":"HLOOKUP function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/hlookup","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/hlookup#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/hlookup"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/hlookup#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":"HLOOKUP function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/hlookup#article","description":"How to use HLOOKUP in Excel and Google Sheets: VLOOKUP turned sideways, for tables with headers in a row.","headline":"HLOOKUP function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SExPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBITE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBWTE9PS1VQIHR1cm5lZCBzaWRld2F5cywgZm9yIHRhYmxlcyB3aXRoIGhlYWRlcnMgaW4gYSByb3cu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SExPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCByb3dfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvaGxvb2t1cCI%2Cs_OtgWSAqKlsm3z_Ga.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/hlookup#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/hlookup#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@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_~SExPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBITE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBWTE9PS1VQIHR1cm5lZCBzaWRld2F5cywgZm9yIHRhYmxlcyB3aXRoIGhlYWRlcnMgaW4gYSByb3cu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SExPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCByb3dfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvaGxvb2t1cCI%2Cs_OtgWSAqKlsm3z_Ga.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SExPT0tVUCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBITE9PS1VQIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBWTE9PS1VQIHR1cm5lZCBzaWRld2F5cywgZm9yIHRhYmxlcyB3aXRoIGhlYWRlcnMgaW4gYSByb3cu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SExPT0tVUChsb29rdXBfdmFsdWUsIHRhYmxlX2FycmF5LCByb3dfaW5kZXhfbnVtLCBbcmFuZ2VfbG9va3VwXSk%2Cp_Ii9mdW5jdGlvbnMvaGxvb2t1cCI%2Cs_OtgWSAqKlsm3z_Ga.png"}]}
```

## Sitemap

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