{"id":62,"date":"2026-02-24T08:39:07","date_gmt":"2026-02-24T08:39:07","guid":{"rendered":"https:\/\/gigz.pk\/excel\/?post_type=lesson&#038;p=62"},"modified":"2026-03-08T05:46:59","modified_gmt":"2026-03-08T05:46:59","slug":"hlookup","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/","title":{"rendered":"\u00a0HLOOKUP"},"content":{"rendered":"\n<p>The <strong>HLOOKUP<\/strong> function is used to search for a value in the first row of a table and return a corresponding value from a specified row in the same column.<\/p>\n\n\n\n<p>HLOOKUP stands for <strong>Horizontal Lookup<\/strong>.<\/p>\n\n\n\n<p>It is useful when data is arranged horizontally (in rows instead of columns).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Structure of HLOOKUP<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Arguments:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>lookup_value<\/strong> \u2192 The value to search in the first row<\/li>\n\n\n\n<li><strong>table_array<\/strong> \u2192 The data table range<\/li>\n\n\n\n<li><strong>row_index_num<\/strong> \u2192 Row number to return result from<\/li>\n\n\n\n<li><strong>range_lookup<\/strong> \u2192 TRUE (Approximate) or FALSE (Exact match)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example 1: Exact Match<\/h2>\n\n\n\n<p>If:<\/p>\n\n\n\n<p>A1:E3 contains data<br>A1:E1 = Product Names<br>A2:E2 = Prices<br>A3:E3 = Quantity<\/p>\n\n\n\n<p>Formula:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=HLOOKUP(\"Laptop\", A1:E3, 2, FALSE)<\/pre>\n\n\n\n<p>This searches &#8220;Laptop&#8221; in the first row and returns the value from the 2nd row (Price).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example 2: Approximate Match<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">=HLOOKUP(A1, A1:E3, 3, TRUE)<\/pre>\n\n\n\n<p>Used in grading systems or commission tables.<\/p>\n\n\n\n<p> When using TRUE, the first row must be sorted in ascending order.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Important Rules<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HLOOKUP searches <strong>horizontally<\/strong> (left to right).<\/li>\n\n\n\n<li>Lookup value must be in the <strong>first row<\/strong> of the table.<\/li>\n\n\n\n<li>Row index number starts from 1.<\/li>\n\n\n\n<li>FALSE is recommended for exact matches.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common Errors<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>#N\/A \u2192 Value not found<\/li>\n\n\n\n<li>#REF! \u2192 Row number is incorrect<\/li>\n\n\n\n<li>#VALUE! \u2192 Wrong formula format<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Handling Errors<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">=IFERROR(HLOOKUP(A1, A1:E3, 2, FALSE), \"Not Found\")<\/pre>\n\n\n\n<p>This prevents displaying errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Difference Between VLOOKUP and HLOOKUP<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>VLOOKUP \u2192 Searches vertically (columns)<\/li>\n\n\n\n<li>HLOOKUP \u2192 Searches horizontally (rows)<\/li>\n<\/ul>\n\n\n\n<p>Both functions are widely used for retrieving data quickly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why HLOOKUP is Important<\/h2>\n\n\n\n<p>It helps in structured reports where data is arranged horizontally, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Monthly sales reports<\/li>\n\n\n\n<li>Exam result sheets<\/li>\n\n\n\n<li>Product comparison tables<\/li>\n<\/ul>\n\n\n\n<p>HLOOKUP is useful when working with row-based datasets in Excel.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/excel\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Excel Essential Functions (EEF) > Lookup &#038; Reference > HLOOKUP<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1772946694866\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":32,"template":"","class_list":["post-62","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u00a0HLOOKUP - Learn Excel the Right Way.<\/title>\n<meta name=\"description\" content=\"Learn how to use the HLOOKUP function in Excel to search data horizontally and return matching values from rows easily.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00a0HLOOKUP - Learn Excel the Right Way.\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the HLOOKUP function in Excel to search data horizontally and return matching values from rows easily.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Excel the Right Way.\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-08T05:46:59+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/hlookup\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/hlookup\\\/\",\"name\":\"\u00a0HLOOKUP - Learn Excel the Right Way.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/#website\"},\"datePublished\":\"2026-02-24T08:39:07+00:00\",\"dateModified\":\"2026-03-08T05:46:59+00:00\",\"description\":\"Learn how to use the HLOOKUP function in Excel to search data horizontally and return matching values from rows easily.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/hlookup\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/hlookup\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/hlookup\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Excel Essential Functions (EEF) > Lookup & Reference > HLOOKUP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/\",\"name\":\"Learn Excel the Right Way.\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00a0HLOOKUP - Learn Excel the Right Way.","description":"Learn how to use the HLOOKUP function in Excel to search data horizontally and return matching values from rows easily.","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:\/\/gigz.pk\/excel\/lesson\/hlookup\/","og_locale":"en_US","og_type":"article","og_title":"\u00a0HLOOKUP - Learn Excel the Right Way.","og_description":"Learn how to use the HLOOKUP function in Excel to search data horizontally and return matching values from rows easily.","og_url":"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/","og_site_name":"Learn Excel the Right Way.","article_modified_time":"2026-03-08T05:46:59+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/","url":"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/","name":"\u00a0HLOOKUP - Learn Excel the Right Way.","isPartOf":{"@id":"https:\/\/gigz.pk\/excel\/#website"},"datePublished":"2026-02-24T08:39:07+00:00","dateModified":"2026-03-08T05:46:59+00:00","description":"Learn how to use the HLOOKUP function in Excel to search data horizontally and return matching values from rows easily.","breadcrumb":{"@id":"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/excel\/lesson\/hlookup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/excel\/lesson\/hlookup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/excel\/"},{"@type":"ListItem","position":2,"name":"Excel Essential Functions (EEF) > Lookup & Reference > HLOOKUP"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/excel\/#website","url":"https:\/\/gigz.pk\/excel\/","name":"Learn Excel the Right Way.","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/excel\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/lesson\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/media?parent=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}