{"id":5489,"date":"2021-02-02T10:55:39","date_gmt":"2021-02-02T10:55:39","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=5489"},"modified":"2024-03-29T13:43:49","modified_gmt":"2024-03-29T13:43:49","slug":"find-multiple-values","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/","title":{"rendered":"Find Multiple Values in Excel"},"content":{"rendered":"\n
Find-Multiple-Values-in-Excel<\/a>Download File<\/a><\/div>\n\n\n\n

Find and Replace<\/h2>\n\n\n\n

The easiest way to find multiple values in Excel is to use the Find<\/strong> feature.<\/p>\n\n\n\n

First, select the cells you want to be searched.<\/p>\n\n\n\n

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

Then navigate to Home >> Editing >> Find & Select >> Find<\/strong>. You can also use the Ctrl + F<\/strong> keyboard shortcut for quick access.<\/p>\n\n\n\n

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

Click the Find All<\/strong> button to search the entire selected area. It will show a list of cells meeting the criterion.<\/p>\n\n\n\n

Without doing anything else, press Ctrl + A<\/strong> shortcut to select all of them.<\/p>\n\n\n\n

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

Click Close<\/strong>.<\/p>\n\n\n\n

Now, instead of all the previously selected values, only three cells are selected – the ones with the phrase “John”.<\/p>\n\n\n\n

If you click Options >><\/strong>, before clicking Find All<\/strong>, you can find additional settings, for example, you can force Excel to search text that matches the case.<\/p>\n\n\n\n

FILTER Function for Excel 365<\/h2>\n\n\n\n

The VLOOKUP<\/strong> function is very useful if you want to find a value based on a lookup value. It only works for unique values<\/a>. If the are duplicates<\/a>, the function will return only the first of them.<\/p>\n\n\n\n

So, if the table contains multiple lookup values, this function is not going to work.<\/p>\n\n\n\n

If you want VLOOKUP functionality with multiple values<\/a>, you can use the FILTER<\/strong> function. It is extremely easy to use.<\/p>\n\n\n\n

This function is only available for Excel 365 subscribers, so if you are using a different version of Excel, it’s not going to work for you.<\/p>\n\n\n\n

Let’s see how it looks like using this example:<\/p>\n\n\n\n

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

Now, we are going to display all orders of John Doe.<\/p>\n\n\n\n

First, let’s use the VLOOKUP function. Insert this formula into cell B10<\/strong>.<\/p>\n\n\n\n

=VLOOKUP(A10,A2:B6,2,FALSE)<\/code><\/pre>\n\n\n\n

The formula returns the first John Doe’s order on the list.<\/p>\n\n\n\n

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

But two other orders should be included.<\/p>\n\n\n\n

Now, let’s use the FILTER<\/strong> function.<\/p>\n\n\n\n

Insert the new formula into cell B10<\/strong>:<\/p>\n\n\n\n

=FILTER(B2:B6, A2:A6=A10)<\/code><\/pre>\n\n\n\n

This is the result:<\/p>\n\n\n\n

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

It’s very easy and fun to use, but it’s not available in the previous versions of Excel. Let’s find out how we can create a formula that works similarly for someone who doesn’t use Excel 365.<\/p>\n\n\n\n

INDEX function<\/h2>\n\n\n\n

We are going to use the INDEX<\/strong> function to achieve a result similar to that of the FILTER<\/strong> function. Enter this formula in cell B2<\/strong>:<\/p>\n\n\n\n

=INDEX($A$1:$B$6,SMALL(IF($A$1:$A$6=$A$10,ROW($A$1:$A$6)),ROW(1:1)),2)<\/code><\/pre>\n\n\n\n

This formula returns the first occurrence of John Doe’s order: A281<\/strong>.<\/p>\n\n\n\n

If you Autofill<\/a> the remaining cells you are going to get the remaining orders.<\/p>\n\n\n\n

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

Let’s break this formula into smaller pieces:<\/p>\n\n\n\n

=IF($A$1:$A$6=$A$10,ROW($A$1:$A$6))<\/code><\/pre>\n\n\n\n

If a cell in range A1:A6<\/strong> equals A10<\/strong> (John Doe), then it returns row number, otherwise, it returns FALSE<\/strong>.<\/p>\n\n\n\n

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

2, 4, and 5 are the rows where the name “John Doe” is present.<\/p>\n\n\n\n

The next part of the formula uses the SMALL<\/strong> function, which returns the n-th smallest value.<\/p>\n\n\n\n

=SMALL(IF($A$1:$A$6=$A$10,ROW($A$1:$A$6)),ROW(1:1))<\/code><\/pre>\n\n\n\n

ROW(1:1)<\/strong> returns the first row. If you use the Autofill, it’s going to return 1, 2, 3, etc. row number.<\/p>\n\n\n\n

The formula will return the numbers: 2, 4, and 5.<\/p>\n\n\n\n

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

The INDEX function returns the value at a given position.<\/p>\n\n\n\n

=INDEX(array, row_number, column_number)<\/code><\/pre>\n\n\n\n

The array is a range A1:A6<\/strong>. Row numbers are 2, 4, 5. The column number is 2.<\/p>\n\n\n\n

=INDEX($A$1:$B$6,SMALL(IF($A$1:$A$6=$A$10,ROW($A$1:$A$6)),ROW(1:1)),2)<\/code><\/pre>\n\n\n\n

If you enter these formulas, you are going to get the same result:<\/p>\n\n\n\n

=INDEX($A$1:$B$6, 2, 2)\n=INDEX($A$1:$B$6, 4, 2)\n=INDEX($A$1:$B$6, 5, 2)<\/code><\/pre>\n\n\n\n

Getting rid of errors<\/h2>\n\n\n\n

If you try to Autofill<\/a> these values beyond matching elements, you are going to get the #NUM!<\/strong> error.<\/p>\n\n\n\n

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

To fix it, you have to use this formula, that deals with this problem:<\/p>\n\n\n\n

=IF(ISERROR(INDEX($A$1:$B$6,SMALL(IF($A$1:$A$6=$A$10,ROW($A$1:$A$6)),ROW(1:1)),2)),\"\",INDEX($A$1:$B$6,SMALL(IF($A$1:$A$6=$A$10,ROW($A$1:$A$6)),ROW(1:1)),2))<\/code><\/pre>\n\n\n\n

You can learn more about the index function and how you can use it to return multiple results<\/a>, read article on this subject.<\/p>\n\n\n\n

Multiple values in a single cell<\/h2>\n\n\n\n

If you prefer to have all orders inside a single cell, separated by a comma, you can do it by creating a formula that contains both the FILTER<\/strong> and TEXTJOIN<\/strong> functions.<\/p>\n\n\n\n

TEXTJOIN joins a range of text strings inside a single cell.<\/p>\n\n\n\n

Insert this formula to cell B10<\/strong>:<\/p>\n\n\n\n

=TEXTJOIN(\", \", TRUE, FILTER(B2:B6, A2:A6=A10))<\/code><\/pre>\n\n\n\n

This is how the result looks like:<\/p>\n\n\n\n

\"\"<\/figure>\n","protected":false},"excerpt":{"rendered":"

Find and Replace The easiest way to find multiple values in Excel is to use the Find feature. First, select the cells you…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[170,190],"yoast_head":"\nFind Multiple Values in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to find multiple values in #Excel using the Find feature and the FILTER function, available for Excel 365 subscribers. Download the example file now!\" \/>\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\/find-multiple-values\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Find Multiple Values in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to find multiple values in #Excel using the Find feature and the FILTER function, available for Excel 365 subscribers. Download the example file now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-02T10:55:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-29T13:43:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Find Multiple Values in Excel\",\"datePublished\":\"2021-02-02T10:55:39+00:00\",\"dateModified\":\"2024-03-29T13:43:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/\"},\"wordCount\":648,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"formulas\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/\",\"url\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/\",\"name\":\"Find Multiple Values in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png\",\"datePublished\":\"2021-02-02T10:55:39+00:00\",\"dateModified\":\"2024-03-29T13:43:49+00:00\",\"description\":\"Learn how to find multiple values in #Excel using the Find feature and the FILTER function, available for Excel 365 subscribers. Download the example file now!\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png\",\"width\":265,\"height\":120},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Find Multiple Values 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.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Find Multiple Values in Excel","description":"Learn how to find multiple values in #Excel using the Find feature and the FILTER function, available for Excel 365 subscribers. Download the example file now!","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\/find-multiple-values\/","og_locale":"en_US","og_type":"article","og_title":"Find Multiple Values in Excel","og_description":"Learn how to find multiple values in #Excel using the Find feature and the FILTER function, available for Excel 365 subscribers. Download the example file now!","og_url":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/","article_published_time":"2021-02-02T10:55:39+00:00","article_modified_time":"2024-03-29T13:43:49+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Find Multiple Values in Excel","datePublished":"2021-02-02T10:55:39+00:00","dateModified":"2024-03-29T13:43:49+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/"},"wordCount":648,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png","keywords":["file","pinterest"],"articleSection":["formulas"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/","url":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/","name":"Find Multiple Values in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png","datePublished":"2021-02-02T10:55:39+00:00","dateModified":"2024-03-29T13:43:49+00:00","description":"Learn how to find multiple values in #Excel using the Find feature and the FILTER function, available for Excel 365 subscribers. Download the example file now!","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/02\/example-select-multiple-values.png","width":265,"height":120},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/formulas\/find-multiple-values\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Find Multiple Values 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."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/5489"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=5489"}],"version-history":[{"count":9,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/5489\/revisions"}],"predecessor-version":[{"id":15147,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/5489\/revisions\/15147"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=5489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=5489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=5489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}