{"id":31434,"date":"2023-10-11T10:08:01","date_gmt":"2023-10-11T08:08:01","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=31434"},"modified":"2024-05-28T22:19:27","modified_gmt":"2024-05-28T20:19:27","slug":"delete-spaces-in-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/delete-spaces-in-excel\/","title":{"rendered":"How to Delete Spaces in Excel &#8211; Line Breaks, and Non-Breaking Characters in Excel"},"content":{"rendered":"<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Copy-of-Copy-of-MICROSOFT-365.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31456\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Copy-of-Copy-of-MICROSOFT-365-1024x576.png\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"576\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Copy-of-Copy-of-MICROSOFT-365-1024x576.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Copy-of-Copy-of-MICROSOFT-365-300x169.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Copy-of-Copy-of-MICROSOFT-365-768x432.png 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Copy-of-Copy-of-MICROSOFT-365.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\nThe main issue when we try to delete spaces in Excel is that they are often invisible to the human eye. While leading spaces or multiple spaces between words can sometimes be noticed by attentive users, trailing spaces at the end of cells remain hidden. This becomes problematic because extra spaces can disrupt Excel <a class=\"wpil_keyword_link\" title=\"formulas\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/top-excel-formulas-function-examples-to-get-better-at-microsoft-excel\/\" target=\"_blank\" rel=\"noopener\" data-wpil-keyword-link=\"linked\">formulas<\/a>. Even if two cells appear to have the same text, <strong>Excel treats them as different values<\/strong> if they contain even a single space character. Consequently, you may encounter situations where a <a class=\"wpil_keyword_link\" title=\"formula\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/top-excel-formulas-function-examples-to-get-better-at-microsoft-excel\/\" target=\"_blank\" rel=\"noopener\" data-wpil-keyword-link=\"linked\">formula<\/a> that seems correct fails to match two seemingly identical entries, leading to confusion and frustration.<\/p>\n<p>Let\u2019s say you have a list of names in two cells:<\/p>\n<p>Cell <strong>A1<\/strong> contains: &#8220;Homer Simpson&#8221;<br \/>\nCell <strong>B2<\/strong> contains: &#8220;Homer Simpson &#8221;<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/9D351A75-960A-4C5C-A201-33DB9526FB18.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31437\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/9D351A75-960A-4C5C-A201-33DB9526FB18-1024x202.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"202\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/9D351A75-960A-4C5C-A201-33DB9526FB18-1024x202.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/9D351A75-960A-4C5C-A201-33DB9526FB18-300x59.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/9D351A75-960A-4C5C-A201-33DB9526FB18-768x151.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/9D351A75-960A-4C5C-A201-33DB9526FB18.jpeg 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>To the naked eye, these two entries appear identical. However, suppose you want to compare them using a formula to check if they are the same. You might use a formula like this in cell <strong>A3<\/strong>:<\/p>\n<p><strong>=IF(A1=B2, &#8220;Match&#8221;, &#8220;No Match&#8221;)<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.05.46-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31438\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.05.46-PM-1024x264.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"264\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.05.46-PM-1024x264.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.05.46-PM-300x77.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.05.46-PM-768x198.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.05.46-PM.jpeg 1254w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>We might expect this formula to return &#8220;<strong>Match<\/strong>&#8221; because the names in cells <strong>A1 and B2<\/strong> look the same.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.09.54-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31439\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.09.54-PM-1024x297.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"297\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.09.54-PM-1024x297.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.09.54-PM-300x87.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.09.54-PM-768x223.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.09.54-PM.jpeg 1121w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>However, the formula actually returns &#8220;<strong>No Match<\/strong>.&#8221; Why? Because Excel considers the extra space at the end of &#8220;<strong>Homer Simpson<\/strong> &#8221; in cell B2 as a character, making the two cell contents different.<\/p>\n<p>This is a common source of confusion when working with Excel data. It&#8217;s essential to be aware of these hidden spaces and use appropriate techniques, like the TRIM function or Find and Replace, to clean up your data and ensure accurate calculations and comparisons.<\/p>\n<p>In this article, we&#8217;ll cover topics like deleting leading and trailing spaces, dealing with spaces between words, <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/remove-line-breaks-in-excel\/\" target=\"_blank\" rel=\"noopener\">removing line breaks<\/a> and non-printing characters, getting rid of non-breaking spaces, and more. Let&#8217;s dive in and discover how to clean up your Excel data effectively &#8211;<\/p>\n<div class=\"contents\">\n<h2>Table of Contents<\/h2>\n<ul>\n<li><a href=\"#1\"><strong>Deleting Spaces in Excel with the TRIM Function<\/strong><\/a><\/li>\n<li><a href=\"#2\"><strong>How to Delete Spaces in Excel Using Find and Replace<\/strong><\/a><\/li>\n<li><a href=\"#3\"><strong>Using the SUBSTITUTE Function<\/strong><\/a><\/li>\n<\/ul>\n<\/div>\n<p>Let\u2019s explore these methods!<\/p>\n<h4>Download the Excel Workbook below to follow along and understand How to Delete Spaces in Excel \u2013<\/h4>\n<h4><a class=\"IRPP_minimalist icon-download\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/DeleteSpacesinExcel.xlsx\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\"><strong>download excel workbook<\/strong><\/span><span class=\"postTitle px-3\">DeleteSpacesinExcel.xlsx<\/span><\/a><\/h4>\n<p><strong><span id=\"1\" style=\"color: #ff0000\">Deleting Spaces in Excel with the TRIM Function<\/span><\/strong><\/p>\n<p>The TRIM function eliminates extra spaces at the beginning, end, and between words. But remember, it will leave a single space between texts.<\/p>\n<p>Suppose you have a list of names in column A with some extra spaces:<\/p>\n<p><strong>Select B2<\/strong>.<\/p>\n<p>Enter the formula <strong>=TRIM(A2)<\/strong> in cell <strong>B2.<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.01-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31440\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.01-PM-1024x717.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"717\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.01-PM-1024x717.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.01-PM-300x210.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.01-PM-768x538.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.01-PM.jpeg 1331w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Press <strong>Enter<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.26-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31441\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.26-PM-1024x704.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"704\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.26-PM-1024x704.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.26-PM-300x206.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.26-PM-768x528.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.26-PM.jpeg 1346w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>The cleaned text will appear in cell <strong>B2<\/strong> as &#8220;<strong>Homer Simpson<\/strong>&#8221; without extra spaces.<\/p>\n<p><strong>Click and Drag down<\/strong> the square on the <strong>bottom-right corner<\/strong> of the cell to Autofill the formula down to the entire list in column B.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.51-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31442\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.51-PM-1024x699.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"699\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.51-PM-1024x699.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.51-PM-300x205.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.51-PM-768x524.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.17.51-PM.jpeg 1360w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Your cleaned list will now look like this:<br \/>\n<a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.18.15-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31443\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.18.15-PM-1024x566.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"566\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.18.15-PM-1024x566.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.18.15-PM-300x166.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.18.15-PM-768x425.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.18.15-PM.jpeg 1329w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><em>Tip: Occasionally, besides spaces, there could be non-printable characters present in your text. While the TRIM function solely addresses spaces, the CLEAN function specializes in removing any non-printable characters within the text. A powerful strategy involves employing both functions in tandem to effectively eliminate both spaces and non-printable characters.<\/em><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/75079C20-582C-4FBA-8C81-8D34BD0634EC.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31444\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/75079C20-582C-4FBA-8C81-8D34BD0634EC-1024x712.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"712\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/75079C20-582C-4FBA-8C81-8D34BD0634EC-1024x712.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/75079C20-582C-4FBA-8C81-8D34BD0634EC-300x208.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/75079C20-582C-4FBA-8C81-8D34BD0634EC-768x534.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/75079C20-582C-4FBA-8C81-8D34BD0634EC.jpeg 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><strong><span id=\"2\" style=\"color: #ff0000\">How to Delete Spaces in Excel Using Find and Replace<\/span><\/strong><\/p>\n<p>The Find and Replace feature <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/replace-one-character\/\" target=\"_blank\" rel=\"noopener\">in Excel<\/a> offers several advantages for removing spaces, including efficiency, precision, customization, time-saving, and the ability to target specific spaces without altering formulas. It allows users to quickly and accurately clean data throughout the <a class=\"wpil_keyword_link\" title=\"spreadsheet\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/free-excel-templates-and-spreadsheets\/\" target=\"_blank\" rel=\"noopener\" data-wpil-keyword-link=\"linked\">spreadsheet<\/a>, making it a valuable tool for maintaining data accuracy and integrity. To remove spaces in Excel using the Find and Replace feature, follow these steps:<\/p>\n<p><strong>Open the spreadsheet<\/strong> containing the data you want to work with.<\/p>\n<p><strong>Choose the range of cells<\/strong> where you want to remove spaces. You can select a single column, multiple columns, or the entire worksheet, depending on your needs.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.26.37-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31445\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.26.37-PM-865x1024.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"865\" height=\"1024\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.26.37-PM-865x1024.jpeg 865w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.26.37-PM-254x300.jpeg 254w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.26.37-PM-768x909.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.26.37-PM.jpeg 890w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/a><\/p>\n<p>On <a class=\"wpil_keyword_link\" title=\"Windows\" href=\"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/download-office\" target=\"_blank\" rel=\"noopener nofollow\" data-wpil-keyword-link=\"linked\">Windows<\/a>: <strong>Press Ctrl + H<\/strong> or navigate to the <strong>Home<\/strong> tab in the Excel ribbon, and in the Editing group, click on <strong>Find &amp; Select<\/strong>, then select <strong>Replace<\/strong>.<\/p>\n<p>On <a class=\"wpil_keyword_link\" title=\"Mac\" href=\"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/mac\/microsoft-365-for-mac\" target=\"_blank\" rel=\"noopener nofollow\" data-wpil-keyword-link=\"linked\">Mac<\/a>: Go to the <strong>Edit<\/strong> menu and choose <strong>Find<\/strong> &gt; <strong>Replace<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.27.33-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31446\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.27.33-PM-854x1024.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"854\" height=\"1024\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.27.33-PM-854x1024.jpeg 854w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.27.33-PM-250x300.jpeg 250w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.27.33-PM-768x921.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.27.33-PM.jpeg 1177w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/a><\/p>\n<p>In the <strong>Find what field<\/strong> of the Find and Replace dialog box, <strong>enter a single space<\/strong> character by <strong>pressing the spacebar once<\/strong>.<\/p>\n<p><strong>Ensure that the Replace with field is empty<\/strong> or contains no characters. This step is crucial to remove spaces without replacing them with anything.<\/p>\n<p>You can further customize the replacement process by clicking the Options button in the Find and Replace dialog box. Here, you can specify if you want to match the entire cell contents or just part of it, among other options.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31447\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM-1024x487.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"487\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM-1024x487.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM-300x143.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM-768x366.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM-1536x731.jpeg 1536w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.34.58-PM-2048x975.jpeg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><strong>Click the Replace All<\/strong> button to remove all the spaces in the selected range.<\/p>\n<p>Excel will show you a dialog box with the number of replacements made. Review this information to ensure it matches your expectations.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31448\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM-1024x486.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"486\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM-1024x486.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM-300x142.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM-768x364.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM-1536x729.jpeg 1536w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.35.14-PM-2048x971.jpeg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><strong>Click OK<\/strong> to close the dialog box when you&#8217;re satisfied with the replacements.<\/p>\n<p>Your selected cells will now be free of spaces. This method is especially useful for quickly removing <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/remove-line-breaks\/\" target=\"_blank\" rel=\"noopener\">spaces in<\/a> bulk throughout your Excel spreadsheet.<\/p>\n<p>(This exact method can also be used when removing spaces from numbers!)<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.37.55-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-31449\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.37.55-PM.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"845\" height=\"777\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.37.55-PM.jpeg 845w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.37.55-PM-300x276.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.37.55-PM-768x706.jpeg 768w\" sizes=\"(max-width: 845px) 100vw, 845px\" \/><\/a> <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.38.27-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-31450\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.38.27-PM.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"845\" height=\"768\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.38.27-PM.jpeg 845w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.38.27-PM-300x273.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.38.27-PM-768x698.jpeg 768w\" sizes=\"(max-width: 845px) 100vw, 845px\" \/><\/a><\/p>\n<p><strong>Warning<\/strong>: <em>This method will scan for and substitute ALL spaces within the entire sheet or the chosen area. Exercise caution to avoid inadvertently eliminating spaces that are necessary or intentional.<\/em><\/p>\n<p><strong><span id=\"3\" style=\"color: #ff0000\">Using the SUBSTITUTE Function<\/span><\/strong><\/p>\n<p>When you need to delete all spaces within numbers or text, this technique is your best choice. Employing a straightforward formula allows you to clear all spaces from your data. This approach operates by substituting each space with an empty string.<\/p>\n<p>To remove the spaces using the SUBSTITUTE function:<\/p>\n<p>Select an empty cell, let&#8217;s say <strong>B2<\/strong>.<\/p>\n<p>Enter the formula <strong>=SUBSTITUTE(A2, &#8221; &#8220;, &#8220;&#8221;) in cell B2<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.04-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31451\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.04-PM-1024x790.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"790\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.04-PM-1024x790.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.04-PM-300x231.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.04-PM-768x593.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.04-PM.jpeg 1493w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Press <strong>Enter<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.24-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31452\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.24-PM-1024x913.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"913\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.24-PM-1024x913.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.24-PM-300x267.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.24-PM-768x685.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.24-PM.jpeg 1283w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>The cleaned text will appear in cell <strong>B2<\/strong> as &#8220;<strong>HomerSimpson<\/strong>&#8221; without any spaces.<\/p>\n<p>Autofill the formula down to apply it to the entire list in column B.<\/p>\n<p>Your cleaned list will now look like this:<br \/>\n<a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.49-PM.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-31453\" title=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.49-PM-1024x928.jpeg\" alt=\"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel\" width=\"1024\" height=\"928\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.49-PM-1024x928.jpeg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.49-PM-300x272.jpeg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.49-PM-768x696.jpeg 768w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-2.45.49-PM.jpeg 1277w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>There you have it! Deleting unwanted spaces in Excel can be quite daunting when you have an entire spreadsheet with spaces appearing at the beginning, end, or in between words or numbers. Occasionally, extra spaces may even accompany unprintable characters. Hopefully, this tutorial has provided you with an effective strategy to address your space-related woes.<\/p>\n<p><strong>Further learning:<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/delete-blank-cells-in-excel\/\" target=\"_blank\" rel=\"noopener\">How to Delete Blank Cells in Excel<\/a><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-comma-after-the-surname-with-excels-substitute-formula\/\" target=\"_blank\" rel=\"noopener\">Add Comma in Excel between Names with SUBSTITUTE Formula<\/a><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/special-characters-in-excel\/\" target=\"_blank\" rel=\"noopener\">Top 3 Methods to Find Special Characters in Excel<\/a><\/p>\n<p><a href=\"https:\/\/support.microsoft.com\/en-gb\/office\/trim-function-410388fa-c5df-49c6-b16c-9e5630b479f9\" target=\"_blank\" rel=\"noopener nofollow\">Click here<\/a> to access Microsoft\u2019s tutorial on How to Use the TRIM Function!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The main issue when we try to delete spaces in Excel is that they are often invisible to the human eye. While leading spaces or multiple spaces between words can sometimes be noticed by attentive users, trailing spaces at the end of cells remain hidden. This becomes problematic because extra spaces can disrupt Excel formulas. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":31456,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[37,306,308],"tags":[1396,258,1395,1397,259],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/31434"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=31434"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/31434\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/31456"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=31434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=31434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=31434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}