PROVIDING ACCURATE, RELIABLE AND STRAIGHT TO THE POINT KNOWLEDGE ABOUT DIFFERENT IT TOOLS EXPLAINED WITH PRACTICAL EXAMPLES

EXCEL FUNCTIONS-HLOOKUP

HLOOKUP is  as advanced level function. But advanced doesn’t mean tough. In this article we’ll try to find out what we can do with this function and how to use it.

We make and manage large report in Excel. Many times we need to search for a value from a big report or join two or more reports into a final single report but would that be possible if there are hundreds of lines in all the three reports.

The Answer is NO!!!

But thanks to excel, which has given us many ways to help joining of such reports. Two of these options are HLOOKUP AND VLOOKUP.

THIS ARTICLE DEALS WITH HLOOKUP, which is used a bit less than VLOOKUP.

 

FOR VLOOKUP CLICK HERE.

 

PURPOSE OF HLOOKUP IN EXCEL

HLOOKUP provides us a way to retrieve a value present in the same column of the value to be found ,from a selected table, by matching the “Value to be found” in the first row of the selected table.

Kindly read the statement twice as may seem to be confusing at first.

Suppose we have a horizontal table in which the headings are in the first row and details are in vertical columns. Now if we need to extract any data, we’ll search for the first row of the selected table and after matching the column heading, we can retrieve any value against that particular column. It’ll become very clear after we discuss the example.

 

PREREQUISITES TO LEARN HLOOKUP

THERE ARE A FEW PREREQUISITES WHICH WILL ENABLE YOU TO UNDERSTAND THIS FUNCTION IN A BETTER WAY.

  •  Basic understanding of how to use a formula or function.
  •  Basic understanding of rows and columns in Excel.
  •  Of course, Excel software.
Helpful links for the prerequisites mentioned above

SYNTAX: HLOOKUP FUNCTION

The syntax ( the way how formula is phrased for excel) of HLOOKUP is

=HLOOKUP(cell address of value to be matched  ,  range of cells to search  ,   row number to return the value, match should be approximate or exact)

So, a sample format is here. Suppose the value to be found is in cell H13 and the table from which the value is to be extracted has the range I12:K25 (14 rows) and the match is to be exact.The format in the output cell will be

=hlookup(H13,I12:K25,6,false)

This will find out the value of H13 in the table I12:K25 and return the value of sixth row i.e. I17 if it could find H13 in the table’s first row.

example:Hlookup in excel (EXTRACTING A SINGLE VALUE FROM DATA)

DATA SAMPLE

The sample data shows  sales number for a week. Data is arranged horizontally and the objective is to find the sales on Tuesday.

Apply the formula of HLOOKUP on the cell H16.

Type in H16

=HLOOKUP(G16,D9:J10,2,FALSE) as mentioned in the picture.

 

 

HLOOKUP EXAMPLE DATA SAMPLE
EXCEL:HLOOKUP:EXAMPLE:DATA SAMPLE

STEPS TO USE HLOOKUP

 

  • We will make use of HLOOKUP as our data is in landscape format.
  • As per the syntax,
    • =HLOOKUP(cell address of value to be matched, range of cells to search, row number to return the value, match should be approximate or exact )
    • PUT in cell H16 , the following formula “=hlookup( (G16,D9:J10,2,FALSE) ” (“” shouldn’t be written in the formula bar”)
    • Press ENTER.
    • “34” will appear in the cell, as expected.
    • The output screen is shown.

 

 

HLOOKUP EXAMPLE
EXCEL:HLOOKUP:EXAMPLE:REQUIRED OUTPUT

STEP WISE STEP EXPLANATION

LET US UNDERSTAND HOW THE FORMULA WAS INTERPRETED BY THE EXCEL.

=hlookup( (G16,D9:J10,2,FALSE)

WORDWISE BREAKUP OF FORMULA

EXPLANATION OF THE FORMULA USED
=
EVERY FORMULA STARTS WITH AN "="
HLOOKUP
FUNCTION NAME
G16
The value to be found. In this case, DAY is a unique value which we will be using. With the help of this UNIQUE VALUE we'll help Excel to search out our desired value and return it to us.
D9:J10
Range in which excel will find G16 value. The range is the top left cell upto the bottom right cell of the table.
FALSE
Exact Match. True is used for Approximate Match

CONFUSION CLARIFICATIONS

ROW INDEX NUMBER (INPUT NO. 3 IN HLOOKUP FORMULA)

Its very easy to understand.
 
The Range, which has been selected by us to find our desired value from, is considered a table by the excel and its ROW NUMBERS will be counted from top to bottom irrespective of the original table.
 

EXAMPLE:

Checkout the illustration given in the picture.

The Range selection area is colored in YELLOW.

The table has six rows but for HLOOKUP, the rows will be counted from the first row at the top of selected range as shown by GREEN arrows.

HLOOKUP
EXCEL:HLOOKUP:CONFUSIONS:ROW INDEX NUMBER

2 thoughts on “EXCEL FUNCTIONS-HLOOKUP”

  1. Good day I am so excited I found your webpage, I really found you by mistake, while I was looking on Google for something else, Regardless I am here now and would just like to say many thanks for a fantastic post and a all round enjoyable blog (I also love the theme/design), I don’t have time to look over it all at the moment but I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the great job.

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This

KINDLY SPEND FEW SECONDS HERE....

*CLICK ANYWHERE ELSE TO CLOSE THIS WINDOW
%d bloggers like this: