{"id":2849,"date":"2024-09-06T14:43:06","date_gmt":"2024-09-06T06:43:06","guid":{"rendered":"https:\/\/www.fyndpro.com\/?p=2849"},"modified":"2024-10-04T16:20:23","modified_gmt":"2024-10-04T08:20:23","slug":"textjoin-is-here-easily-outshines-vlookup","status":"publish","type":"post","link":"https:\/\/www.fyndpro.com\/en\/textjoin-is-here-easily-outshines-vlookup\/","title":{"rendered":"TEXTJOIN is Here: Easily Outshines VLOOKUP"},"content":{"rendered":"<p>In the past, when faced with lookup and match problems, the first thought that came to mind was the VLOOKUP function. However, as time goes on, VLOOKUP might become less popular due to the introduction of Excel\u2019s new function, TEXTJOIN, which is incredibly powerful.<\/p>\n<h4>1. Basic Usage<\/h4>\n<p>The TEXTJOIN function is primarily used to concatenate text. It consists of multiple parameters:<\/p>\n<ul>\n<li>The first parameter is the delimiter for the text.<\/li>\n<li>The second parameter indicates whether to ignore empty values (TRUE to ignore, FALSE not to ignore).<\/li>\n<li>The third parameter is the text content to be joined, which can be a range of cells.<\/li>\n<\/ul>\n<p>For example:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2851\" src=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=1024%2C414&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"414\" srcset=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=1024%2C414&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=150%2C61&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=768%2C310&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=1536%2C621&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=2048%2C828&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-1.png?resize=18%2C7&amp;ssl=1 18w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em>=TEXTJOIN(&#8220;\\&#8221;, TRUE, A1:A5) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This will combine the values in cells A1 to A5, ignoring empty cells, and separate them with a backslash. If we use FALSE as the second parameter:<\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em>=TEXTJOIN(&#8220;\\&#8221;, FALSE, A1:A5) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In this case, empty cells will not be ignored.<\/p>\n<p>In most scenarios, we typically use TRUE for the second parameter.<\/p>\n<h4>2. Replacing Lookup and Match<\/h4>\n<p>Some might wonder how TEXTJOIN can replace VLOOKUP for matching.<br \/>\nFor example, if we want to find salary data based on employee names, we need to use the IF function in conjunction with TEXTJOIN.<\/p>\n<p>First, we can use this formula:<\/p>\n<div class=\"MarkdownCodeBlock_container__nRn2j\">\n<div class=\"MarkdownCodeBlock_codeBlock__rvLec force-dark\">\n<div class=\"MarkdownCodeBlock_codeHeader__zWt_V\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2855\" src=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=1024%2C414&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"414\" srcset=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=1024%2C414&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=150%2C61&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=768%2C310&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=1536%2C621&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=2048%2C828&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-5.png?resize=18%2C7&amp;ssl=1 18w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/div>\n<div data-collapsed=\"unknown\">\n<p><em>=IF(B:B = E2, C:C, &#8220;&#8221;) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This will find the corresponding salary in column C for the name in E2, leaving other cells blank.<\/p>\n<p>By combining both functions, the complete formula becomes:<\/p>\n<div class=\"MarkdownCodeBlock_container__nRn2j\">\n<div class=\"MarkdownCodeBlock_codeBlock__rvLec force-dark\">\n<div class=\"MarkdownCodeBlock_codeHeader__zWt_V\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2853 size-large\" src=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=1024%2C414&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"414\" srcset=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=1024%2C414&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=150%2C61&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=768%2C311&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=1536%2C621&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=2048%2C828&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-4.png?resize=18%2C7&amp;ssl=1 18w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/div>\n<div data-collapsed=\"unknown\">\n<p><em>=TEXTJOIN(&#8220;&#8221;, TRUE, IF(B:B = E2, C:C, &#8220;&#8221;)) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This formula will return the matching results.<\/p>\n<h4>3. Powerful One-to-Many Lookup<\/h4>\n<p>Some may argue that this isn\u2019t much more convenient, but it becomes extremely useful in one-to-many scenarios.<br \/>\nFor example, if we want to list all employee information based on department information, we can use the following combination of formulas:<\/p>\n<div class=\"MarkdownCodeBlock_container__nRn2j\">\n<div class=\"MarkdownCodeBlock_codeBlock__rvLec force-dark\">\n<div class=\"MarkdownCodeBlock_codeHeader__zWt_V\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2852\" src=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=1024%2C414&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"414\" srcset=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=1024%2C414&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=150%2C61&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=768%2C310&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=1536%2C620&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=2048%2C827&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A0004-3.png?resize=18%2C7&amp;ssl=1 18w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/div>\n<div data-collapsed=\"unknown\">\n<p><em>=TEXTJOIN(&#8220;\u3001&#8221;, TRUE, IF(A:A = E2, B:B, &#8220;&#8221;)) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This formula will connect all the results that meet the condition using a Chinese comma (\u3001), while ignoring empty cells.<\/p>\n<p>Isn\u2019t that powerful? Have you learned this function? Give it a try!<\/p>\n<p><em>A0005<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>In the past, when faced with lookup and match problems, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2443,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,7,25,20,18],"tags":[208,90],"class_list":["post-2849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel","category-excel-formulas","category-logical","category-onlinesupport","category-text","tag-textjoin","tag-vlookup"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2022\/06\/Excel-new7.png?fit=2102%2C679&ssl=1","_links":{"self":[{"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/posts\/2849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/comments?post=2849"}],"version-history":[{"count":5,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/posts\/2849\/revisions"}],"predecessor-version":[{"id":3160,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/posts\/2849\/revisions\/3160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/media\/2443"}],"wp:attachment":[{"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/media?parent=2849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/categories?post=2849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fyndpro.com\/en\/wp-json\/wp\/v2\/tags?post=2849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}