{"id":1035,"date":"2017-11-30T11:10:31","date_gmt":"2017-11-30T03:10:31","guid":{"rendered":"http:\/\/owa.sodexo-cn.com\/blog\/?p=1035"},"modified":"2017-11-30T11:15:01","modified_gmt":"2017-11-30T03:15:01","slug":"excelto-get-rid-of-the-unnecessary-whitespace-in-the-cell-you-might-to-try-this-method","status":"publish","type":"post","link":"https:\/\/owa.sodexo-cn.com\/blog\/?p=1035","title":{"rendered":"[Excel]To get rid of the unnecessary whitespace in the cell, you might to try this method"},"content":{"rendered":"<p><span style=\"color: black; font-family: \u5b8b\u4f53;\">What do you usually do when the VLOOKUP function is always fed back to #N\/A?<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53;\">We usually check if there are any unnecessary special symbols in the cells that need to be matched, and most often there is no necessary space symbol.<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">Space issues<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">Yes, it&#8217;s a space.<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">In general, these three kinds of unnecessary spaces appear:<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">1. Starting bit space<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">2. Too many spaces between words<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53;\"><span style=\"font-size: 12pt;\">3. Final space<\/span><br \/>\n<img decoding=\"async\" src=\"https:\/\/owa.sodexo-cn.com\/blog\/wp-content\/uploads\/2017\/11\/113017_0310_ExcelTogetr1.png\" alt=\"\" \/><br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53;\"><span style=\"font-size: 12pt;\">Perhaps, you will immediately a<\/span>nswer: &#8220;It&#8217;s easy, <span style=\"font-size: 12pt;\">using the <\/span>find&amp;<span style=\"font-size: 12pt;\">replacement or substitute function.&#8221; <\/span><br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53;\"><span style=\"font-size: 12pt;\">Is it true? Let&#8217;s take a look at the results of using the <\/span>find&amp;<span style=\"font-size: 12pt;\">replacement or the substitute function:<br \/>\n<\/span><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/owa.sodexo-cn.com\/blog\/wp-content\/uploads\/2017\/11\/113017_0310_ExcelTogetr2.png\" alt=\"\" \/><span style=\"color: black; font-family: \u5b8b\u4f53;\"><br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">Well, it looks like the result is not ideal. When you use a space-deletion method to handle such information, the normal spaces between the words are also deleted.<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">What to do?<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">Trim function<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53;\"><span style=\"font-size: 12pt;\">The trim function<\/span>, it<span style=\"font-size: 12pt;\"> can remove all the spaces in the text except for a single space between words.<br \/>\n<\/span><\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">It is especially suitable for processing some irregular spacing text obtained from other data sources.<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: \u5b8b\u4f53; font-size: 12pt;\">Expression: TRIM (text)<br \/>\n<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/owa.sodexo-cn.com\/blog\/wp-content\/uploads\/2017\/11\/113017_0310_ExcelTogetr3.png\" alt=\"\" \/><span style=\"color: black; font-family: \u5b8b\u4f53;\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What do you usually do when the VLOOKUP function is alw &#8230; <a title=\"[Excel]To get rid of the unnecessary whitespace in the cell, you might to try this method\" class=\"read-more\" href=\"https:\/\/owa.sodexo-cn.com\/blog\/?p=1035\" aria-label=\"\u9605\u8bfb [Excel]To get rid of the unnecessary whitespace in the cell, you might to try this method\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1035","post","type-post","status-publish","format-standard","hentry","category-tips"],"views":2230,"_links":{"self":[{"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":2,"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1037,"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions\/1037"}],"wp:attachment":[{"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/owa.sodexo-cn.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}