{"id":4373,"date":"2020-06-18T23:24:45","date_gmt":"2020-06-18T21:24:45","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=4373"},"modified":"2024-04-05T23:11:53","modified_gmt":"2024-04-05T21:11:53","slug":"add-comma-after-the-surname-with-excels-substitute-formula","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-comma-after-the-surname-with-excels-substitute-formula\/","title":{"rendered":"Add Comma in Excel between Names with SUBSTITUTE Formula"},"content":{"rendered":"<p>While working in an Excel Worksheet, you will come across scenarios where the last name is not separated from the first name by a comma, and doing that manually could be a daunting task. Good thing that this tutorial teaches you how to add comma in Excel between names using SUBSTITUTE function.<\/p>\n<p>In this tutorial on how to insert comma between words in excel, you will learn:<\/p>\n<ul>\n<li><a href=\"#introduction-to-substitute-function\">Introduction to SUBSTITUTE function<\/a><\/li>\n<li><a href=\"#add-comma-in-excel-between-names-using-substitute-function\">Add comma in excel between names using SUBSTITUTE function<\/a><\/li>\n<li><a href=\"#using-instance_num-argument-in-substitute-function\">Using instance_num argument in SUBSTITUTE function<\/a><\/li>\n<li><a href=\"#substitute-vs-replace\">Substitute vs Replace<\/a><\/li>\n<\/ul>\n<p>SUBSTITUTE function is a type of TEXT function and is used to<strong> search and replace text str<a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/extract-text-with-substring\/\" target=\"_blank\" rel=\"noopener\">in<\/a>gs<\/strong> in Excel. It is a very useful function if you wish to replace an old text with new text.<\/p>\n<p>Let&#8217;s jump right in and start exploring the features of this function.<\/p>\n<h3><a id=\"introduction-to-substitute-function\"><\/a>Introduction to SUBSTITUTE function<\/h3>\n<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>It\u00a0replaces specific text in a text string i.e. Substitutes new text for old text in a text string.<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=SUBSTITUTE(<span style=\"color: #0000ff\">text<\/span>, <span style=\"color: #ff0000\">old_text<\/span>, <span style=\"color: #339966\">new_text<\/span>, <span style=\"color: #800080\">[instance_num]<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>SUBSTITUTE function has <strong>four arguments<\/strong> &#8211; text, old_text, new_text and instamce_num. The first 3 arguments are required and the fourth one is optional.<\/p>\n<ul>\n<li><span style=\"color: #0000ff\">text<\/span> &#8211; The original text in which you want to replace the text. It can be a cell reference, a text string, or a result of another formula.<\/li>\n<li><span style=\"color: #ff0000\">old_text<\/span> &#8211; The text you want to replace<\/li>\n<li><span style=\"color: #339966\">new_text<\/span> &#8211; The text you want to replace with<\/li>\n<li><span style=\"color: #800080\">instance_num<\/span> &#8211; The occurrence of the old text you want to substitute i.e. 1st occurrence, 2nd occurrence, etc. If it is left blank, all the occurrences are replaced.<\/li>\n<\/ul>\n<hr \/>\n<p>Let&#8217;s work with an example to know how to use SUBSTITUTE function and how to add a comma in excel between names using this function.<\/p>\n<h3><a id=\"add-comma-in-excel-between-names-using-substitute-function\"><\/a>Add comma in excel between names using SUBSTITUTE function<\/h3>\n<p>I can recall the countless times when I was given a list of names from the HR department and the last\u00a0name was not separated from the first name by a comma.<\/p>\n<p>It drove me nuts!!!<\/p>\n<p>I had to manually edit the names one by one, so that it would look like <em><strong>&lt;last name&gt;, &lt;first name&gt;<\/strong><\/em>.<\/p>\n<p>Turns out, the <b>SUBSTITUTE\u00a0<\/b>formula in Excel would have done this task very easily!<\/p>\n<p>In our example below, we have a list of names. \u00a0We want to replace the space with a comma followed by space. \u00a0The <strong>SUBSTITUTE<\/strong> formula is able to do this for us!<\/p>\n<p>I explain how you can do this and please go this tutorial on how to add comma in Excel between names:<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/CDriDo4_OTo?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"width: 0px;overflow: hidden;line-height: 0\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2020\/06\/Substitute-Add-Comma-Between-Names.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\"> download excel workbook <i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">Substitute-Add-Comma-Between-Names.xlsx<\/span><\/a><\/p>\n<\/div>\n<p>Follow the steps below to understand how to add comma in Excel between names:<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 1:<\/strong> <\/span>We need to <strong>enter the SUBSTITUTE function <\/strong>next to the cell that we want to\u00a0clean\u00a0the data from:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-comma-after-the-surname-with-excels-substitute-formula\/#SUBSTITUTE\" title=\"=SUBSTITUTE\">=SUBSTITUTE<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-comma-after-the-surname-with-excels-substitute-formula\/#text\" title=\"text\">text<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-comma-after-the-surname-with-excels-substitute-formula\/#_old_text\" title=\"\u00a0old_text\">\u00a0old_text<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-comma-after-the-surname-with-excels-substitute-formula\/#new_text\" title=\"new_text\">new_text<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: center\"><span class=\"ez-toc-section\" id=\"SUBSTITUTE\"><\/span><span style=\"color: #0000ff\">=SUBSTITUTE<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-01.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone wp-image-4389 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-01.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"561\" height=\"179\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-01.png 561w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-01-300x96.png 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 2:<\/strong><\/span>\u00a0The Substitute\u00a0arguments:<\/p>\n<h2><span class=\"ez-toc-section\" id=\"text\"><\/span><em><strong><span style=\"color: #0000ff\">text<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Which cell\u00a0do we want to make changes to?<\/strong><\/p>\n<p><em>Reference the <strong>cell<\/strong> that contains the text or value:<\/em><\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #000000\">=SUBSTITUTE<\/span><span style=\"color: #0000ff\">(C9,<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-02.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-4390\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-02.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"558\" height=\"173\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-02.png 558w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-02-300x93.png 300w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"_old_text\"><\/span>\u00a0<em><strong><span style=\"color: #0000ff\">old_text<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Which text\/characters do we want to replace?<\/strong><\/p>\n<p><em>We want to change the <strong>space\u00a0<\/strong>so type it in:<\/em><\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #000000\">=SUBSTITUTE<\/span><span style=\"color: #0000ff\"><span style=\"color: #000000\">(C9, <span style=\"color: #0000ff\">&#8221; &#8220;<\/span><\/span>,<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-03.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-4391\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-03.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"559\" height=\"171\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-03.png 559w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-03-300x92.png 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"new_text\"><\/span><em><strong><span style=\"color: #0000ff\">new_text<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Which text\/characters do we want to replace it with?<\/strong><\/p>\n<p><em>We want to replace\u00a0it into the <strong>comma<\/strong> followed by a <strong>space<\/strong>, so type it in:<\/em><\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #000000\">=SUBSTITUTE<\/span><span style=\"color: #0000ff\"><span style=\"color: #000000\">(C9,<\/span> <span style=\"color: #000000\">&#8221; &#8220;,<\/span>\u00a0&#8220;, &#8220;)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-04.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone wp-image-4392 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-04.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"457\" height=\"174\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-04.png 457w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-04-300x114.png 300w\" sizes=\"(max-width: 457px) 100vw, 457px\" \/><\/a><\/p>\n<h2><\/h2>\n<p><span style=\"color: #ff0000\"><strong>STEP 3:<\/strong> <\/span>Do the same for the rest of the cells by dragging the <b>SUBSTITUTE\u00a0<\/b>formula all the way down using the left mouse button.<\/p>\n<p>Note that all of the names\u00a0are now changed to having your needed commas:<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-05.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone wp-image-4393 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-05.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"478\" height=\"197\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-05.png 478w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/Substitute-Add-Comma-05-300x124.png 300w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/a><\/p>\n<p>This will easily substitute a space between names with a comma followed by space.<\/p>\n<p>Now that you are confident in using the SUBSTITUTE function to add comma in Excel between names, let&#8217;s move forward and understand<strong> how to use instance_num argument<\/strong> in your formula.<\/p>\n<h3><a id=\"using-instance_num-argument-in-substitute-function\"><\/a>Using instance_num argument in SUBSTITUTE function<\/h3>\n<p>Let&#8217;s work on an example to understand this function in depth.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-a-comma-in-excel.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-17816\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-a-comma-in-excel.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"308\" height=\"202\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-a-comma-in-excel.png 308w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-a-comma-in-excel-300x197.png 300w\" sizes=\"(max-width: 308px) 100vw, 308px\" \/><\/a><\/p>\n<p>In cell A2, you have the text &#8211; &#8220;Sales for Quarter 1 Product 1&#8221; and you want to replace it with the text &#8220;Sales for Quarter 2 Product 2&#8221;. You can use the function<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=SUBSTITUTE(A2,&#8221;1&#8243;,&#8221;2&#8243;)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-17817\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"779\" height=\"282\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel.png 779w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-300x109.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-768x278.png 768w\" sizes=\"(max-width: 779px) 100vw, 779px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Say, you want to replace only the first occurrence of 1 with 2 i.e. replace Sales for Quarter 2 Product 1 to Sales for Quarter 2 Product 1. You can use the function<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=SUBSTITUTE(A3,&#8221;1&#8243;,&#8221;2&#8243;,1)<\/span><\/h2>\n<p>By adding the instance_num argument, you have restricted Excel to substitute only the first occurrence of 1.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-between-names.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-17818\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-between-names.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"775\" height=\"328\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-between-names.png 775w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-between-names-300x127.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-add-comma-in-excel-between-names-768x325.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/a><\/p>\n<p>Similarly, you can substitute only the second occurrence of 1 with 2 using the formula<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=SUBSTITUTE(A4,&#8221;1&#8243;,&#8221;2&#8243;,2)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-insert-comma-between-words-in-excel.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-17819\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-insert-comma-between-words-in-excel.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"793\" height=\"347\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-insert-comma-between-words-in-excel.png 793w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-insert-comma-between-words-in-excel-300x131.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/how-to-insert-comma-between-words-in-excel-768x336.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"substitute-vs-replace\"><\/a>Substitute vs Replace<\/h3>\n<p>Both these functions are used to replace an old text with the new text. The main difference between the two is that:<\/p>\n<ul>\n<li>You should use the SUBSTITUTE function when you know which word you want to change<\/li>\n<li>You should use REPLACE function when you know the position and length of the characters you want to change.<\/li>\n<\/ul>\n<p>Let&#8217;s learn more about the REPLACE function to understand the difference in detail!<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>The syntax of the REPLACE function:<\/p>\n<p>=REPLACE (<span style=\"color: #0000ff\">old_text<\/span>, <span style=\"color: #ff0000\">start_num<\/span>, <span style=\"color: #339966\">num_chars<\/span>, <span style=\"color: #800080\">new_text<span style=\"color: #000000\">)<\/span><\/span><\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<ul>\n<li><span style=\"color: #0000ff\">old_text<\/span> &#8211; The text string in which you want to find the characters to replace.<\/li>\n<li><span style=\"color: #ff0000\">start_num<\/span> &#8211; The starting position where you want the replace function to take place<\/li>\n<li><span style=\"color: #339966\">num_chars<\/span> &#8211; The number of characters you want to replace<\/li>\n<li><span style=\"color: #800080\">new_text<\/span> &#8211; The replacement text<\/li>\n<\/ul>\n<p><strong><em>Example :<\/em><\/strong><\/p>\n<p>Say, you have a text &#8220;Excel 2020&#8221; in cell A2 and you want to change it to &#8220;Excel 2021&#8221;. You want to replace 4 characters starting from the 7th character and you want the replacement text to be &#8220;2021&#8221;. You can do that using the REPLACE function:<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=REPLACE (A2, 7, 4,&#8221;2021&#8243;)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/REPLACE.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-17813\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/REPLACE.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"643\" height=\"290\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/REPLACE.png 643w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/REPLACE-300x135.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p>Since you also know the text you want to replace using SUBSTITUTE function would also get the work done.<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=SUBSTITUTE(A3,&#8221;2020&#8243;,&#8221;2021&#8243;)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/SUBSTITUTE.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" class=\"alignnone size-full wp-image-17814\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/SUBSTITUTE.png\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"634\" height=\"287\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/SUBSTITUTE.png 634w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/SUBSTITUTE-300x136.png 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>In this tutorial, you have learned how to use the SUBSTITUTE function to add comma in Excel between names. You can learn more about this function by going through this blog on <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/cleaning-data-excels-substitute-formula\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>How to clean data using the SUBSTITUTE function<\/strong><\/a>.<\/p>\n<p><strong>Make sure to download our FREE PDF on the<a href=\"https:\/\/app.monstercampaigns.com\/c\/czseo0viyrmspcx5ndve\/\" target=\"_blank\" rel=\"noopener noreferrer\"> 333 Excel keyboard Shortcuts here<\/a>:<\/strong><\/p>\n<p><a href=\"https:\/\/app.monstercampaigns.com\/c\/czseo0viyrmspcx5ndve\/\" target=\"_blank\" rel=\"nofollow noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14329 size-medium\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2020\/03\/333coffeMockups-300x200.jpg\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2020\/03\/333coffeMockups-300x200.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2020\/03\/333coffeMockups-1024x682.jpg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2020\/03\/333coffeMockups-768x512.jpg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2020\/03\/333coffeMockups.jpg 1340w\" sizes=\"(max-width: 300px) 100vw, 300px\" title=\"\"><\/a><\/p>\n<p>You can learn more about how to use Excel by viewing our FREE Excel webinar training on <strong><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-43.html\" target=\"_blank\" rel=\"noopener noreferrer\">Formulas<\/a>, <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-5.html\" target=\"_blank\" rel=\"noopener noreferrer\">Pivot Tables<\/a>,<\/strong> and <strong><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-39.html\" target=\"_blank\" rel=\"noopener noreferrer\">Macros &amp; VBA<\/a><\/strong>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While working in an Excel Worksheet, you will come across scenarios where the last name is not separated from the first name by a comma, and doing that manually could be a daunting task. Good thing that this tutorial teaches you how to add comma in Excel between names using SUBSTITUTE function. In this tutorial [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"Add Comma in Excel between Names with SUBSTITUTE Formula","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,306,14],"tags":[655,142,174,70],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/4373"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=4373"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/4373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17325"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=4373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=4373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=4373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}