UrbanPro
true

Learn Microsoft Excel Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Exploring Excel HLOOKUP Formula

Ganesh S E
14 Feb 0 0

Let's break down HLOOKUP in detail.

What is HLOOKUP?

HLOOKUP (Horizontal Lookup) is an Excel function that searches for a specific value in the first row of a table and returns a value in the same column from a row you specify. Think of it like looking up a word in a dictionary index (the first row) and then reading the definition on the line below (the specified row).

Formula:

Excel
 
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Arguments Explained:

  1. lookup_value: The value you're searching for in the first row of the table_array. This is like the word you're looking up in the dictionary index. In your example, this is C13 (the District name).

  2. table_array: The range of cells that contains your lookup table. This is like the entire dictionary index and definitions. In your example, this is D4:AD7. It must include the first row where you're searching for the lookup_value.

  3. row_index_num: The row number within the table_array from which you want to retrieve the corresponding value. The first row of the table_array is row 1, the second is row 2, and so on. In your example, this is 2 because the Taluk is in the second row of the range D4:AD7.

  4. [range_lookup] (Optional): This argument specifies whether you want an exact match or an approximate match.

    • FALSE or 0: (Recommended) Finds an exact match for the lookup_value. If it doesn't find an exact match, it returns an error (#N/A). This is what you're using in your example.
    • TRUE or 1 or omitted: Finds an approximate match. The first row of the table_array must be sorted in ascending order for this to work correctly. HLOOKUP will find the largest value in the first row that is less than or equal to the lookup_value.

Example Breakdown (Based on your text):

You have a table (your "BOOK") in the range D4:AD7. The first row (D4:AD4) contains District names. The second row (D5:AD5) contains Taluk names.

You want to find the Taluk for a specific District. The District name you're looking for is in cell C13.

The formula you use is:

Excel
 
=HLOOKUP(C13,D4:AD7,2,FALSE)
  • C13: The District name (your lookup_value).
  • D4:AD7: The table containing District and Taluk data (your table_array).
  • 2: The second row of the table contains the Taluk names (your row_index_num).
  • FALSE: You want an exact match for the District name.

How it Works:

  1. HLOOKUP looks in the first row of D4:AD7 (the District names) for the value in C13.
  2. If it finds an exact match, it goes down to the second row (because row_index_num is 2) in the same column where it found the match.
  3. It returns the value in that cell (the Taluk name).

Example 2 (Copying the Formula):

When you copy the formula =HLOOKUP(I12:N12,D4:AD7,2,FALSE) and drag it across to N13, Excel automatically adjusts the lookup_value. So, in cell J13, the formula will become something like =HLOOKUP(J12,D4:AD7,2,FALSE), and so on. This is a very efficient way to look up multiple Taluks. However, the original formula HLOOKUP(I12:N12,D4:AD7,2,FALSE) is incorrect. The first argument should be a single cell, not a range. It should be HLOOKUP(I12,D4:AD7,2,FALSE).

Key Rules (Recap):

  • Lookup value in the first row: The value you're searching for must be in the first row of the table_array.
  • Sorted for approximate match: If you use TRUE or omit range_lookup, the first row must be sorted in ascending order.
  • Exact or approximate match: Use FALSE for exact matches (recommended) and TRUE for approximate matches.
  • Row index number: Specify the correct row number to retrieve the desired value.

HLOOKUP is very useful for looking up data in tables where the lookup values are arranged horizontally in the first row. Just remember these rules, and you'll be able to use it effectively.

 
 
 
 
 
 
profile picture
 

 

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Excel-Select All Data/Columns/Rows with One Click
You might know how to select all by using the Ctrl + A shortcut, but few know that with only one click of the corner button, all data/Columns/Rows will be selected in seconds.

When should you use TRUE in vlookup?
You can use TRUE as the last argument in vlookup function when you are looking up using which is a range with a lower limit and an upper limit. For example if you want to charge a customer according to...

Akhilesh Dadhich

0 0
0

Some Excel Functions
You need to know about these following functions which are based on Microsoft Excel 2010.1. Speedily Move and Copy Data in Cells:-If you want to move one column of data in a spreadsheet, the fast way...
I

ICreative Solution

0 0
0

Advanced Filter in Microsoft EXCEL
ADVANCED FILTRATION PART NAME C Lang. JAVA NAME C Lang. JAVA SAME LETTER NAME CRITERIA ASHU 55 63 A* ...
V

Vaibhav R.

0 0
0

How to Remove Duplicates from your data
Larger data sets tend to have duplicate content. You may have a list of multiple contacts in a organization and only want to see the number of organization you have or you have multiple rows of same type...
X

Looking for Microsoft Excel Training Classes?

The best tutors for Microsoft Excel Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Microsoft Excel Training with the Best Tutors

The best Tutors for Microsoft Excel Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more