{"id":16043,"date":"2023-07-18T14:01:37","date_gmt":"2023-07-18T14:01:37","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=16043"},"modified":"2024-02-19T14:52:08","modified_gmt":"2024-02-19T14:52:08","slug":"combining-match-index-and-offset-in-excel","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/","title":{"rendered":"Combining MATCH, INDEX, and OFFSET in Excel"},"content":{"rendered":"\n
Combining-MATCH-INDEX-and-OFFSET-in-Excel<\/a>Download File<\/a><\/div>\n\n\n\n

All of the formulas in Excel are great on their own. Better yet, these formulas are even better when combined.<\/p>\n\n\n\n

In the example below, we will show how to combine some of them: MATCH, INDEX, and OFFSET<\/strong>.<\/p>\n\n\n\n

Combining MATCH, INDEX, and OFFSET<\/h2>\n\n\n\n

For our example, we will use the list of different products that were sold in different periods (months)<\/strong>. This will what our table will look like:<\/p>\n\n\n\n

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

We will first show the MATCH formula<\/strong> and then go from that. We will write our formula in column G, cells G2 and G3<\/strong>. Our formulas will be:<\/p>\n\n\n\n

=MATCH(\"Product B\",B1:D1,0)\n=MATCH(\"Mar\",A2:A6,0)<\/code><\/pre>\n\n\n\n

And the results for these formulas will be 2<\/strong> (position of Product B in the list of products), and 3 (position of the month of March in the list of months)<\/strong>:<\/p>\n\n\n\n

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

Now, the MATCH formula<\/strong> is pretty obvious. It finds us the relative position of the lookup value in our array.<\/p>\n\n\n\n

For the next thing, we will insert the INDEX and MATCH<\/strong> formulas together:<\/p>\n\n\n\n

=INDEX(B2:D6,G3,G2)<\/code><\/pre>\n\n\n\n

In the table, it looks like this:<\/p>\n\n\n\n

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

As seen in the formula, our array is B2:D6<\/strong>, our row number will be the number 3<\/strong> (the row that corresponds to the month of March), and the column number will be number 2<\/strong> (the column of Product B).<\/p>\n\n\n\n

We use INDEX to get the number $117,680<\/strong>.<\/p>\n\n\n\n

To use OFFSET <\/strong>in combination with these two formulas, we will write down the following formula:<\/p>\n\n\n\n

=INDEX(OFFSET(A1,MATCH(\"Product B\",B1:D1,0),MATCH(\"Mar\",A2:A6,0)),1,1)<\/code><\/pre>\n\n\n\n

This formula will return number<\/strong> $131,965<\/strong>, located in cell D3<\/strong>:<\/p>\n\n\n\n

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

But how did we get here? First, we have to look at MATCH formulas<\/strong>. First one: MATCH(\u201cProduct B\u201d, B1:D1,0) <\/strong>searches for Product B in the first row<\/strong>, and it will find it in cell C1<\/strong>, or position number 2<\/strong>. Second MATCH function: MATCH(“Mar”, A2:A6,0)<\/strong> searches for the month of March<\/strong> in the list of our months, and it is located in position number 3<\/strong>.<\/p>\n\n\n\n

OFFSET function<\/strong> has three mandatory parameters:<\/strong> reference, rows, and columns<\/strong>, and two optional (height and weight)<\/strong>. We first declare our reference cell and then define the number of rows and columns that we will offset from this original cell.<\/p>\n\n\n\n

OFFSET function<\/strong> will return a range that starts from cell A1 (OFFSET(A1, part of the formula)<\/strong> and shifts from this cell by the number of rows and columns that we defined in our MATCH functions<\/strong>. First MATCH is the offset for rows from our defined cell, so we will move for 2 rows<\/strong> from our number. The second MATCH<\/strong> is the offset for columns, and we will move for 3 columns<\/strong> from column A<\/strong>.<\/p>\n\n\n\n

In the end, INDEX(range,1,1)<\/strong> retrieves the value at the intersection of the range obtained from OFFSET<\/strong>. The 1s as arguments<\/strong> refer to the first row and first column of the range.<\/p>\n","protected":false},"excerpt":{"rendered":"

All of the formulas in Excel are great on their own. Better yet, these formulas are even better when combined. In the example…<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[170],"yoast_head":"\nCombining MATCH, INDEX, and OFFSET in Excel<\/title>\n<meta name=\"description\" content=\"Combine MATCH, INDEX, and OFFSET formulas in Excel to analyze data. Download the file to learn how to use these formulas effectively.\" \/>\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\/combining-match-index-and-offset-in-excel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Combining MATCH, INDEX, and OFFSET in Excel\" \/>\n<meta property=\"og:description\" content=\"Combine MATCH, INDEX, and OFFSET formulas in Excel to analyze data. Download the file to learn how to use these formulas effectively.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-18T14:01:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T14:52:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png\" \/>\n<meta name=\"author\" content=\"Harun Spahic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Harun Spahic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"Combining MATCH, INDEX, and OFFSET in Excel\",\"datePublished\":\"2023-07-18T14:01:37+00:00\",\"dateModified\":\"2024-02-19T14:52:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/\"},\"wordCount\":455,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png\",\"keywords\":[\"file\"],\"articleSection\":[\"formulas\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/\",\"url\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/\",\"name\":\"Combining MATCH, INDEX, and OFFSET in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png\",\"datePublished\":\"2023-07-18T14:01:37+00:00\",\"dateModified\":\"2024-02-19T14:52:08+00:00\",\"description\":\"Combine MATCH, INDEX, and OFFSET formulas in Excel to analyze data. Download the file to learn how to use these formulas effectively.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png\",\"width\":354,\"height\":172},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Combining MATCH, INDEX, and OFFSET in Excel\"}]},{\"@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\/694491c70f776081acdac4ae41f222a2\",\"name\":\"Harun Spahic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"caption\":\"Harun Spahic\"},\"sameAs\":[\"http:\/\/human.bsru.ac.th\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Combining MATCH, INDEX, and OFFSET in Excel","description":"Combine MATCH, INDEX, and OFFSET formulas in Excel to analyze data. Download the file to learn how to use these formulas effectively.","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\/combining-match-index-and-offset-in-excel\/","og_locale":"en_US","og_type":"article","og_title":"Combining MATCH, INDEX, and OFFSET in Excel","og_description":"Combine MATCH, INDEX, and OFFSET formulas in Excel to analyze data. Download the file to learn how to use these formulas effectively.","og_url":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/","article_published_time":"2023-07-18T14:01:37+00:00","article_modified_time":"2024-02-19T14:52:08+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"Combining MATCH, INDEX, and OFFSET in Excel","datePublished":"2023-07-18T14:01:37+00:00","dateModified":"2024-02-19T14:52:08+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/"},"wordCount":455,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png","keywords":["file"],"articleSection":["formulas"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/","url":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/","name":"Combining MATCH, INDEX, and OFFSET in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png","datePublished":"2023-07-18T14:01:37+00:00","dateModified":"2024-02-19T14:52:08+00:00","description":"Combine MATCH, INDEX, and OFFSET formulas in Excel to analyze data. Download the file to learn how to use these formulas effectively.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2023\/07\/word-image-16043-1.png","width":354,"height":172},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/formulas\/combining-match-index-and-offset-in-excel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Combining MATCH, INDEX, and OFFSET in Excel"}]},{"@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\/694491c70f776081acdac4ae41f222a2","name":"Harun Spahic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","caption":"Harun Spahic"},"sameAs":["http:\/\/human.bsru.ac.th\/"]}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/16043"}],"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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=16043"}],"version-history":[{"count":1,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/16043\/revisions"}],"predecessor-version":[{"id":16049,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/16043\/revisions\/16049"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=16043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=16043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=16043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}