{"id":16088,"date":"2023-07-18T14:40:17","date_gmt":"2023-07-18T14:40:17","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=16088"},"modified":"2024-02-19T14:52:07","modified_gmt":"2024-02-19T14:52:07","slug":"using-hlookup-in-excel-to-retrieve-text-values","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/","title":{"rendered":"Using HLOOKUP in Excel to Retrieve Text Values"},"content":{"rendered":"\n
Using-HLOOKUP-in-Excel-to-Retrieve-Text-Values<\/a>Download File<\/a><\/div>\n\n\n\n

To retrieve text values using HLOOKUP<\/strong> in Excel, you must use the asterisk (*) wildcard. For example, you can use HLOOKUP with the asterisk wildcard character to retrieve the first text value in a cell range.<\/p>\n\n\n\n

Note:<\/strong> In Excel, the asterisk (*) wildcard character stands in for any number of characters in a text string.<\/p>\n\n\n\n

Explanation of HLOOKUP Function<\/h2>\n\n\n\n

The HLOOKUP function searches for a value in the top row of a table or range of cells and returns a corresponding value from a specified row. The “H” in HLOOKUP stands for “horizontal” because it searches horizontally across rows.<\/p>\n\n\n\n

The syntax for the HLOOKUP function is as follows:<\/p>\n\n\n\n

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])<\/strong><\/p>\n\n\n\n

