{"id":414,"date":"2017-07-26T00:38:39","date_gmt":"2017-07-26T05:38:39","guid":{"rendered":"http:\/\/www.iqaccountingsolutions.com\/blog\/?p=414"},"modified":"2017-07-26T00:39:17","modified_gmt":"2017-07-26T05:39:17","slug":"combining-data-from-multiple-cells-using-concatenate","status":"publish","type":"post","link":"https:\/\/www.iqaccountingsolutions.com\/blog\/combining-data-from-multiple-cells-using-concatenate\/","title":{"rendered":"COMBINING DATA FROM MULTIPLE CELLS USING CONCATENATE"},"content":{"rendered":"<p>Sometimes you need to take text or numbers from several cells and combine it all into one cell. A classic example of this is when you have a column for first name and a column for last name, but you need to show names in &#8220;last name, first name&#8221; format. That is a job for Concatenate.<\/p>\n<p>If you have first names in column A of your spreadsheet, and last names in column B, here is how you can combine them in column C. Start with your cursor in cell C1. Select the <em>Formulas<\/em> ribbon, click the <em>Text<\/em> button, and choose <em>Concatenate<\/em>. In the <em>Text1<\/em> field, type B1, or click on cell B1 to add the last name. Since we don&#8217;t want the last and first name strung together wthout spaces, enter a comma followed by a space in <em>Text2<\/em>. At Text3, enter A1, or click on that cell with your mouse. At the bottom of the formula window you will see what the result will be of the formula you are building. Click OK to record the formula. Now in cell C1 you will see the last name and the first name, separated by a comma.<\/p>\n<p>For a simple instance like this, you may want to try this shortcut.\u00a0 You can use the &amp; character in formulas to join text and number just like you can with Concatenate. In our example you would type <em>=B1&amp;&#8221;, &#8220;&amp;A1<\/em> in cell C1.<\/p>\n<p>Here is another example that helps show how flexible Concatenate can be. You are not limited to cell references or text for the entries in each <em>Text<\/em> box, you can use other formulas ans functions within the concatenate formula. If you wanted to combine the first 4 letters of the last name with the fist 5 letters of the first first name, to make a customer ID, you could do that by combing the <em>Left<\/em> function with <em>Concatenate<\/em>. You will start just like you did in the first example, but at <em>Text1<\/em>, enter <em>LEFT(B1,4)<\/em>.\u00a0 And for <em>Text2<\/em>, enter <em>LEFT(A1,5)<\/em>. That will combine the first 4 characters (starting from the left) from cell B1 with the first 5 characters from cell A1.<\/p>\n<p><iframe loading=\"lazy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/fAsSlAJ1P6w?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Combining the contents of multiples cells in an Excel spreadsheet is easy thanks to the Concatenate function.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/414"}],"collection":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=414"}],"version-history":[{"count":7,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/414\/revisions"}],"predecessor-version":[{"id":1096,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/414\/revisions\/1096"}],"wp:attachment":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}