## VLOOKUP & HLOOKUP for Dynamic Lookups

These two functions are easy to write, understand, and they’re a major time-saver for simpler lookups.

The VLOOKUP function can search for a specific category or value in a table and return the “opposing” value from adjacent columns.

HLOOKUP works exactly in the same way except that it looks horizontally rather than vertically.

“V” in VLOOKUP refers to **vertical** and “H” in HLOOKUP refers to **horizontal.**

### Watch 2 Practical Excel VLOOKUP examples below

This video is specially useful if you can’t figure out why your VLOOKUP formula doesn’t work!

**Should I use VLOOKUP or HLOOKUP?**

If the data in your table has **column headers**, use the VLOOKUP function. If the data table has **row headers** and you need to search horizontally across the rows for a “match,” then use HLOOKUP.

The main limitation is that the value looked with VLOOKUP needs to be in the left-most table column and in HLOOKUP it has to be in the top row of the data set.

Below is an example of the less commonly used HLOOKUP function.

HLOOKUP is used to search along the top row and then look down to retrieve the result from a specified row – the second row in this instance.

The example below uses the VLOOKUP function.

The VLOOKUP formula syntax is the following

**Lookup_value:**A11 or East_01 (in this example).**Table_array:**the range includes the location of the column lookup value and the columns where the return value is located (i.e. A1:B9).**Col_index_num:**the number of columns it should move to the right. In this case, the range contains two columns with the match found in the second column.**Range_lookup:**this argument is important to use correctly if the lookup value is text and non-numeric. If the parameter is left empty, it defaults to “TRUE” meaning that an exact match is unnecessary. But, to work properly, the lookup column must be sorted in ascending order. Otherwise, an error or #NA will appear in the cell if the column isn’t sorted in ascending order and this argument is left empty. In the example above, if FALSE is excluded from the last argument then the formula will return an #NA error, because the lookup column is not sorted in ascending order. (Text shouldn’t include trailing spaces). Use the trim function to “clean up” your text to avoid this from happening.

**Building up on the VLOOKUP Function ****
**

__Wild Cards__** :** Various wild cards can be used with VLOOKUP. You have the option to use the asterisk (*) to match any sequence of characters or the question mark (?) to match any single character. Note that if you want to find an actual question mark or asterisk type a ~ before the character.

Returns the value for the first 7 characters.

Returns the match value for the first “ast” in the name.

Uses both “?” and “*” to search for the first match of a text.

** Manipulation:** Other operations can be performed on VLOOKUP formula results such as multiplying or dividing two VLOOKUPS with each other.

** Nesting:** You can also use “nested” formulas with the IF function.

**Limitations of VLOOKUP **

One major limitation of VLOOKUP is that it cannot look to the left. The values to lookup must always be on the left-most column of the range and the values to return must be on the right hand side.

You cannot use the standard VLOOKUP to look at the columns and the rows to find an exact match. The INDEX and MATCH functions are used in this instance and are much more flexible than the classical VLOOKUP.

*Tip:**Although the CHOOSE function nested in VLOOKUP is a “workaround” tool, the Index and Match combination is more effective to look data up in any direction.*

### This video shows how HLOOKUP works:

Feel free to Download the Workbook HERE.

For more information on VLOOKUP, check out this article at Deskbright.

**Excel Dashboards that Inform & Impress**

Actionable Excel Tips You Can Use Right Now to Create Eye-Catching Excel Dashboards

Redeem your coupon for 75% off below.

Mohamed aliNovember 24, 2017 at 2:50 pmThank you very much it was very easy and clear

JasonDecember 3, 2017 at 3:54 amindex match is way better :D

Leila GharaniDecember 4, 2017 at 7:30 pm:)

Rob LovellDecember 4, 2017 at 12:25 amHave checked out alot of sites. Yours is the the best explanation that I have found

Leila GharaniDecember 4, 2017 at 7:29 pmThanks! I’m glad to hear that :)

Syed AzmathMarch 27, 2018 at 8:30 pmReally appreciate your help

Leila GharaniMarch 29, 2018 at 9:47 amYou’re very welcome.

RicardoApril 25, 2018 at 9:21 pmjust starting learning excel for a new job. Trying to understand vlookup now need to practice it more. Video was excellent!!

Leila GharaniApril 26, 2018 at 8:23 pmThank you Ricardo. Glad you find the video helpful. Good luck for your new job!

zahidMay 2, 2018 at 5:36 amvery well explained, thanks for the help dear

MaheshAugust 18, 2018 at 3:43 pmHi Leila Gharani,

Thank you so much for providing Above tutorials.

Mahesh Goutha from India

Leila GharaniAugust 18, 2018 at 6:35 pmYou’re very welcome. Thank you for watching & reading.

Hareen Kumar. CSeptember 16, 2018 at 4:15 amThank u madam, I am learn more from u r tutorials and u r the best teaching, but I had a problem I don’t know fast English understanding knowledge.. but I am listening 2 to 3 times word to word after that I am understood..

SamuelSeptember 13, 2018 at 11:20 pmThank you 🎼

VictoriaSeptember 18, 2018 at 11:44 pmI was able to grasp the concept and how it work as you have provided all the required steps and information! Thank you so much. You are a master!

Walter SzymanskiSeptember 25, 2018 at 6:22 pmLeila, your instructions and examples are complete, very well explained and easily understood. Thank you so much for sharing your expertise.