
{"id":3730,"date":"2020-11-06T09:00:00","date_gmt":"2020-11-06T08:00:00","guid":{"rendered":"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/uncategorized\/how-to-use-concatenate-function-in-excel\/"},"modified":"2023-08-30T15:10:34","modified_gmt":"2023-08-30T13:10:34","slug":"how-to-use-concatenate-function-in-excel","status":"publish","type":"post","link":"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/data-analytics\/how-to-use-concatenate-function-in-excel\/","title":{"rendered":"How to Use the CONCATENATE Function in Excel"},"content":{"rendered":"<p><strong>In Excel, the CONCATENATE function allows you to combine text from different cells into one cell. In this tutorial, we\u2019ll show you, step by step, how to use the CONCATENATE function.<\/strong><\/p>\n<p>When you\u2019re analyzing data with numbers in Excel, it\u2019s easy enough to combine or manipulate it through multiplication or addition. Manipulating text in Excel can be a little harder to achieve, however. So for cells that contain text, you\u2019ll need to try something different.<\/p>\n<p>If you want to starting using Excel for analytics, try CareerFoundry&#8217;s <strong><a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/short-courses\/become-a-data-analyst\/\" target=\"_blank\" rel=\"noopener\">free data short course<\/a><\/strong>.<\/p>\n<p>That\u2019s where the CONCATENATE function comes in. In this guide, we\u2019ll cover:<\/p>\n<ol>\n<li><a href=\"#what-is-the-concatenate-function-and-what-is-it-used-for\">What is the CONCATENATE function and what is it used for?<\/a><\/li>\n<li><a href=\"#how-does-the-concatenate-function-work-in-microsoft-excel\">How does the CONCATENATE function work in Microsoft Excel?<\/a><\/li>\n<li><a href=\"#things-to-consider-before-using-concatenate-in-excel\">Things to consider before using CONCATENATE in Excel<\/a><\/li>\n<li><a href=\"#how-to-use-concatenate-in-an-excel-formula-a-step-by-step-tutorial\">How to use CONCATENATE in an Excel formula: A step-by-step tutorial<\/a><\/li>\n<li><a href=\"#how-to-use-concatenate-with-special-characters\">How to use CONCATENATE with special characters<\/a><\/li>\n<li><a href=\"#how-to-use-concatenate-with-date-number-formats\">How to use CONCATENATE with date number formats<\/a><\/li>\n<li><a href=\"#how-to-handle-line-breaks-using-concatenate\">How to handle line breaks using CONCATENATE<\/a><\/li>\n<\/ol>\n<p>So: How does the CONCATENATE function work? Let\u2019s take a look.<\/p>\n<h2 id=\"what-is-the-concatenate-function-and-what-is-it-used-for\">1. What is the CONCATENATE function and what is it used for?<\/h2>\n<p>If you want to combine data from two or more cells together, the best way to do it is to use the <strong>CONCATENATE<\/strong> function.<\/p>\n<p>This lets you combine multiple cells together, whether they contain numbers or text, without affecting the original cells. There are several reasons why you may wish to do this.<\/p>\n<p>If you have a list of addresses, for instance, you could use CONCATENATE to combine each section of the address (the name, the first line, the town, etc) into a single cell. This could then be copied or used elsewhere.<\/p>\n<h3 id=\"using-concatenate-or-concat-in-excel\">Using CONCATENATE or CONCAT in Excel<\/h3>\n<p>From Excel 2016 onwards, <strong>CONCATENATE<\/strong> has been \u201creplaced\u201d with the <strong>CONCAT<\/strong> function. That means that, if you\u2019re using a later version of Excel, you can use either CONCATENATE or CONCAT. Older versions of Excel will need to stick to CONCATENATE, however.<\/p>\n<p>CONCAT works exactly the same way as CONCATENATE, so any references to CONCATENATE below will work exactly the same for CONCAT. Both are interchangeable, and while CONCATENATE remains in place for compatibility reasons, it could be removed in future Office releases.<\/p>\n<p>There aren\u2019t any additional benefits to using CONCAT over CONCATENATE, so feel free to use either function. If CONCATENATE is removed, however, then you\u2019ll need to switch to using CONCAT instead.<\/p>\n<h2 id=\"how-does-the-concatenate-function-work-in-microsoft-excel\">2. How does the CONCATENATE function work in Microsoft Excel?<\/h2>\n<p>The word &#8220;concatenate&#8221; is a technical term, but it simply means linking things together.<\/p>\n<p>That\u2019s exactly what CONCATENATE and CONCAT do in Excel, combining the contents of different cells and displaying them in a new cell.<\/p>\n<p><img decoding=\"async\" title=\"An example of the CONCATENATE function in usage\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/excel-concatenate-example-usage.png\" alt=\"An example of the CONCATENATE function in usage\" \/><\/p>\n<p>While you could copy and paste the contents of each cell into a single cell yourself, or use Excel\u2019s cell merge feature to do it automatically, using CONCATENATE or CONCAT means that your original data is left untouched.<\/p>\n<p>Most data analysts would prefer to leave source data intact, manipulating it instead by using <a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/blog\/data-analytics\/how-to-create-a-pivot-table\/\">pivot tables<\/a> or other Excel functions. The advantage of CONCATENATE or CONCAT is that you don\u2019t need to alter the source data at all, but instead refer to it. If the original data is modified, this will update the data displayed in the combined cell.<\/p>\n<p>CONCATENATE also allows you to combine different types of data, such as numbers, dates, and text strings, which wouldn\u2019t typically be possible without it.<\/p>\n<h2 id=\"things-to-consider-before-using-concatenate-in-excel\">3. Things to consider before using CONCATENATE in Excel<\/h2>\n<p>While the CONCATENATE and CONCAT functions allow you to easily combine data from other sources, there are some limitations that you\u2019ll need to be aware of.<\/p>\n<p>These include, in no particular order:<\/p>\n<ul>\n<li>You can use a maximum of <strong>255 strings<\/strong> or <strong>8192 characters<\/strong> in a CONCATENATE or CONCAT formula.<\/li>\n<li>The formula must have at least <strong>one string<\/strong> for it to work.<\/li>\n<li>If you want to use a range of cells, you <strong>can\u2019t use an array<\/strong> (such as <strong>A1:A10<\/strong>). Each cell used in a CONCATENATE or CONCAT formula will have to be referenced manually (eg. <strong>A1, A2, A3, A4,<\/strong> etc.)<\/li>\n<li>If you want to combine your data with special characters in a CONCATENATE or CONCAT formula, such as <strong>&amp;<\/strong>, then you\u2019ll need to wrap them in <strong>quotation marks<\/strong> (<strong>\u201d &amp; \u201c<\/strong>), otherwise Excel will attempt to treat them as part of the syntax of the formula itself.<\/li>\n<li>If any cell references are wrong, or if an illegal character is used, Excel will return the <strong>#VALUE!<\/strong> error message.<\/li>\n<li>CONCATENATE and CONCAT will always <strong>return a text string<\/strong>, even if the data you\u2019re using is a number or is a cell with the number cell type. This can impact how it can be used by other functions.<\/li>\n<li>Because CONCATENATE and CONCAT can only handle text strings, you can use it with other functions (such as <strong>TEXT<\/strong> and <strong>TODAY<\/strong>) to correctly handle other data types, such as date numbers.<\/li>\n<li>You can <strong>use the ampersand (&amp;)<\/strong> for basic concatenation without using either CONCATENATE or CONCAT functions (eg. <strong>=A1&amp;A2&amp;A3<\/strong>).<\/li>\n<\/ul>\n<h2 id=\"how-to-use-concatenate-in-an-excel-formula-a-step-by-step-tutorial\">4. How to use CONCATENATE in an Excel formula: A step-by-step tutorial<\/h2>\n<p>To use the CONCATENATE function in an Excel spreadsheet, here\u2019s what you\u2019ll need to do.<\/p>\n<h3 id=\"step-1-select-an-empty-cell\">Step 1: Select an empty cell<\/h3>\n<p>Start by opening your Excel spreadsheet and selecting an empty cell. Once you\u2019ve selected the cell, click on the <strong>formula bar<\/strong> at the top to begin typing in your new CONCAT or CONCATENATE formula.<\/p>\n<p><img decoding=\"async\" title=\"A screen grab of the formula bar in Excel - this is where you enter your formula\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/excel-formula-bar.png\" alt=\"A screen grab of the formula bar in Excel - this is where you enter your formula\" \/><\/p>\n<p>Once the formula bar is active, you can begin to type in your formula.<\/p>\n<h3 id=\"step-2-create-your-concatenate-or-concat-formula\">Step 2: Create your CONCATENATE or CONCAT formula<\/h3>\n<p>Both CONCATENATE and CONCAT have a very simple syntax that you\u2019ll need to follow. For example:<\/p>\n<p><strong>=CONCATENATE(text1, text 2, \u2026)<\/strong><\/p>\n<p><strong>=CONCAT(text1, text2, \u2026)<\/strong><\/p>\n<p>The reference to <strong>text<\/strong> (eg. <strong>text1, text2<\/strong>) in the example syntax above refers to a text string that can be input manually, or to a cell reference containing the data you wish to use. As we\u2019ve mentioned, there\u2019s a hard limit of <strong>255 strings<\/strong> that you can use here.<\/p>\n<p>With your empty cell selected, begin to type your CONCATENATE or CONCAT formula by typing <strong>=CONCATENATE(<\/strong> or <strong>=CONCAT(<\/strong> in the formula bar.<\/p>\n<p><img decoding=\"async\" title=\"A screen grab of the formula bar in Excel, with the CONCATENATE formula entered\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/excel-concatenate-formula-bar.png\" alt=\"A screen grab of the formula bar in Excel, with the CONCATENATE formula entered\" \/><\/p>\n<p>You\u2019ll then need to begin to select your data.<\/p>\n<h3 id=\"step-3-select-your-data\">Step 3: Select your data<\/h3>\n<p>Both CONCATENATE and CONCAT can combine text strings from other cells (using cell references to identify them) or by using text strings within the formula itself. Each parameter (<strong>text 1, text2,<\/strong> etc) is then combined.<\/p>\n<p>These follow the first open parentheses in sequence. For instance, <strong>=CONCATENATE(A1,A2,A3,A4)<\/strong> will merge the data from cells A1, A2, A3, and A4 together. Type this into the formula bar to create your formula, closing with a close parentheses, then hit the enter key to display the formula output.<\/p>\n<p><img decoding=\"async\" title=\"A screen grab from Excel showing a basic CONCATENATE formula in action\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/excel-concatenate-basic-example.png\" alt=\"A screen grab from Excel showing a basic CONCATENATE formula in action\" \/><\/p>\n<p>You could also use the following CONCATENATE or CONCAT examples where cell references or text strings are used together:<\/p>\n<p><strong>=CONCATENATE(A1, B1, C1)<\/strong><\/p>\n<p><strong>=CONCATENATE(\u201cThis is a text string\u201d, \u201c which will be combined together\u201d, \u201c to make a long sentence\u201d)<\/strong><\/p>\n<p><strong>=CONCAT(A1, B1, C1, \u201c which is very long\u201d)<\/strong><\/p>\n<p><img decoding=\"async\" title=\"A screen grab from Excel demonstrating how to combine text strings using the CONCATENATE formula\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/concatenate-examples-excel.png\" alt=\"A screen grab from Excel demonstrating how to combine text strings using the CONCATENATE formula\" \/><\/p>\n<p>As the examples above show, any text strings that you add manually will need to be wrapped in quotation marks. This is to ensure that the contents of a text string in your formula aren\u2019t considered to be arguments in the formula itself.<\/p>\n<p>Because CONCATENATE and CONCAT combine numbers, text, and other types of data together, the only way to do this is to treat the output as a text string. This means that, even if the values are numbers, the formula output will be considered as text, and you won\u2019t be able to manipulate the number type.<\/p>\n<h2 id=\"how-to-use-concatenate-with-special-characters\">5.\u00a0 How to use CONCATENATE with special characters<\/h2>\n<p>Adding certain special characters to a CONCATENATE or CONCAT formula, such as ampersands and hyphens, can break it. To avoid this, you\u2019ll need to make sure that special characters are wrapped in quotation marks.<\/p>\n<p>To do this, open your Excel spreadsheet, select an empty cell, and use the formula bar to type a CONCATENATE or CONCAT formula similar to the following examples, replacing the cell references or text strings with your own data:<\/p>\n<p><strong>=CONCATENATE(A1, \u201c &amp; \u201c, A2)<\/strong><\/p>\n<p><strong>=CONCAT(\u201cThis is a text string\u201d, \u201c &amp; \u201c, \u201cit is long\u201d)<\/strong><\/p>\n<p><img decoding=\"async\" title=\"A screen grab from Excel showing how to use the CONCATENATE formula with special characters\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/concatenate-special-characters.png\" alt=\"A screen grab from Excel showing how to use the CONCATENATE formula with special characters\" \/><\/p>\n<p>You may want to do this to make the output from a CONCATENATE or CONCAT formula easier to follow. You\u2019ll also want to do this to avoid words from text strings merging together, such as <strong>\u201cThis is a text string&amp;it is too long\u201d,<\/strong> rather than <strong>\u201cThis is a text string &amp; it is too long\u201d<\/strong>.<\/p>\n<h2 id=\"how-to-use-concatenate-with-date-number-formats\">6. How to use CONCATENATE with date number formats<\/h2>\n<p>When you use CONCATENATE or CONCAT in Excel, the output is displayed as a text string. This can sometimes malform numbers with different number types, such as dates. To avoid this, you can use the <strong>TEXT<\/strong> function to ensure that the date number is converted by CONCATENATE or CONCAT and displayed correctly.<\/p>\n<p>To do this, you could use the following formula, replacing the date values with your own:<\/p>\n<p><strong>=CONCATENATE(\u201cThe date today is \u201c, TEXT(TODAY(), \u201cdd\/mm\/yyyy\u201d))<\/strong><\/p>\n<p><strong>=CONCAT(\u201cJim\u2019s birthday is on the \u201c,TEXT(\u201c10\/11\/2020\u201d,\u201ddd\/mm\/yy\u201d))<\/strong><\/p>\n<p><img decoding=\"async\" title=\"A screen grab from Excel, showing how to use CONCATENATE to make sure dates are displayed correctly\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/concatenate-excel-text-date.png\" alt=\"A screen grab from Excel, showing how to use CONCATENATE to make sure dates are displayed correctly\" \/><\/p>\n<p>By using TEXT with CONCATENATE or CONCAT, you can ensure that the number will be displayed in the date format that you require.<\/p>\n<h2 id=\"how-to-handle-line-breaks-using-concatenate\">7. How to handle line breaks using CONCATENATE<\/h2>\n<p>The CONCATENATE and CONCAT function, used in a formula, will output on a single line. This isn\u2019t ideal for every scenario, especially if you\u2019re trying to combine certain types of data, such as a postal address.<\/p>\n<p>To get around this limitation, you can use CONCATENATE or CONCAT with the <strong>CHAR<\/strong> function, which will be able to output the ASCII code for a line break (10). To do this, you\u2019ll need to use the following formula, replacing the cell references with your own:<\/p>\n<p><strong>=CONCATENATE(A1, CHAR(10), C1)<\/strong><\/p>\n<p><strong>=CONCAT(A1, CHAR(10), B1)<\/strong><\/p>\n<p><img decoding=\"async\" title=\"A screen grab from Excel, showing how to handle line breaks with the CONCATENATE function\" src=\"\/en\/wp-content\/uploads\/old-blog-uploads\/concatenate-char-windows-excel.png\" alt=\"A screen grab from Excel, showing how to handle line breaks with the CONCATENATE function\" \/><\/p>\n<p>Previously, you\u2019d need to use <strong>CHAR(13)<\/strong> if you were using Excel on Mac for this to work. However, in recently released versions of Excel on Mac, you\u2019ll be able to use <strong>CHAR(10)<\/strong> like Windows users.<\/p>\n<p>This will also work for other types of special characters, such as slashes or ampersands, but most users will find it\u2019s easier to wrap these types of characters in quotation marks instead.<\/p>\n<h2 id=\"final-thoughts\">Final thoughts<\/h2>\n<p>The CONCATENATE function in Excel is considered <a href=\"\/en\/blog\/data-analytics\/data-analytics-tools\/\">an essential tool for data analysts<\/a> to have in their arsenal, allowing you to quickly combine different types of data.<\/p>\n<p>It isn\u2019t the only way you can do this, however, as the newer CONCAT function offers the same functionality in the latest versions of Excel.<\/p>\n<p>If you\u2019re keen to continue exploring, why not check out the <a href=\"\/en\/blog\/data-analytics\/xlookup-function-excel\/\">XLOOKUP function<\/a> next, or the <a href=\"\/en\/blog\/data-analytics\/average-function-excel\/\">AVERAGE function<\/a>? Alternatively, here\u2019s a round-up of \u00a0<a href=\"\/en\/blog\/data-analytics\/10-excel-formulas-every-data-analyst-should-know\/\">10 Excel formulas that every data analyst should know<\/a>.<\/p>\n<p>If you\u2019re new to data analytics, you can try a <a href=\"https:\/\/careerfoundry.inbearbeitung.de\/en\/short-courses\/become-a-data-analyst\/\" target=\"_blank\" rel=\"noopener\">free introductory data analytics short course<\/a>. And, for more tutorials and resources, check out the following:<\/p>\n<ul>\n<li><a href=\"\/en\/blog\/data-analytics\/what-is-data-analytics\/\">What is data analytics? A complete introduction<\/a><\/li>\n<li><a href=\"\/en\/blog\/data-analytics\/if-function-excel\/\">How to use the IF function in Excel<\/a><\/li>\n<li><a href=\"\/en\/blog\/data-analytics\/iferror-function-excel\/\">How to use the IFERROR function in Excel<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The CONCATENATE function is one of many Excel formulas used by data experts. Learn what it&#8217;s used for and how to apply it in this step-by-step tutorial.<\/p>\n","protected":false},"author":54,"featured_media":62,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"yes","_lmt_disable":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-3730","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-analytics"],"acf":{"homepage_category_featured":false},"modified_by":"Matthew Deery","_links":{"self":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts\/3730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/comments?post=3730"}],"version-history":[{"count":2,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts\/3730\/revisions"}],"predecessor-version":[{"id":28616,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/posts\/3730\/revisions\/28616"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/media\/62"}],"wp:attachment":[{"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/media?parent=3730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/categories?post=3730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerfoundry.inbearbeitung.de\/en\/wp-json\/wp\/v2\/tags?post=3730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}