{"id":173424,"date":"2019-12-13T13:01:04","date_gmt":"2019-12-13T07:31:04","guid":{"rendered":"https:\/\/www.digitalvidya.com\/blog\/?p=173424"},"modified":"2026-10-30T08:57:23","modified_gmt":"2026-10-30T03:27:23","slug":"hlookup-in-excel","status":"publish","type":"post","link":"https:\/\/www.digitalvidya.com\/blog\/hlookup-in-excel\/","title":{"rendered":"Ultimate Guide on Using Hlookup in Excel"},"content":{"rendered":"<p>Here is a guide for Hlookup in excel for the beginners. You first need to understand the concept of Hlookup in excel and how we can use it for an excel sheet.<\/p>\n<p>An excel sheet contains rows and columns. Take an example where you want to retrieve data from any particular row or a column. It\u2019s a headache to go through all the rows and columns. Here is where the Hlookup and Vlookup Functions into being.<\/p>\n<p>Hlookup stands for Horizontal lookup and Vlookup stands for Vertical lookup. Here we will discuss about Hlookup in excel function and how it is used in an excel sheet for different cases. Hlookup in excel retrieves a value from a row in a corresponding column.<\/p>\n<p>Let\u2019s talk about how lookup tables started. Before the invention of computers lookup tables were used to speed up the calculations.<\/p>\n<blockquote><p><strong>In computer spreadsheets, lookup tables were the earliest functionality that was used with initial version of VisiCalc in 1979.<\/strong><\/p><\/blockquote>\n<p>Then it was followed by spreadsheets like Microsoft Excel. The first form of lookup tables are <a href=\"https:\/\/www.digitalvidya.com\/blog\/vlookup-and-hlookup\/\">Hlookup and Vlookup<\/a> whereas in Microsoft the Vlookup functionality was started on 28th august 2019. Before talking about Hlookup in excel, you need to know the fundamentals about excel.<\/p>\n<div class=\"cta-form\"><div class=\"content\"><div class=\"left-block\"><div class=\"section-title\">Want to Know the Path to Become a <strong> Data Science Expert?<\/strong><\/div><div class=\"desc\"><p>Download Detailed Brochure and Get Complimentary access to Live Online Demo Class with Industry Expert.<\/p>\n<\/div><div class=\"time\"> Date: November 7 (Sat) | 11 AM - 12 PM (IST)<\/div><\/div><div class=\"right-block\"><script>\nvar gform;gform||(document.addEventListener(\"gform_main_scripts_loaded\",function(){gform.scriptsLoaded=!0}),document.addEventListener(\"gform\/theme\/scripts_loaded\",function(){gform.themeScriptsLoaded=!0}),window.addEventListener(\"DOMContentLoaded\",function(){gform.domLoaded=!0}),gform={domLoaded:!1,scriptsLoaded:!1,themeScriptsLoaded:!1,isFormEditor:()=>\"function\"==typeof InitializeEditor,callIfLoaded:function(o){return!(!gform.domLoaded||!gform.scriptsLoaded||!gform.themeScriptsLoaded&&!gform.isFormEditor()||(gform.isFormEditor()&&console.warn(\"The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1.\"),o(),0))},initializeOnLoaded:function(o){gform.callIfLoaded(o)||(document.addEventListener(\"gform_main_scripts_loaded\",()=>{gform.scriptsLoaded=!0,gform.callIfLoaded(o)}),document.addEventListener(\"gform\/theme\/scripts_loaded\",()=>{gform.themeScriptsLoaded=!0,gform.callIfLoaded(o)}),window.addEventListener(\"DOMContentLoaded\",()=>{gform.domLoaded=!0,gform.callIfLoaded(o)}))},hooks:{action:{},filter:{}},addAction:function(o,r,e,t){gform.addHook(\"action\",o,r,e,t)},addFilter:function(o,r,e,t){gform.addHook(\"filter\",o,r,e,t)},doAction:function(o){gform.doHook(\"action\",o,arguments)},applyFilters:function(o){return gform.doHook(\"filter\",o,arguments)},removeAction:function(o,r){gform.removeHook(\"action\",o,r)},removeFilter:function(o,r,e){gform.removeHook(\"filter\",o,r,e)},addHook:function(o,r,e,t,n){null==gform.hooks[o][r]&&(gform.hooks[o][r]=[]);var d=gform.hooks[o][r];null==n&&(n=r+\"_\"+d.length),gform.hooks[o][r].push({tag:n,callable:e,priority:t=null==t?10:t})},doHook:function(r,o,e){var t;if(e=Array.prototype.slice.call(e,1),null!=gform.hooks[r][o]&&((o=gform.hooks[r][o]).sort(function(o,r){return o.priority-r.priority}),o.forEach(function(o){\"function\"!=typeof(t=o.callable)&&(t=window[t]),\"action\"==r?t.apply(null,e):e[0]=t.apply(null,e)})),\"filter\"==r)return e[0]},removeHook:function(o,r,t,n){var e;null!=gform.hooks[o][r]&&(e=(e=gform.hooks[o][r]).filter(function(o,r,e){return!!(null!=n&&n!=o.tag||null!=t&&t!=o.priority)}),gform.hooks[o][r]=e)}});\n<\/script>\n\n                <div class='gf_browser_unknown gform_wrapper gravity-theme gform-theme--no-framework dv-form_wrapper' data-form-theme='gravity-theme' data-form-index='0' id='gform_wrapper_287' ><div id='gf_287' class='gform_anchor' tabindex='-1'><\/div><form method='post' enctype='multipart\/form-data' target='gform_ajax_frame_287' id='gform_287' class='dv-form' action='\/blog\/wp-json\/wp\/v2\/posts\/173424#gf_287' data-formid='287' novalidate>\n                        <div class='gform-body gform_body'><div id='gform_fields_287' class='gform_fields top_label form_sublabel_below description_below validation_below' data-column-layout='fill'><div id=\"field_287_38\" class=\"gfield gfield--type-honeypot gform_validation_container field_sublabel_below gfield--has-description field_description_below field_validation_below gfield_visibility_visible\"><label id='gfield_label_287_38' class='gfield_label gform-field-label' for='input_287_38'><span class='gform-field-label__text'>Name<\/span><\/label><div class='ginput_container'><input name='input_38' id='input_287_38' type='text' value='' autocomplete='new-password'\/><\/div><div class='gfield_description' id='gfield_description_287_38'>This field is for validation purposes and should be left unchanged.<\/div><\/div><div id=\"field_287_28\" class=\"gfield gfield--type-text gfield_contains_required field_sublabel_below gfield--no-description field_description_below hidden_label field_validation_below gfield_visibility_visible\" data-group-id=\"0b750474\" data-field-span=\"12\"><label id='gfield_label_287_28' class='gfield_label gform-field-label' for='input_287_28'><span class='gform-field-label__text'>Name<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_28' id='input_287_28' type='text' value='' class='large'    placeholder='Name *' aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_287_2\" class=\"gfield gfield--type-email gfield_contains_required field_sublabel_below gfield--no-description field_description_below hidden_label field_validation_below gfield_visibility_visible\" data-group-id=\"072ffd20\" data-field-span=\"12\"><label id='gfield_label_287_2' class='gfield_label gform-field-label' for='input_287_2'><span class='gform-field-label__text'>Email<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_email'>\n                            <input name='input_2' id='input_287_2' type='email' value='' class='large'   placeholder='Email *' aria-required=\"true\" aria-invalid=\"false\"  \/>\n                        <\/div><\/div><div id=\"field_287_3\" class=\"gfield gfield--type-phone gfield--phone-format-international gfield_contains_required field_sublabel_below gfield--no-description field_description_below hidden_label field_validation_below gfield_visibility_visible\" data-group-id=\"fb74ff73\" data-field-span=\"12\"><label id='gfield_label_287_3' class='gfield_label gform-field-label' for='input_287_3'><span class='gform-field-label__text'>Phone<\/span><span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_phone'><input name='input_3' id='input_287_3' type='tel' value='' class='large'  placeholder='Phone *' aria-required=\"true\" aria-invalid=\"false\"    \/><\/div><\/div><div id=\"field_287_34\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"d282b9bf\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_34' id='input_287_34' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='fmc' \/><\/div><\/div><div id=\"field_287_9\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"abbe44e0\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_9' id='input_287_9' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_10\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"6bb0f8f7\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_10' id='input_287_10' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_11\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"abca14e4\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_11' id='input_287_11' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_12\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"bb7ccecc\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_12' id='input_287_12' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/posts\/173424' \/><\/div><\/div><div id=\"field_287_13\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"b14b65ed\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_13' id='input_287_13' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_14\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"784ad2bb\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_14' id='input_287_14' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_15\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"929da23e\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_15' id='input_287_15' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_17\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"7001807b\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_17' id='input_287_17' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_18\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"3852ca80\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_18' id='input_287_18' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_19\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"457bbd58\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_19' id='input_287_19' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_20\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"00d26dbf\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_20' id='input_287_20' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='{dmo_day}' \/><\/div><\/div><div id=\"field_287_25\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"5252a88f\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_25' id='input_287_25' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='{dmo_date}' \/><\/div><\/div><div id=\"field_287_24\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"4037e7e1\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_24' id='input_287_24' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='{dmo_time}' \/><\/div><\/div><div id=\"field_287_35\" class=\"gfield gfield--type-hidden gfield--width-full gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"82604d47\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_35' id='input_287_35' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='{dmo_time}' \/><\/div><\/div><div id=\"field_287_36\" class=\"gfield gfield--type-hidden gfield--width-full gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"2051ebb8\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_36' id='input_287_36' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_37\" class=\"gfield gfield--type-hidden gfield--width-full gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"d02e7f66\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_37' id='input_287_37' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_287_22\" class=\"gfield gfield--type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\" data-group-id=\"5edd3348\" data-field-span=\"12\"><div class='ginput_container ginput_container_text'><input name='input_22' id='input_287_22' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><\/div><\/div>\n        <div class='gform-footer gform_footer top_label'> <button type='submit' id='gform_submit_button_287' class='gform_button button' onclick='gform.submission.handleButtonClick(this);' data-submission-type='submit' >Register Now<\/button> <input type='hidden' name='gform_ajax' value='form_id=287&amp;title=&amp;description=&amp;tabindex=0&amp;theme=gravity-theme&amp;styles=[]&amp;hash=0c9c234943f312d5985375593e68ff15' \/>\n            <input type='hidden' class='gform_hidden' name='gform_submission_method' data-js='gform_submission_method_287' value='iframe' \/>\n            <input type='hidden' class='gform_hidden' name='gform_theme' data-js='gform_theme_287' id='gform_theme_287' value='gravity-theme' \/>\n            <input type='hidden' class='gform_hidden' name='gform_style_settings' data-js='gform_style_settings_287' id='gform_style_settings_287' value='[]' \/>\n            <input type='hidden' class='gform_hidden' name='is_submit_287' value='1' \/>\n            <input type='hidden' class='gform_hidden' name='gform_submit' value='287' \/>\n            \n            <input type='hidden' class='gform_hidden' name='gform_currency' data-currency='USD' value='Z+H4whPmKDCI7gc4awJpZPc5iDVfvMwAxbVh6msiK2\/tK7wjdT7yhZelSU1BLrC5M+p01Xq0bAvghK3uST81xj4MO8VaVsI52MzS8J8E\/BOHejE=' \/>\n            <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' \/>\n            <input type='hidden' class='gform_hidden' name='state_287' value='WyJ7XCJnZm9ybV9zdWJtaXNzaW9uX21ldGhvZFwiOltcImMwNzkzMWJhYTQwODc4ZDNmNGY5ZjM0ZTQ0NWFmNTlhXCIsXCJjZTU4ZTE1NTJlZDUxOTY2N2Y0ZmQwNDJhM2JiOTczNlwiLFwiYzNlNjk3N2UwYWZiYjNlNzMwNGUwODE1NmI4ZGNiY2VcIl0sXCJnZm9ybV90aGVtZVwiOlwiMjZiODdiMzcyY2E4MTIwZjMxMTU2MDVlNTY5YmY1YjRcIixcImdmb3JtX3N0eWxlX3NldHRpbmdzXCI6XCJmOTIxZDlmNTA4ZDE1Yzk0NmJmNWIwOTg2MGVhNTlkYVwiLFwiZm9ybV9pZFwiOlwiMTVkNGE5MDM5NjA2MzZlYmE3ZjU2NzE5NTNiMGI3MjdcIixcInVybFwiOlwiYTYwMTg2OGM2MDhkYzNmMTAzYWFiYTAyNWNjMGVlNzlcIixcInN0YXRlX3RpbWVzdGFtcFwiOlwiNmQ0NzlkZGI0NzRhMGQ0MTUxNjQyMWYyZTY3NTBkNjlcIn0iLCI1ZWFlZWM0ZWE1OGM0MzkyMmQyYTIyOTkzOWQxMTVkOSIsMTc5MzgyMDk5NV0=' \/>\n            <input type='hidden' autocomplete='off' class='gform_hidden' name='gform_target_page_number_287' id='gform_target_page_number_287' value='0' \/>\n            <input type='hidden' autocomplete='off' class='gform_hidden' name='gform_source_page_number_287' id='gform_source_page_number_287' value='1' \/>\n            <input type='hidden' name='gform_field_values' value='' \/>\n            \n        <\/div>\n                        <p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"ak_\"><label>&#916;<textarea name=\"ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"ak_js\" value=\"53\"\/><script>\ndocument.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );\n<\/script>\n<\/p><\/form>\n                        <\/div>\n\t\t                <iframe style='display:none;width:0px;height:0px;' src='about:blank' name='gform_ajax_frame_287' id='gform_ajax_frame_287' title='This iframe contains the logic required to handle Ajax powered Gravity Forms.'><\/iframe>\n\t\t                <script>\ngform.initializeOnLoaded( function() {jQuery('#gform_ajax_frame_287').on('load',function(){var contents = jQuery(this).contents().find('*').html();var is_postback = contents.indexOf('GF_AJAX_POSTBACK') >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find('#gform_wrapper_287');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_287').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){jQuery('#gform_wrapper_287').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_287').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_287').removeClass('gform_validation_error');}setTimeout( function() { \/* delay the scroll by 50 milliseconds to fix a bug in chrome *\/ jQuery(document).scrollTop(jQuery('#gform_wrapper_287').offset().top - mt); }, 50 );var current_page = jQuery('#gform_source_page_number_287').val();jQuery(document).trigger('gform_page_loaded', [287, current_page]);window['gf_submitting_287'] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find('.GF_AJAX_POSTBACK').html();if(!confirmation_content){confirmation_content = contents;}jQuery('#gform_wrapper_287').replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery('#gf_287').offset().top - mt);jQuery(document).trigger('gform_confirmation_loaded', [287]);if(window.gform && gform.pagination && gform.pagination.removePageQueryArg){gform.pagination.removePageQueryArg(287);}window['gf_submitting_287'] = false;wp.a11y.speak(jQuery('#gform_confirmation_message_287').text());}else{jQuery('#gform_287').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger(\"gform_pre_post_render\", [{ formId: \"287\", currentPage: \"current_page\", abort: function() { this.preventDefault(); } }]);        if (event && event.defaultPrevented) {                return;        }        const gformWrapperDiv = document.getElementById( \"gform_wrapper_287\" );        if ( gformWrapperDiv ) {            const visibilitySpan = document.createElement( \"span\" );            visibilitySpan.id = \"gform_visibility_test_287\";            gformWrapperDiv.insertAdjacentElement( \"afterend\", visibilitySpan );        }        const visibilityTestDiv = document.getElementById( \"gform_visibility_test_287\" );        let postRenderFired = false;        function triggerPostRender() {            if ( postRenderFired ) {                return;            }            postRenderFired = true;            gform.core.triggerPostRenderEvents( 287, current_page );            if ( visibilityTestDiv ) {                visibilityTestDiv.parentNode.removeChild( visibilityTestDiv );            }        }        function debounce( func, wait, immediate ) {            var timeout;            return function() {                var context = this, args = arguments;                var later = function() {                    timeout = null;                    if ( !immediate ) func.apply( context, args );                };                var callNow = immediate && !timeout;                clearTimeout( timeout );                timeout = setTimeout( later, wait );                if ( callNow ) func.apply( context, args );            };        }        const debouncedTriggerPostRender = debounce( function() {            triggerPostRender();        }, 200 );        if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) {            const observer = new MutationObserver( ( mutations ) => {                mutations.forEach( ( mutation ) => {                    if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) {                        debouncedTriggerPostRender();                        observer.disconnect();                    }                });            });            observer.observe( document.body, {                attributes: true,                childList: false,                subtree: true,                attributeFilter: [ 'style', 'class' ],            });        } else {            triggerPostRender();        }    } );} );\n<\/script>\n<\/div><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"what-is-hlookup-in-excel\"><\/span>What is Hlookup in excel?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Hlookup in excel function looks like:<\/p>\n<p><strong>=HLOOKUP(value to look for, table area, row number)<\/strong><\/p>\n<p>Let us consider examples of Hlookup function in excel. This example would help you to understand what is Hlookup in excel.<\/p>\n<p>Consider an excel sheet that contains marks of students. Below is a table that contains marks of five students in four subjects.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-16_d254eb47afb8fc53bff06aa77234a8a9.png\" alt=\"\" class=\"aligncenter wp-image-173425\" width=\"521\" height=\"151\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"how-to-use-hlookup-in-excel\"><\/span>How to use Hlookup in Excel?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The above excel sheet clearly shows the marks of students but if you want to retrieve marks in English subject of student whose name is Suraj. You can use Hlookup function as follows:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-17_2c0999773c93189d65014bc5c1506081.png\" alt=\"\" class=\"aligncenter wp-image-173426\" width=\"676\" height=\"162\" title=\"\"><\/p>\n<p>Now you need to choose Hlookup function to retrieve information about the Student.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-18_f8ba3330fbde346d397836010236955d.png\" alt=\"\" class=\"aligncenter wp-image-173427\" width=\"551\" height=\"191\" title=\"\"><\/p>\n<p>Here in the above image you would see three things which are important to retrieve the information in the table. The function is as follows:<\/p>\n<p><strong>=Hlookup(lookup_value, table_array, row_index_num[range_lookup])<\/strong><\/p>\n<p><strong>Lookup_value:<\/strong> Here we want to retrieve information about the student whose name is Suraj. We would write \u201cSuraj\u201d lookup_value.<\/p>\n<p><strong>Table_array:<\/strong> This value includes the rows of data to search the lookup value. Here we would take the table array as A1:F5 because with the reference to cell A1 and F5 we can get the marks of the \u201cSuraj\u201d.<\/p>\n<p><strong>Row_index_num:<\/strong> We can say that row index number the row from which we want to perform the lookup function. Here we want the marks of Suraj in English subject. Thus, the row_index_num is 4 as we are fetching the value from the fourth row of the table. Similarly, if we wanted to retrieve marks of Suraj in SST, we would have taken row_index_num as 5.<\/p>\n<p>When we fill up all the above values our excel sheet would look like the picture given below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-19_0bc7e2ddb1c94b26448c874aaaca5fbf.png\" alt=\"\" class=\"aligncenter wp-image-173428\" width=\"561\" height=\"217\" title=\"\"><\/p>\n<p>The result that you get after pressing the enter key is:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-20_7af1bfe81cc67cd438fce6e46be12f91.png\" alt=\"\" class=\"aligncenter wp-image-173429\" width=\"580\" height=\"205\" title=\"\"><\/p>\n<p>Now when we know what is Hlookup in excel, it is very easy to perform but there are some important points that we need to keep in mind:<\/p>\n<p>(i) The Hlookup function makes the lookup easy but is not case sensitive. Hlookup in excel example is if we write \u201cAmy\u201d and \u201cAMY\u201d. Both the letters would be considered the same.<\/p>\n<p>(ii) The \u201clookup_value\u201d in Hlookup function should be the topmost row of the \u201ctable_array\u201d. If you are looking for something extra or something else then you should use another Excel formula.<\/p>\n<p>(iii) Only if \u201clookup_value\u201d is text, the Hlookup in excel will support wildcard characters like \u201c*\u201d (asterisk mark) or \u201c?\u201d (question mark)<\/p>\n<p>Here is Hlookup in excel example for wildcard character \u201c*\u201d. If we want to retrieve marks of student whose name starts with \u201cS\u201d then we can use the lookup_value as \u201cS*\u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-21_9d08eb2e9fa616bb7b403398e010ac84.png\" alt=\"\" class=\"aligncenter wp-image-173431\" width=\"610\" height=\"240\" title=\"\"><\/p>\n<p>(i) #N\/A error: Another thing in Hlookup function in excel is \u201crange_lookup\u201d. This value can either be \u201cTRUE\u201d or \u201cFALSE\u201d. #N\/A error would be returned by Hlookup in excel if the \u201crange_lookup\u201d is FALSE as well as for the given range, Hlookup function is unable to find the \u201clookup_value\u201d. In such a case you can also include the function named IFERROR. With this IFError function you can display your own message. Take an Hlookup in excel example for IFERROR function as: =IFERROR(HLOOKUP(A5, A1:F5, 4, FALSE), \u201cNo value found\u201d. Thus, if Hlookup function will not be able to search the value it would automatically display the message as \u201cNo value found\u201d.<\/p>\n<p>(ii) What if the \u201crow_index_num\u201d is less than 1? It is obvious that the Hlookup function would return #VALUE!error.<\/p>\n<p>(iii) What if the row_index_num is greater than the number of columns in the given \u201ctable_array\u201d? In this case the Hlookup function in excel returns #REF!error.<\/p>\n<p>(iv) One thing that we need to keep in mind is that Hlookup in excel can only return one value. This value is called the \u201clookup_value\u201d.<\/p>\n<p>(v) You can consider another case where there are some records that match each other. How to use Hlookup in excel in such a case? What we recommend you in this case is to create a Pivot table so that these records are grouped or you can just remove such records so that they aren\u2019t identical to each other. You can then use the array formula in Pivot table which would help you to retrieve all the duplicate values in the lookup range of excel sheet.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"how-to-use-hlookup-in-excel-from-another-sheet\"><\/span>How to use Hlookup in Excel from Another Sheet?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let\u2019s now consider another Hlookup in excel example which will make a clear view about what is Hlookup in excel, where there are two excel sheets.<\/p>\n<p>Here we are taking an example of the previous table that contains marks of students in different subjects.<\/p>\n<p>Consider two sheets such that Sheet1 is the table that we have considered in previous example and Sheet2 is another table. The below are the images of both the sheets.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-22_77f3cd4e2f022c2cecb39347505588fb.png\" alt=\"\" class=\"aligncenter wp-image-173432\" width=\"406\" height=\"421\" title=\"\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-23_b9891792f7e6be3e20655f2c37642ea8.png\" alt=\"\" class=\"aligncenter wp-image-173433\" width=\"420\" height=\"488\" title=\"\"><\/p>\n<p>It is clear from the above images that the marks in Management from sheet2 are in context to marks in sheet1. If we want to extract information from sheet2 and want it to be displayed in sheet1, we will use the following formula:<\/p>\n<p>=HLOOKUP(B1,Sheet2!B1:B2,2)<\/p>\n<p>Here in the above formula the Hlookup in excel will look up the cell B1 first, which will let it know that it needs to retrieve the marks of Rahul, then it would use the table_array in the second sheet which we have used B1:B2 and the row_index_num is 2. This will retrieve the marks of Rahul in Management subject. The Result so obtained is 78 from Sheet2.<\/p>\n<p>The below image shows we have used the Hlookup function to retrieve information from the Sheet2.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-24_f0a6a70ff4e385c0af9fb9f39bb27bf6.png\" alt=\"\" class=\"aligncenter wp-image-173434\" width=\"548\" height=\"201\" title=\"\"><\/p>\n<p dir=\"ltr\"><span style=\"font-weight: 400\">The result so obtained in cell B6 is 78.<\/span><\/p>\n<p dir=\"ltr\"><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-25_8c5f3e8726ef070a71f8758047d5c384.png\" alt=\"\" class=\"aligncenter wp-image-173435\" width=\"546\" height=\"171\" title=\"\"><\/p>\n<p dir=\"ltr\">Likewise, if we want to retrieve the information in all the cells from the Sheet2 from Sheet1, we will use Hlookup formulas for all the different cells. To retrieve marks of Nisha in Management, we would use the following Hlookup formula:<\/p>\n<p dir=\"ltr\">=HLOOKUP(A1,Sheet2!A1:C2,2)<\/p>\n<p dir=\"ltr\">In this manner we would get the result 82.<\/p>\n<p dir=\"ltr\">Thus, in this manner Hlookup function can be used to retrieve information from the sheet2 to sheet1. Here is the result so obtained:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.digitalvidya.com\/blog\/wp-content\/uploads\/2019\/12\/Capture-26_bd3c3c915aa22052ab72023fe5e63dc7.png\" alt=\"\" class=\"aligncenter wp-image-173436\" width=\"564\" height=\"171\" title=\"\"><\/p>\n<p>To understand Hlookup in excel in two different worksheets you can go through this tutorial<\/p>\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe title=\"E1.7.1 HLOOKUP Across Two Worksheets in Excel\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/YqBPJKoLCYk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<h2><span class=\"ez-toc-section\" id=\"how-to-use-hlookup-in-excel-to-retrieve-values-from-a-single-horizontal-lookup\"><\/span>How to use Hlookup in excel to retrieve values from a single horizontal lookup?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>What do we mean by single horizontal lookup? This means that what if we want the Hlookup function in array form. How to use Hlookup in excel if we want information about a single value. Let us consider an example in which we want to retrieve marks of \u201cRohit\u201d from the previous table. The formula would contain a little change. Let\u2019s see how we would use the Hlookup formula then?<\/p>\n<p>The formula so used seems to be<\/p>\n<p><strong>=HLOOKUP(&#8220;Rohit&#8221;A1:F6,{1,2,3,4,5},FALSE)<\/strong><\/p>\n<p>After writing this formula we need to press CTRL+SHIFT+ENTER instead of pressing only ENTER button because this will encloses the Hlookup function formula inside the curly braces and gives us the result without any error.<\/p>\n<p>In this way we can retrieve all marks of \u201cRohit\u201d using Hlookup Function.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"important-notes-that-we-need-to-keep-in-mind-for-using-hlookup-in-excel\"><\/span>Important notes that we need to keep in mind for using HLOOKUP in Excel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>What is Hlookup in excel? Hlookup is a function of excel that is used to search for a value in the first row of a table. With matched row and matched column, this function retrieves a specific value from the specified row.<\/p>\n<p>People often get confused when to use HLOOKUP function and VLOOKUP function. HLOOKUP function is used when we need to retrieve information about a row and lookup values are located in the first row of a table while <a href=\"https:\/\/www.digitalvidya.com\/blog\/what-is-vlookup-in-excel\/\">VLOOKUP function<\/a> is used when we need to retrieve information about column and lookup values are located in the first column of a table.<\/p>\n<p>(i) Range_lookup: Range_lookup is used when the value needs to match exactly or not and is optional in many cases. If we do not mention the range_lookup value then it considers TRUE as its default value. This default TRUE value allows a nonexact match.<\/p>\n<p>(ii) If we want an exact match then we need to use a FALSE value to the range_lookup value.<\/p>\n<p>(iii) What does the range_lookup value mean if we set it TRUE. This is the default value of range_lookup value for Hlookup function in excel. It means a non-exact match as discussed in the first point and this causes Hlookup function to match the nearest value in the table which is actually less than the value.<\/p>\n<p>(iv) What happens we omit range_lookup value in hlookup function? It uses a non-exact match but it uses an exact match if it is possible or it exists.<\/p>\n<p>Want to know other advanced excel tricks being a Data Analyst? Take up the <a href=\"https:\/\/www.digitalvidya.com\/blog\/data-analytics-using-excel\/\">Data Analytics Course<\/a> and elevate your career.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a guide for Hlookup in excel for the beginners. You first need to understand the concept of Hlookup in excel and how we can use it for an excel sheet. An excel sheet contains rows and columns. Take an example where you want to retrieve data from any particular row or a column. [&hellip;]<\/p>\n","protected":false},"author":21575,"featured_media":173974,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[380],"tags":[],"class_list":["post-173424","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-analytics"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/posts\/173424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/users\/21575"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/comments?post=173424"}],"version-history":[{"count":0,"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/posts\/173424\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/media\/173974"}],"wp:attachment":[{"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/media?parent=173424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/categories?post=173424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalvidya.com\/blog\/wp-json\/wp\/v2\/tags?post=173424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}