HLOOKUP vs VLOOKUP: what’s the difference?

What's the HLOOKUP function syntax? Can HLOOKUP look upward? Find answers to your questions about the HLOOKUP function in Excel!

Most of us have heard about the VLOOKUP function, but not so much about the HLOOKUP function in Excel.

What is HLOOKUP?

The HLOOKUP function in Excel searches for a value in the 1st row of a table and returns a value in the same column, from any row you specify.

Did you know that HLOOKUP stands for Horizontal Lookup while VLOOKUP stands for Vertical Lookup?

What is VLOOKUP?

The VLOOKUP function searches for a value in the 1st column of a table array and returns a value in the same row, from any column you specify.

Learn more about the VLOOKUP function in Excel and see examples in this article.

What is the HLOOKUP syntax?

The HLOOKUP function in Excel include 4 arguments: 3 are required and 1 is optional (range_lookup).
Syntax of the HLOOKUP function: =HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]).

lookup_value – the value you want to find.
The value must be in the 1st row of the table or array you select.
table_array – the range of cells in which the lookup_value and the return value you want to find are.
row_index_num – the row number where the return value is, within your table_array.
The 1st row within your table_array is number 1.
range_lookup – logical value specifying if you want the HLOOKUP function to find an exact match (0/FALSE) or an approximate one (1/TRUE).
If you don’t specify this argument, the default value is always 1/TRUE.

HLOOKUP in Excel – Tips

– We recommend using 0 as the range_lookup argument, to avoid unwanted results.
– Make sure the return value is below the row you search from. HLOOKUP can’t look upward!
– The value in the lookup_value argument can be a text, a formula or a reference.
– The return value will be 0 in Microsoft Excel if the cell containing the return value is empty. If the cell containing the value you need is a formula, the return value will be the result of the formula.
– Like for the VLOOKUP function, with HLOOKUP, you can use wildcard characters in the lookup_value argument if range_lookup is 0/FALSE and lookup_value is text. A question mark (?) will search for any single character and an asterisk (*) will match any sequence of characters.
– Uppercase and lowercase text values are equivalent.

HLOOKUP examples

Searching a value within the same table – reference

In this example, the lookup_value is a reference, the cell B6 mentioning the month of March.

Searching a value within the same table – specific value

In this example, the lookup_value is a specific value (March). For texts, lowercase or uppercase values are equivalent so, here, the lookup_value can be written “March” or “march”.

Searching a value within the same worksheet – wildcard

In this example, we are using the wildcard character * to save time: we know that only the month of March starts with M in English. We could use “M*” as lookup_value but in our example, we add “Month” within the table_array so we have to be a bit more specific to avoid any unwanted results.
If we wanted to find the name of the manager in charge during February, we could use “F*” as lookup_value to save time.

Need to use the HLOOKUP formula between two worksheets? Follow the same steps as for the VLOOKUP function while applying the HLOOKUP function syntax.

If a colleague ask you what’s the difference between HLOOKUP and VLOOKUP, now you know!

Learn more handy tips and Excel functions by joining our MS Excel Spreadsheet Course.

Advertising
Analytics

Categories

AllAdvertisingFormatsPlatformsKPI'sAd News

What is O&O Advertising?

Discover one more important jargon term used in Programmatic Advertising: O&O advertising. Get familiar with O&O formats and advantages.

Read More

Best DSPs for Programmatic Advertising

Ted Jordan shares his list of best DSPs for Programmatic Advertising so you don’t have to lose time searching the internet to find the right Demand-Side Platform for your campaigns.

Read More
What is Programmatic Advertising?

What is Programmatic Advertising?

Understand what programmatic advertising is and how it works to increase your ROI and become a programmatic specialist.

Read More
Programmatic Advertising: What is a SSP?

Supply-Side Platforms (SSPs) Explained

SSPs basics in advertising: learn what Supply-Side Platforms are used for and who use them. Get familiar with more programmatic advertising technical terms.

Read More
Programmatic Advertising: What is a DSP?

What are DSPs?

A DSP is a great tool to use but what does DSP stand for in marketing? What are some Demand-Side Platforms examples? Today, we answer your questions!

Read More

Advertising News – 09 June 2024

This week, we'll explore Google's latest algorithm update and it's massive impact on independent websites, the newly passed media Freedom Act in the EU aimed at protecting journalists, and a...

Read More

Categories

AllFunctionsToolsShortcut Keys
Split Semicolon Separated Value in Excel

How to split semicolon separated values in Excel

Split semicolon separated values in Excel into columns and rows, or convert columns to semicolon separated values, like an Excel Master!

Read More

How to change shapes in Excel column charts

Learn how to easily change the columns shape in your Excel charts so your colleagues and customers will remember your impacting graphs.

Read More

How to use the LEFT, RIGHT and MID functions

Learn how to extract text in Excel with the LEFT, RIGHT and MID functions. Plenty of examples to learn from and functions are explained with simple words. If you start...

Read More

Excel IF statement: how to use it for 3 conditions

Learn how to use the Excel IF statement with multiple conditions and combine it with OR and/or AND functions!

Read More
Using Text to Column to Extract texts on Excel

Excel: How to split text into columns

If you need to extract data in Excel, you may want to use the Text to Columns tool. With only 3 steps, it's really easy to split text into columns.

Read More
Absolute Referencing in Excel

Locking cells: what’s the Excel dollar sign shortcut?

The Excel absolute reference shortcut will become one of your favourites to save time! Switch from relative to absolute references in seconds using this trick.

Read More