{"id":136746,"date":"2024-04-28T12:39:06","date_gmt":"2024-04-28T04:39:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/136746.html"},"modified":"2024-04-28T12:39:09","modified_gmt":"2024-04-28T04:39:09","slug":"excel%e8%a1%a8%e6%a0%bc%e5%a6%82%e4%bd%95%e5%8e%bb%e6%8e%89%e5%8d%95%e4%bd%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/136746.html","title":{"rendered":"excel\u8868\u683c\u5982\u4f55\u53bb\u6389\u5355\u4f4d"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24133109\/8cd271db-e6d9-4177-b612-3e87655a585b.webp\" alt=\"excel\u8868\u683c\u5982\u4f55\u53bb\u6389\u5355\u4f4d\" \/><\/p>\n<p><p>\u5728Excel\u8868\u683c\u4e2d\u53bb\u6389\u5355\u4f4d\uff0c\u5e38\u7528\u65b9\u6cd5\u6709<strong>\u624b\u52a8\u7f16\u8f91\u3001\u4f7f\u7528&quot;\u67e5\u627e\u548c\u66ff\u6362&quot;\u529f\u80fd\u3001\u91c7\u7528\u6587\u672c\u51fd\u6570\u3001\u5229\u7528\u683c\u5f0f\u5316\u5355\u5143\u683c<\/strong>\u3001\u4ee5\u53ca\u7f16\u5199\u5b8f\u8fdb\u884c\u6279\u91cf\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5177\u4f53\u7684\u64cd\u4f5c\u6b65\u9aa4\u6765\u8bf4\u660e\u5982\u4f55\u79fb\u9664Excel\u8868\u683c\u4e2d\u7684\u5355\u4f4d\uff1a<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u624b\u52a8\u7f16\u8f91<\/strong><\/p>\n<\/p>\n<p><p>\u8fd9\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u6570\u636e\u91cf\u8f83\u5c0f\u7684Excel\u8868\u683c\u3002\u64cd\u4f5c\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u76f4\u63a5\u70b9\u51fb\u5355\u5143\u683c\uff0c\u9009\u4e2d\u5305\u542b\u5355\u4f4d\u7684\u6570\u636e\u3002<\/li>\n<li>\u624b\u52a8\u5220\u9664\u5355\u4f4d\uff0c\u7559\u4e0b\u6570\u503c\u5373\u53ef\u3002<\/li>\n<\/ol>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6613\u884c\uff0c\u4f46\u6548\u7387\u4f4e\u4e0b\uff0c\u9002\u5408\u4ec5\u6709\u5c11\u91cf\u6570\u636e\u9700\u8981\u5904\u7406\u7684\u60c5\u5f62\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u4f7f\u7528&quot;\u67e5\u627e\u548c\u66ff\u6362&quot;\u529f\u80fd<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u91cf\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528Excel\u7684\u67e5\u627e\u548c\u66ff\u6362\u529f\u80fd\u6279\u91cf\u53bb\u9664\u5355\u4f4d\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u5feb\u6377\u952eCtrl + H\u6253\u5f00\u201c\u67e5\u627e\u548c\u66ff\u6362\u201d\u5bf9\u8bdd\u6846\u3002<\/li>\n<li>\u5728\u201c\u67e5\u627e\u5185\u5bb9\u201d\u6846\u4e2d\u8f93\u5165\u4f60\u60f3\u8981\u53bb\u9664\u7684\u5355\u4f4d\uff08\u4f8b\u5982\u201ckg\u201d\u3001\u201c$\u201d\u7b49\uff09\u3002<\/li>\n<li>\u201c\u66ff\u6362\u4e3a\u201d\u6846\u7559\u7a7a\uff0c\u8868\u793a\u5220\u9664\u5355\u4f4d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u5168\u90e8\u66ff\u6362\u201d\u6309\u94ae\uff0cExcel\u5c31\u4f1a\u5c06\u6240\u6709\u9009\u5b9a\u5355\u5143\u6216\u6574\u4e2a\u5de5\u4f5c\u8868\u4e2d\u7684\u6307\u5b9a\u5355\u4f4d\u53bb\u9664\u3002<\/li>\n<\/ol>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u53bb\u9664\u7684\u5355\u4f4d\u5728\u6240\u6709\u5355\u5143\u683c\u4e2d\u662f\u4e00\u81f4\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u91c7\u7528\u6587\u672c\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u6570\u636e\u540e\u9762\u7684\u5355\u4f4d\u662f\u56fa\u5b9a\u7684\u5b57\u7b26\u6570\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Excel\u7684\u6587\u672c\u51fd\u6570\u6765\u53bb\u9664\u5355\u4f4d\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528LEFT\u51fd\u6570<\/strong>\uff0c\u5982\u679c\u5355\u4f4d\u5728\u524d\u9762\uff0c\u53ef\u4ee5\u4f7f\u7528LEFT\u51fd\u6570\u7ed3\u5408LEN\u51fd\u6570\u6765\u79fb\u9664\u5355\u4f4d\u3002<\/li>\n<li><strong>\u4f7f\u7528RIGHT\u51fd\u6570<\/strong>\uff0c\u5982\u679c\u5355\u4f4d\u5728\u540e\u9762\uff0c\u540c\u6837\u53ef\u4ee5\u4f7f\u7528RIGHT\u51fd\u6570\u7ed3\u5408LEN\u51fd\u6570\u3002<\/li>\n<li><strong>\u4f7f\u7528SUBSTITUTE\u51fd\u6570<\/strong>\uff0c\u5982\u679c\u5355\u4f4d\u662f\u6563\u843d\u5728\u6587\u672c\u4e2d\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528SUBSTITUTE\u51fd\u6570\u6765\u66ff\u6362\u5355\u4f4d\u4e3a\u7a7a\u503c\u3002<\/li>\n<\/ol>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u8f83\u4e3a\u6280\u672f\u6027\uff0c\u9700\u8981\u5177\u5907\u4e00\u5b9a\u7684\u51fd\u6570\u4f7f\u7528\u7ecf\u9a8c\u3002<\/p>\n<\/p>\n<p><p><strong>\u56db\u3001\u5229\u7528\u683c\u5f0f\u5316\u5355\u5143\u683c<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u6570\u5b57\u548c\u5355\u4f4d\u662f\u4ee5\u7279\u5b9a\u683c\u5f0f\u663e\u793a\u65f6\uff0c\u53ef\u4ee5\u66f4\u6539\u5355\u5143\u683c\u683c\u5f0f\u6765\u53bb\u9664\u5355\u4f4d\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u9009\u4e2d\u5305\u542b\u5355\u4f4d\u7684\u5355\u5143\u683c\u3002<\/li>\n<li>\u53f3\u952e\u70b9\u51fb\uff0c\u9009\u62e9\u201c\u683c\u5f0f\u5316\u5355\u5143\u683c\u201d\u3002<\/li>\n<li>\u5728\u201c\u6570\u5b57\u201d\u6807\u7b7e\u9875\u4e2d\uff0c\u9009\u62e9\u9002\u5408\u7684\u5206\u7c7b\u5e76\u5220\u9664\u5355\u4f4d\u6807\u8bb0\u3002<\/li>\n<li>\u70b9\u51fb\u786e\u5b9a\u3002<\/li>\n<\/ol>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5355\u4f4d\u5e76\u975e\u771f\u6b63\u5305\u542b\u5728\u5355\u5143\u683c\u6587\u672c\u4e2d\uff0c\u800c\u662f\u4f5c\u4e3a\u683c\u5f0f\u663e\u793a\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e94\u3001\u7f16\u5199\u5b8f\u8fdb\u884c\u6279\u91cf\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9ad8\u7ea7\u7528\u6237\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199VBA\u5b8f\u6765\u81ea\u52a8\u5316\u53bb\u9664\u5355\u4f4d\u7684\u8fc7\u7a0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6309\u4e0bAlt + F11\u6253\u5f00VBA\u7f16\u8f91\u5668\u3002<\/li>\n<li>\u63d2\u5165\u65b0\u7684\u6a21\u5757\uff0c\u5e76\u7f16\u5199\u5b8f\u4ee3\u7801\u3002<\/li>\n<li>\u4f7f\u7528\u7f16\u5199\u7684\u5b8f\u5728\u6307\u5b9a\u7684\u8303\u56f4\u5185\u627e\u5230\u5e76\u5220\u9664\u5355\u4f4d\u3002<\/li>\n<\/ol>\n<p><p>\u7f16\u5199\u5b8f\u53ef\u4ee5\u5b9e\u73b0\u6700\u7075\u6d3b\u7684\u53bb\u9664\u5355\u4f4d\u64cd\u4f5c\uff0c\u4f46\u9700\u8981\u5177\u5907VBA\u7f16\u7a0b\u77e5\u8bc6\u3002<\/p>\n<\/p>\n<p><p>\u53bb\u9664Excel\u8868\u683c\u4e2d\u7684\u5355\u4f4d\u662f\u4e00\u9879\u5e38\u89c1\u7684\u6570\u636e\u5904\u7406\u5de5\u4f5c\uff0c\u4f7f\u7528\u6070\u5f53\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u53bb\u9664\u5355\u4f4d\u540e\uff0c\u786e\u4fdd\u5904\u7406\u540e\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728Excel\u8868\u683c\u4e2d\u53bb\u9664\u6570\u503c\u5355\u5143\u683c\u7684\u5355\u4f4d\uff1f<\/strong><\/p>\n<p>\u8981\u5728Excel\u8868\u683c\u4e2d\u53bb\u9664\u6570\u503c\u5355\u5143\u683c\u7684\u5355\u4f4d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6570\u503c\u51fd\u6570\u548c\u6587\u672c\u51fd\u6570\u7684\u7ec4\u5408\u3002\u9996\u5148\uff0c\u53ef\u4ee5\u4f7f\u7528SUBSTITUTE\u51fd\u6570\u5c06\u6570\u503c\u5355\u5143\u683c\u4e2d\u7684\u5355\u4f4d\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528VALUE\u51fd\u6570\u5c06\u6587\u672c\u8f6c\u6362\u4e3a\u6570\u503c\uff0c\u5e76\u5c06\u7ed3\u679c\u8fd4\u56de\u5230\u539f\u59cb\u5355\u5143\u683c\u4e2d\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5047\u8bbeA1\u5355\u5143\u683c\u5305\u542b\u5e26\u6709\u5355\u4f4d\u7684\u6570\u503c\uff0c\u6bd4\u5982&quot;100 kg&quot;\u3002\u60a8\u53ef\u4ee5\u5728B1\u5355\u5143\u683c\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\uff1a<code>=VALUE(SUBSTITUTE(A1,&quot;kg&quot;,&quot;&quot;))<\/code>\u3002\u8fd9\u5c06\u4eceA1\u4e2d\u53bb\u6389&quot;kg&quot;\u5355\u4f4d\uff0c\u5e76\u5c06\u7ed3\u679c\u8f6c\u6362\u4e3a\u6570\u503c\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u6279\u91cf\u53bb\u9664Excel\u8868\u683c\u4e2d\u591a\u4e2a\u5355\u5143\u683c\u7684\u5355\u4f4d\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u9700\u8981\u6279\u91cf\u53bb\u9664Excel\u8868\u683c\u4e2d\u591a\u4e2a\u5355\u5143\u683c\u7684\u5355\u4f4d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6279\u91cf\u66ff\u6362\u529f\u80fd\u3002\u9996\u5148\uff0c\u9009\u62e9\u5305\u542b\u8981\u53bb\u9664\u5355\u4f4d\u7684\u5355\u5143\u683c\u8303\u56f4\u3002\u7136\u540e\uff0c\u6309\u4e0b&quot;Ctrl + H&quot;\u5feb\u6377\u952e\u6253\u5f00\u66ff\u6362\u5bf9\u8bdd\u6846\u3002<\/p>\n<p>\u5728\u66ff\u6362\u5bf9\u8bdd\u6846\u4e2d\uff0c\u5c06\u8981\u53bb\u9664\u7684\u5355\u4f4d\u8f93\u5165\u5230&quot;\u67e5\u627e&quot;\u6846\u4e2d\uff0c\u5c06\u7a7a\u5b57\u7b26\u4e32\u8f93\u5165\u5230&quot;\u66ff\u6362\u4e3a&quot;\u6846\u4e2d\uff0c\u7136\u540e\u70b9\u51fb&quot;\u5168\u90e8\u66ff\u6362&quot;\u6309\u94ae\u3002Excel\u5c06\u81ea\u52a8\u5728\u9009\u5b9a\u7684\u5355\u5143\u683c\u8303\u56f4\u5185\u66ff\u6362\u6240\u6709\u5339\u914d\u7684\u5355\u4f4d\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u9664\u5355\u4f4d\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u901a\u8fc7\u6761\u4ef6\u7b5b\u9009\u6765\u53bb\u9664Excel\u8868\u683c\u4e2d\u7684\u7279\u5b9a\u5355\u4f4d\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u5e0c\u671b\u5728Excel\u8868\u683c\u4e2d\u6839\u636e\u67d0\u4e9b\u6761\u4ef6\u53ea\u53bb\u9664\u7279\u5b9a\u5355\u4f4d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7b5b\u9009\u529f\u80fd\u3002\u9996\u5148\uff0c\u9009\u62e9\u5305\u542b\u6570\u503c\u548c\u5355\u4f4d\u7684\u5355\u5143\u683c\u8303\u56f4\uff0c\u5e76\u70b9\u51fb&quot;\u6570\u636e&quot;\u9009\u9879\u5361\u4e2d\u7684&quot;\u7b5b\u9009&quot;\u6309\u94ae\u3002<\/p>\n<p>\u5728\u7b5b\u9009\u9762\u677f\u4e2d\uff0c\u9009\u62e9\u5305\u542b\u5355\u4f4d\u7684\u5217\u6807\u9898\uff0c\u5e76\u70b9\u51fb\u4e0b\u62c9\u7bad\u5934\u3002\u7136\u540e\uff0c\u5728\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9&quot;\u7b5b\u9009&quot;\u9009\u9879\uff0c\u5e76\u8f93\u5165\u8981\u7b5b\u9009\u7684\u7279\u5b9a\u5355\u4f4d\u3002Excel\u5c06\u6839\u636e\u6307\u5b9a\u7684\u6761\u4ef6\u7b5b\u9009\u51fa\u542b\u6709\u7279\u5b9a\u5355\u4f4d\u7684\u884c\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u5c06\u7b5b\u9009\u7ed3\u679c\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u5de5\u4f5c\u8868\u4e2d\uff0c\u7136\u540e\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd52\u4e2d\u7684\u65b9\u6cd5\u53bb\u9664\u9009\u5b9a\u8303\u56f4\u5185\u7684\u5355\u4f4d\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u7b5b\u9009\u6765\u53bb\u9664Excel\u8868\u683c\u4e2d\u7684\u7279\u5b9a\u5355\u4f4d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Excel\u8868\u683c\u4e2d\u53bb\u6389\u5355\u4f4d\uff0c\u5e38\u7528\u65b9\u6cd5\u6709\u624b\u52a8\u7f16\u8f91\u3001\u4f7f\u7528&quot;\u67e5\u627e\u548c\u66ff\u6362&quot;\u529f\u80fd\u3001\u91c7\u7528\u6587\u672c\u51fd\u6570\u3001\u5229\u7528 [&hellip;]","protected":false},"author":3,"featured_media":136749,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/136746"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=136746"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/136746\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/136749"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=136746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=136746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=136746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}