Here’s what each argument means:<\/p>\n\n\n\n

    \n
  • lookup_value<\/strong> This is the value you want to find in the top row of the table. It can be a number, text, logical value, or cell reference.<\/li>\n\n\n\n
  • table_array<\/strong> This is the range of cells that contains the data you want to search. It should include both the lookup value and the values to be returned. The table_array must have at least two rows.<\/li>\n\n\n\n
  • row_index_num<\/strong> This is the row number in the table_array from which you want to retrieve the value. The first row in the table_array is considered row number 1.<\/li>\n\n\n\n
  • range_lookup<\/strong> This is an optional argument that specifies whether you want an exact or approximate match. If set to `TRUE` or omitted, HLOOKUP will try to find an approximate match and return the closest value that is less than or equal to the lookup value. If set to `FALSE,` HLOOKUP will only find an exact match.<\/li>\n<\/ul>\n\n\n\n

    The following are three examples of using HLOOKUP in Excel to retrieve text values.<\/p>\n\n\n\n

    Example #1: Use HLOOKUP to Retrieve the FirstText Value in a Cell Range<\/h3>\n\n\n\n

    Consider the dataset below, which displays the sales figures for different regions.<\/p>\n\n\n\n

    \"A<\/figure>\n\n\n\n

    We aim to use HLOOKUP to fetch the initial region listed in row 1 and display it in cell C7.<\/p>\n\n\n\n

    We use the following steps:<\/p>\n\n\n\n

      \n
    1. Select cell C7 and type in the following formula:<\/li>\n<\/ol>\n\n\n\n
      =HLOOKUP(\"*\",B1:F1,1,FALSE)<\/code><\/pre>\n\n\n\n
      \"A<\/figure>\n\n\n\n
        \n
      1. Press Enter.<\/li>\n<\/ol>\n\n\n\n

        The first region listed in row 1, which is “Europe,” is shown in cell C7:<\/p>\n\n\n\n

        \"\"<\/figure>\n\n\n\n

        Example #2: Get The First Text Value That Starts With a Particular Letter in a Cell Range<\/h3>\n\n\n\n

        Consider the dataset below, which presents sales figures for various regions.<\/p>\n\n\n\n

        \"A<\/figure>\n\n\n\n

        We want to use HLOOKUP to return the first text value in row 1 that starts with the letter “N” and display it in cell D7.<\/p>\n\n\n\n

        We use the below steps:<\/p>\n\n\n\n

          \n
        1. Select cell D7 and type in the below formula:<\/li>\n<\/ol>\n\n\n\n
          =HLOOKUP(\"N*\",B1:F1,1,FALSE)<\/code><\/pre>\n\n\n\n
          \"A<\/figure>\n\n\n\n
            \n
          1. Press Enter.<\/li>\n<\/ol>\n\n\n\n

            The text value in row 1 that begins with the letter “N” \u2013 North America \u2013 is shown in cell D7:<\/p>\n\n\n\n

            \"A<\/figure>\n\n\n\n

            Example #2: Get The First Text Value That Ends With a Particular Phrase in a Cell Range<\/h3>\n\n\n\n

            Let’s take a look at the dataset below, which displays sales data for different regions.<\/p>\n\n\n\n

            \"A<\/figure>\n\n\n\n

            We aim to utilize HLOOKUP to retrieve the first text value in row 1 ending with the phrase “ca” and show it in cell D7.<\/p>\n\n\n\n

            We use the following steps:<\/p>\n\n\n\n

              \n
            1. Select cell D7 and type in the following formula:<\/li>\n<\/ol>\n\n\n\n
              =HLOOKUP(\"*ca\",B1:F1,1,FALSE)<\/code><\/pre>\n\n\n\n
              \"A<\/figure>\n\n\n\n
                \n
              1. Press Enter.<\/li>\n<\/ol>\n\n\n\n

                The first text value in row 1 that ends with the phrase “ca” \u2013 South America \u2013 is shown in cell D7:<\/p>\n\n\n\n

                \"\"<\/figure>\n\n\n\n

                Note<\/h3>\n\n\n\n

                Try out the XLOOKUP<\/strong> function, an enhanced version of HLOOKUP. Unlike HLOOKUP, XLOOKUP can be utilized in any direction, and by default, returns exact matches, making it a more user-friendly and convenient option.<\/p>\n\n\n\n

                Conclusion<\/h2>\n\n\n\n

                This tutorial showed three examples of utilizing the HLOOKUP function in Excel to retrieve text values. We hope you found the tutorial helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"

                To retrieve text values using HLOOKUP in Excel, you must use the asterisk (*) wildcard. For example, you can use HLOOKUP with the…<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[170],"yoast_head":"\nUsing HLOOKUP in Excel to Retrieve Text Values<\/title>\n<meta name=\"description\" content=\"Learn how to use HLOOKUP in Excel to retrieve text values. Download the file for an explanation of the HLOOKUP function and examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using HLOOKUP in Excel to Retrieve Text Values\" \/>\n<meta property=\"og:description\" content=\"Learn how to use HLOOKUP in Excel to retrieve text values. Download the file for an explanation of the HLOOKUP function and examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-18T14:40:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T14:52:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png\" \/>\n<meta name=\"author\" content=\"Christopher Sirali\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Sirali\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\"},\"author\":{\"name\":\"Christopher Sirali\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370\"},\"headline\":\"Using HLOOKUP in Excel to Retrieve Text Values\",\"datePublished\":\"2023-07-18T14:40:17+00:00\",\"dateModified\":\"2024-02-19T14:52:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\"},\"wordCount\":609,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png\",\"keywords\":[\"file\"],\"articleSection\":[\"formulas\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\",\"url\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\",\"name\":\"Using HLOOKUP in Excel to Retrieve Text Values\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png\",\"datePublished\":\"2023-07-18T14:40:17+00:00\",\"dateModified\":\"2024-02-19T14:52:07+00:00\",\"description\":\"Learn how to use HLOOKUP in Excel to retrieve text values. Download the file for an explanation of the HLOOKUP function and examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png\",\"width\":560,\"height\":180,\"caption\":\"A screenshot of a spreadsheet Description automatically generated\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using HLOOKUP in Excel to Retrieve Text Values\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370\",\"name\":\"Christopher Sirali\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g\",\"caption\":\"Christopher Sirali\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using HLOOKUP in Excel to Retrieve Text Values","description":"Learn how to use HLOOKUP in Excel to retrieve text values. Download the file for an explanation of the HLOOKUP function and examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/","og_locale":"en_US","og_type":"article","og_title":"Using HLOOKUP in Excel to Retrieve Text Values","og_description":"Learn how to use HLOOKUP in Excel to retrieve text values. Download the file for an explanation of the HLOOKUP function and examples.","og_url":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/","article_published_time":"2023-07-18T14:40:17+00:00","article_modified_time":"2024-02-19T14:52:07+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png"}],"author":"Christopher Sirali","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Christopher Sirali","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/"},"author":{"name":"Christopher Sirali","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370"},"headline":"Using HLOOKUP in Excel to Retrieve Text Values","datePublished":"2023-07-18T14:40:17+00:00","dateModified":"2024-02-19T14:52:07+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/"},"wordCount":609,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png","keywords":["file"],"articleSection":["formulas"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/","url":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/","name":"Using HLOOKUP in Excel to Retrieve Text Values","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png","datePublished":"2023-07-18T14:40:17+00:00","dateModified":"2024-02-19T14:52:07+00:00","description":"Learn how to use HLOOKUP in Excel to retrieve text values. Download the file for an explanation of the HLOOKUP function and examples.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/a-screenshot-of-a-spreadsheet-description-automat-13.png","width":560,"height":180,"caption":"A screenshot of a spreadsheet Description automatically generated"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/formulas\/using-hlookup-in-excel-to-retrieve-text-values\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Using HLOOKUP in Excel to Retrieve Text Values"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."},{"@type":"Person","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370","name":"Christopher Sirali","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g","caption":"Christopher Sirali"}}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/16088"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=16088"}],"version-history":[{"count":1,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/16088\/revisions"}],"predecessor-version":[{"id":16099,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/16088\/revisions\/16099"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=16088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=16088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=16088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}