Subscribe to Updates

    Get the latest news from USA, Canada and Europe directly to your inbox.

    What's Hot

    ChatGPT briefly went offline after a bug revealed user chat histories

    March 21, 2023

    Garbage: In Paris streets, heaps of it become protest symbol

    March 21, 2023

    Saudi Arabia releases dual US-Saudi citizen from prison after he posted critical tweets about the kingdom | CNN Politics

    March 21, 2023
    Facebook Twitter Instagram
    • Privacy Policy
    • Terms
    • Contact
    Facebook Twitter Instagram
    West ObserverWest Observer
    • Home
    • News
      1. United States
      2. Europe
      3. Canada
      4. Latin America
      5. Australia
      6. World
      7. View All

      Washington Tries to Ease Potential Anger by China over Taiwan Leader’s Upcoming Visit to US

      March 21, 2023

      SoCal storm: How long will it rain and when will it finally dry out?

      March 21, 2023

      US Economic Leaders Consider China Trip: White House

      March 21, 2023

      Poll: Is L.A. ready for the 2028 Olympics? Some residents express concern

      March 21, 2023

      Eight quick dinners to celebrate the change of season

      March 21, 2023

      Registered arrested when stealing cell phone

      March 21, 2023

      Six Nations 2023: what time and on which channels to watch the Women’s Tournament? Download the complete calendar

      March 21, 2023

      Journalist and ex-hostage Olivier Dubois has arrived in France

      March 21, 2023

      Garbage: In Paris streets, heaps of it become protest symbol

      March 21, 2023

      Regimental funeral for fallen Edmonton police officers scheduled for next Monday

      March 21, 2023

      Gwyneth Paltrow to stand trial for Deer Valley ski crash

      March 21, 2023

      Patients seeking PRP therapy for COVID-related hair loss, but does it work?

      March 21, 2023

      Lula signals that he will not yield to the pressure of the association of attorneys for the triple list for PGR

      March 21, 2023

      Attack destroys trem that transported Russian cruise ships to Crimeia, say Ukraine; watch video

      March 21, 2023

      “We are not idiots,” says Taiwan’s foreign minister, criticizing China’s pacifying stance

      March 21, 2023

      Reunião do Copom, USA reinforces security for protests called by Trump on March 21

      March 21, 2023

      Al-Arabiya celebrates the 20th anniversary of its founding…and launches its radio

      March 21, 2023

      France is looking for a leader… and Maynan succeeds Lloris

      March 21, 2023

      10,000 spectators for the play “Tirhal” in Diriyah

      March 21, 2023

      Biden issues a law declassifying information about the origin of “Covid-19”

      March 21, 2023

      Garbage: In Paris streets, heaps of it become protest symbol

      March 21, 2023

      Washington Tries to Ease Potential Anger by China over Taiwan Leader’s Upcoming Visit to US

      March 21, 2023

      Lula signals that he will not yield to the pressure of the association of attorneys for the triple list for PGR

      March 21, 2023

      Eight quick dinners to celebrate the change of season

      March 21, 2023
    • Politics
    • Business
    • Lifestyle
    • Tech
    • Sports
    • Travel
    • More
      • Entertainment
      • Videos
    en English
    en Englishes Españolfr Françaisde Deutschhi हिन्दीit Italianoja 日本語pt Portuguêsru Русскийzh-CN 简体中文
    West ObserverWest Observer
    Home » How to Use the HLOOKUP Function in Google Sheets

    How to Use the HLOOKUP Function in Google Sheets

    June 6, 2022No Comments Lifestyle
    Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram
    Share
    Facebook Twitter LinkedIn Pinterest Email

    When working with large sets of data, you often have to look up a specific value and find the corresponding value in the spreadsheet. Doing this manually can be slow, tedious, and time-consuming, so you can use the handy HLOOKUP function in Sheets instead. HLOOKUP stands for horizontal lookup and is a variant of VLOOKUP.

    This article discusses the function, the differences between HLOOKUP and VLOOKUP, the syntax, and how you can use this function in your spreadsheets.

    What Is HLOOKUP in Google Sheets?

    Google Sheets’ HLOOKUP function looks for a certain value in the first row of the table. It then retrieves a value from the column based on the index position specified by the formula parameter. The lookup parameters must be in the first row of the table.

    The HLOOKUP function supports both approximate and exact matching. It is used for a horizontal table where the comparing data is in the top row, and you want to glance down a particular number of rows. If you’re already familiar with the VLOOKUP formula from Excel or Sheets, you can imagine that HLOOKUP works exactly the same but for tables that are set out on a horizontal plane.

    This function attempts to seek a value in a dataset, and the value returned is the found value from a table provided.

    Differences Between HLOOKUP and VLOOKUP

    VLOOKUP is used to find the data in a vertically set out table, whereas HLOOKUP is used to find data in a horizontal table. VLOOKUP is more widely used than HLOOKUP since spreadsheets are typically vertical rather than horizontal.

    MAKEUSEOF VIDEO OF THE DAY

    The formulas for both functions are virtually the same, with the only difference being the row or column arguments. You may also need to familiarize yourself with the XLOOKUP function in Excel.

    Syntax for HLOOKUP

    The HLOOKUP formula uses four arguments, three of which are required for the formula to work, while one is optional. Before we discuss the arguments and what each one means, let’s look at the syntax first. The syntax is:

    =HLOOKUP(key, range, index, is-sorted)

    Here is what each of the arguments used in the HLOOKUP formula do:

    • key: this defines the function’s value to perform the search.
    • range: this argument defines the cell ranges we are performing the search on. Sheets will look for the key argument inside the first row in the defined range.
    • index: this argument is used to define the index of the row which contains the value to be returned. Here, the first row starts from 1. If the value for this argument isn’t between 1 and the total rows defined in the range argument, the #VALUE! error will be displayed.
    • is-sorted: this is an optional argument used to define whether the row defined is sorted or not. By default, this value is true if left empty.

    Examples of the HLOOKUP Function in Google Sheets

    1. Performing a Simple HLOOKUP

    This is the most basic way to use the HLOOKUP function. In this case, we want to find the sales made by a specific employee. Here are the steps you need to follow to do this:

    1. Click on the cell where you wish to execute the formula.
    2. Type in the initial part of the formula, which is =HLOOKUP(
    3. Write the first argument here. In this case, it is the cell containing employee no.4, E1.
    4. Add a comma.
    5. Type in the second argument, which defines the cell range we are performing the search. In this case, it is the cell range A1:F3.
    6. Add another comma to separate the arguments from one another.
    7. Finally, type in the argument defining the row to return the value from. In this case, it is row number 2.
    8. Add in a closing bracket to finish the formula.
    9. Press Enter to execute the formula.

    Now, in cell D9, the formula shows the number of sales that employee number 4 has made.

    2. Creating a Nested HLOOKUP

    This example requires us to find the employee who made the highest number of sales. To do that, we can use the MAX function nested inside the HLOOKUP function.

    The MAX function allows us to find this highest number in the sales category. HLOOKUP will allow us to find the name associated with the number found using the MAX function. Although most steps are similar to what we did in the first example, there are some changes we need to make to use the MAX function. Here are the steps you need to follow:

    1. Click on the cell where you wish to input the formula.
    2. Enter the initial part of the formula, which is =HLOOKUP(
    3. In the first argument, we are going to use the MAX formula. To do this, enter the initial part of the formula, which is MAX(. Note that we don’t need to add an equal to the symbol here.
    4. Type in the cell range to be checked to find the maximum value. In this case, it is B2:F2.
    5. Add a closing bracket to close the MAX formula.
    6. Add a comma to separate the two arguments.
    7. Now, type in the cell range for the formula. In this case, these are the cells from A1:F3.
    8. Add another comma to separate the arguments.
    9. In the final argument, add the row number which you wish to get the value from. In this case, it is 3.
    10. Add the final closing bracket to close off the formula.
    11. Press Enter to execute the formula.


    Drawbacks of HLOOKUP

    This function has two shortcomings:

    1. It always utilizes the first row in the input range to look up the search key. As a result, the HLOOKUP function cannot get a cell value that is above the lookup row.
    2. This function is not dynamically sufficient, as entering a row within the input range does not update the row index automatically.

    There is a solution to the previous two issues. You can use a combination of the INDEX and MATCH functions in Excel, similar to how the linked guide does.

    Wrapping Up the HLOOKUP Function

    Although the examples we used above use small sets of data, it’s easy to see how the HLOOKUP function would make it much easier to search full spreadsheets that are set up as horizontal tables.

    This function is just one of the many ways you can navigate Google Sheets quicker, if you keep learning you’ll cut down the time you have to spend on data entry and retrieval.

    Source: Make Use Of

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email VKontakte WhatsApp

    Related Posts

    L.A. Affairs: Did you find love at Disneyland? Tell us your story

    March 19, 2023

    L.A. Affairs: I was wild, and he was a mountain man. Could we make magic together?

    March 17, 2023

    How to be elegant during winter?

    March 16, 2023

    He wants L.A. to love macaws as much as it loves dogs. Will free flying do the trick?

    March 16, 2023

    House shoes are the L.A. staple for our moment of conspicuous opulence

    March 15, 2023

    Drawing is ultimate trust. These sketches show the magic that comes once a line is made

    March 15, 2023
    Don't Miss

    Saudi Arabia releases dual US-Saudi citizen from prison after he posted critical tweets about the kingdom | CNN Politics

    Politics March 21, 2023

    CNN  —  Saudi Arabia released US-Saudi dual national Saad Ibrahim Almadi from prison, more than…

    Is Hodgson the safe pair of hands Palace need?

    March 21, 2023

    Commentary: What’s wrong with the Galaxy? Fan base growing inpatient with front office

    March 21, 2023

    Washington Tries to Ease Potential Anger by China over Taiwan Leader’s Upcoming Visit to US

    March 21, 2023
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo
    Our Picks

    Lula signals that he will not yield to the pressure of the association of attorneys for the triple list for PGR

    March 21, 2023

    Eight quick dinners to celebrate the change of season

    March 21, 2023

    Registered arrested when stealing cell phone

    March 21, 2023

    Six Nations 2023: what time and on which channels to watch the Women’s Tournament? Download the complete calendar

    March 21, 2023

    Subscribe to Updates

    Get the latest news from USA, Canada and Europe directly to your inbox.

    About Us
    About Us

    Your #1 source for all the website news, follow USA, Europe and Canada News. Latest reports about business, politics and entertainment.

    We're accepting new partnerships right now.

    Email Us: [email protected]

    Facebook Twitter YouTube LinkedIn
    Our Picks

    ChatGPT briefly went offline after a bug revealed user chat histories

    March 21, 2023

    Garbage: In Paris streets, heaps of it become protest symbol

    March 21, 2023

    Saudi Arabia releases dual US-Saudi citizen from prison after he posted critical tweets about the kingdom | CNN Politics

    March 21, 2023
    Newsletter

    Subscribe to Updates

    Get the latest news from USA, Canada and Europe directly to your inbox.

    © 2023 West Observer. All Rights Reserved.
    • Privacy Policy
    • Terms
    • Contact
    • Khaleej Voice

    Type above and press Enter to search. Press Esc to cancel.