{"id":138096,"date":"2024-04-28T13:05:16","date_gmt":"2024-04-28T05:05:16","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/138096.html"},"modified":"2024-04-28T13:05:20","modified_gmt":"2024-04-28T05:05:20","slug":"excel%e8%a1%a8%e6%a0%bc%e7%bc%96%e5%8f%b7%e5%a6%82%e4%bd%95%e8%bf%9e%e7%bb%ad%e7%bc%96%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/138096.html","title":{"rendered":"excel\u8868\u683c\u7f16\u53f7\u5982\u4f55\u8fde\u7eed\u7f16\u53f7"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24133940\/7c198035-8832-45ff-8123-761980662db3.webp\" alt=\"excel\u8868\u683c\u7f16\u53f7\u5982\u4f55\u8fde\u7eed\u7f16\u53f7\" \/><\/p>\n<p><p><strong>Excel\u8868\u683c\u7f16\u53f7\u5982\u4f55\u8fde\u7eed\u7f16\u53f7<\/strong>\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u586b\u5145\u67c4\u62d6\u52a8\u3001\u5229\u7528\u5e8f\u5217\u529f\u80fd\u3001\u91c7\u7528\u516c\u5f0f\u81ea\u52a8\u7f16\u53f7\u3001\u4ee5\u53ca\u4f7f\u7528VBA\u7f16\u7a0b\u5b9e\u73b0\u81ea\u52a8\u7f16\u53f7\u3002<strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u586b\u5145\u67c4\u62d6\u52a8\u662f\u6700\u76f4\u89c2\u7b80\u4fbf\u7684\u65b9\u6cd5<\/strong>\uff0c\u64cd\u4f5c\u8005\u53ea\u9700\u8f93\u5165\u5f00\u59cb\u7684\u7f16\u53f7\uff0c\u7136\u540e\u9009\u62e9\u8be5\u5355\u5143\u683c\uff0c\u5c06\u9f20\u6807\u79fb\u81f3\u5355\u5143\u683c\u53f3\u4e0b\u89d2\uff0c\u5f53\u6307\u9488\u53d8\u4e3a\u5c0f\u5341\u5b57\u65f6\uff0c\u70b9\u51fb\u5e76\u5411\u4e0b\u62d6\u52a8\uff0cExcel\u4fbf\u4f1a\u6839\u636e\u5df2\u8f93\u5165\u7684\u7f16\u53f7\u89c4\u5f8b\u81ea\u52a8\u586b\u5145\u8fde\u7eed\u7684\u7f16\u53f7\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u586b\u5145\u67c4\u62d6\u52a8<\/h3>\n<\/p>\n<p><p>\u8981\u901a\u8fc7\u586b\u5145\u67c4\u6765\u8fdb\u884c\u8fde\u7eed\u7f16\u53f7\uff0c\u4f60\u9700\u8981\u5148\u624b\u52a8\u8f93\u5165\u8d77\u59cb\u7684\u5e8f\u53f7\u3002\u4f8b\u5982\uff0c\u5728A1\u5355\u5143\u683c\u8f93\u51651\uff0c\u7136\u540e\u5728A2\u5355\u5143\u683c\u8f93\u51652\u8868\u793a\u7f16\u53f7\u5c06\u6309\u8fde\u7eed\u7684\u6574\u6570\u9012\u589e\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a\n<ul>\n<li>\u9009\u4e2dA1\u548cA2\u8fd9\u4e24\u4e2a\u5df2\u7ecf\u7f16\u53f7\u7684\u5355\u5143\u683c\u3002<\/li>\n<li>\u628a\u5149\u6807\u79fb\u52a8\u5230\u8fd9\u4e24\u4e2a\u9009\u4e2d\u5355\u5143\u683c\u7684\u53f3\u4e0b\u89d2\uff0c\u5149\u6807\u5c06\u663e\u793a\u4e3a\u4e00\u4e2a\u9ed1\u8272\u7684\u5c0f\u5341\u5b57\u3002<\/li>\n<li>\u4f7f\u7528\u9f20\u6807\u5de6\u952e\u70b9\u51fb\u5c0f\u5341\u5b57\u5e76\u5411\u4e0b\u62d6\u52a8\u5230\u9700\u8981\u7f16\u53f7\u7684\u6700\u540e\u4e00\u4e2a\u5355\u5143\u683c\u3002\u91ca\u653e\u9f20\u6807\u5de6\u952e\u540e\uff0cExcel\u4f1a\u81ea\u52a8\u586b\u5145\u8fde\u7eed\u7684\u7f16\u53f7\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u5229\u7528\u5e8f\u5217\u529f\u80fd<\/h3>\n<\/p>\n<p><p>Excel 365\u548cExcel 2019\u7684\u6700\u65b0\u7248\u672c\u4e2d\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u201c\u5e8f\u5217\u201d\u529f\u80fd\uff0c\u5b83\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u8fde\u7eed\u7684\u6570\u5b57\u5e8f\u5217\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a\n<ul>\n<li>\u9009\u62e9\u4f60\u60f3\u8981\u5f00\u59cb\u8fde\u7eed\u7f16\u53f7\u7684\u5355\u5143\u683c\u8303\u56f4\u3002<\/li>\n<li>\u8f6c\u5230\u201c\u4e3b\u9875\u201d\u9009\u9879\u5361\u4e0b\u7684\u201c\u7f16\u8f91\u201d\u7ec4\uff0c\u70b9\u51fb\u201c\u586b\u5145\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u5e8f\u5217\u201d\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u8bbe\u7f6e\u8d77\u59cb\u503c\u3001\u6b65\u957f\u4ee5\u53ca\u9700\u8981\u586b\u5145\u7684\u65b9\u5411\u548c\u6570\u91cf\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u91c7\u7528\u516c\u5f0f\u81ea\u52a8\u7f16\u53f7<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Excel\u516c\u5f0f\u6765\u5b9e\u73b0\u81ea\u52a8\u7f16\u53f7\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u9700\u8981\u6839\u636e\u7279\u5b9a\u89c4\u5219\uff08\u4f8b\u5982\u8df3\u53f7\u3001\u6761\u4ef6\u589e\u52a0\u7b49\uff09\u8fdb\u884c\u7f16\u53f7\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a\n<ul>\n<li>\u5728\u7b2c\u4e00\u4e2a\u9700\u8981\u7f16\u53f7\u7684\u5355\u5143\u683cA1\u8f93\u5165\u516c\u5f0f<code>=ROW(A1)<\/code>\uff0c\u8fd9\u5c06\u8fd4\u56de\u5f53\u524d\u884c\u53f7\u4f5c\u4e3a\u7f16\u53f7\u3002<\/li>\n<li>\u5c06A1\u5355\u5143\u683c\u5411\u4e0b\u62d6\u52a8\u6216\u590d\u5236\uff0c\u5373\u53ef\u6839\u636e\u884c\u53f7\u5b9e\u73b0\u81ea\u52a8\u8fde\u7eed\u7f16\u53f7\u3002<\/li>\n<li>\u5982\u679c\u9700\u8981\u4ece\u7279\u5b9a\u7684\u6570\u503c\u5f00\u59cb\u7f16\u53f7\uff0c\u5047\u8bbe\u4ece100\u5f00\u59cb\uff0c\u516c\u5f0f\u5c06\u66f4\u6539\u4e3a<code>=ROW(A1)-1+100<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u4f7f\u7528VBA\u7f16\u7a0b\u5b9e\u73b0\u81ea\u52a8\u7f16\u53f7<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u7f16\u53f7\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7Excel\u7684VBA\uff08Visual Basic for Applications\uff09\u8fdb\u884c\u7f16\u7a0b\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a\n<ul>\n<li>\u6309\u4e0b<code>Alt + F11<\/code>\u952e\u8fdb\u5165VBA\u7f16\u8f91\u5668\u3002<\/li>\n<li>\u5728\u201c\u63d2\u5165\u201d\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u6a21\u5757\u201d\uff0c\u5728\u6a21\u5757\u7a97\u53e3\u8f93\u5165\u9002\u5408\u7684VBA\u4ee3\u7801\u3002<\/li>\n<li>\u7f16\u5199\u5b8c\u6210\u540e\uff0c\u5173\u95edVBA\u7f16\u8f91\u5668\uff0c\u5e76\u56de\u5230Excel\u8868\u683c\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u5b8f\u6216\u7ed1\u5b9a\u6309\u94ae\u7684\u65b9\u5f0f\u89e6\u53d1VBA\u4ee3\u7801\uff0c\u8fdb\u884c\u81ea\u52a8\u7f16\u53f7\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><p>\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u53ef\u4ee5\u5b9e\u73b0Excel\u8868\u683c\u7684\u8fde\u7eed\u7f16\u53f7\uff0c\u64cd\u4f5c\u8005\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u548c\u4e60\u60ef\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u6cd5\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q1\uff1a<\/strong> \u6211\u60f3\u5728Excel\u8868\u683c\u4e2d\u5b9e\u73b0\u8fde\u7eed\u7f16\u53f7\uff0c\u5e94\u8be5\u600e\u4e48\u505a\uff1f<\/p>\n<p><strong>A1\uff1a<\/strong> \u8981\u5728Excel\u8868\u683c\u4e2d\u5b9e\u73b0\u8fde\u7eed\u7f16\u53f7\uff0c\u53ef\u4ee5\u4f7f\u7528\u51fd\u6570\u3001\u81ea\u52a8\u586b\u5145\u6216\u8005\u5b8f\u6765\u5b8c\u6210\u3002 <\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528\u51fd\u6570\uff1a\u53ef\u4ee5\u4f7f\u7528Excel\u7684\u5e8f\u5217\u51fd\u6570\u6765\u5b9e\u73b0\u8fde\u7eed\u7f16\u53f7\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728A1\u5355\u5143\u683c\u4e2d\u8f93\u5165\u521d\u59cb\u7f16\u53f7\uff0c\u7136\u540e\u5728A2\u5355\u5143\u683c\u4e2d\u8f93\u5165\u516c\u5f0f<code>=A1+1<\/code>\uff0c\u7136\u540e\u62d6\u52a8\u586b\u5145\u624b\u67c4\u4ee5\u586b\u5145\u6574\u4e2a\u5217\u3002\u8fd9\u6837\u5c31\u4f1a\u81ea\u52a8\u8fde\u7eed\u7f16\u53f7\u3002<\/p>\n<\/li>\n<li>\n<p>\u81ea\u52a8\u586b\u5145\uff1a\u5982\u679c\u5df2\u7ecf\u8f93\u5165\u4e86\u521d\u59cb\u7f16\u53f7\uff0c\u53ef\u4ee5\u5c06\u9f20\u6807\u79fb\u52a8\u5230\u5355\u5143\u683c\u53f3\u4e0b\u89d2\u7684\u9ed1\u8272\u81ea\u52a8\u586b\u5145\u624b\u67c4\u4e0a\uff0c\u7136\u540e\u6309\u4f4f\u9f20\u6807\u5de6\u952e\u62d6\u52a8\uff0c\u5c31\u53ef\u4ee5\u5c06\u7f16\u53f7\u8fde\u7eed\u586b\u5145\u5230\u5176\u4ed6\u5355\u5143\u683c\u4e2d\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b8f\uff1a\u5982\u679c\u9700\u8981\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u89c4\u5219\u6216\u903b\u8f91\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b8f\u6765\u5b9e\u73b0\u8fde\u7eed\u7f16\u53f7\u3002\u901a\u8fc7\u7f16\u5199VBA\u4ee3\u7801\uff0c\u53ef\u4ee5\u6839\u636e\u81ea\u5b9a\u4e49\u89c4\u5219\u6765\u751f\u6210\u8fde\u7eed\u7f16\u53f7\u3002<\/p>\n<\/li>\n<\/ol>\n<p><strong>Q2\uff1a<\/strong> \u6211\u5728Excel\u8868\u683c\u4e2d\u8fdb\u884c\u6570\u636e\u5f55\u5165\u65f6\uff0c\u5e0c\u671b\u80fd\u591f\u81ea\u52a8\u4e3a\u6bcf\u884c\u751f\u6210\u8fde\u7eed\u7684\u7f16\u53f7\uff0c\u6709\u4ec0\u4e48\u597d\u7684\u65b9\u6cd5\u5417\uff1f<\/p>\n<p><strong>A2\uff1a<\/strong> \u5982\u679c\u4f60\u5e0c\u671b\u5728\u6bcf\u6b21\u8fdb\u884c\u6570\u636e\u5f55\u5165\u65f6\uff0c\u80fd\u591f\u81ea\u52a8\u4e3a\u6bcf\u884c\u751f\u6210\u8fde\u7eed\u7684\u7f16\u53f7\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Excel\u8868\u683c\u7684\u6570\u636e\u9a8c\u8bc1\u529f\u80fd\u7ed3\u5408\u5e8f\u5217\u51fd\u6570\u6765\u5b9e\u73b0\uff1a<\/p>\n<ol>\n<li>\n<p>\u9009\u62e9\u4f60\u5e0c\u671b\u7f16\u53f7\u7684\u5217\uff08\u5982A\u5217\uff09\uff0c\u70b9\u51fb\u201c\u6570\u636e\u201d\u9009\u9879\u5361\u4e0a\u7684\u201c\u6570\u636e\u9a8c\u8bc1\u201d\u6309\u94ae\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e2d\uff0c\u9009\u62e9\u201c\u5e8f\u5217\u201d\u4f5c\u4e3a\u9a8c\u8bc1\u65b9\u5f0f\uff0c\u5e76\u8bbe\u7f6e\u521d\u59cb\u7f16\u53f7\u548c\u6b65\u957f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u201c\u8f93\u5165\u63d0\u793a\u201d\u9009\u9879\u5361\u4e2d\uff0c\u8f93\u5165\u4f60\u5e0c\u671b\u663e\u793a\u7684\u63d0\u793a\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u8fd9\u6837\uff0c\u5728\u8fd9\u4e00\u5217\u5f55\u5165\u6570\u636e\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u4e3a\u6bcf\u884c\u751f\u6210\u8fde\u7eed\u7684\u7f16\u53f7\u3002<\/p>\n<p><strong>Q3\uff1a<\/strong> \u6211\u5728Excel\u4e2d\u5df2\u7ecf\u5b9e\u73b0\u4e86\u8fde\u7eed\u7f16\u53f7\uff0c\u4f46\u662f\u5f53\u5220\u9664\u67d0\u4e9b\u884c\u6216\u63d2\u5165\u65b0\u884c\u65f6\uff0c\u7f16\u53f7\u4f1a\u51fa\u73b0\u65ad\u88c2\uff0c\u600e\u4e48\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1f<\/p>\n<p><strong>A3\uff1a<\/strong> \u5982\u679c\u5728Excel\u4e2d\u5df2\u7ecf\u5b9e\u73b0\u4e86\u8fde\u7eed\u7f16\u53f7\uff0c\u4f46\u662f\u5f53\u5220\u9664\u6216\u63d2\u5165\u884c\u65f6\u5bfc\u81f4\u7f16\u53f7\u4e2d\u65ad\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1a<\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528\u51fd\u6570\uff1a\u5728\u8fde\u7eed\u7f16\u53f7\u7684\u90a3\u4e00\u5217\uff0c\u4f7f\u7528\u5e8f\u5217\u51fd\u6570\u6765\u751f\u6210\u7f16\u53f7\uff0c\u800c\u4e0d\u76f4\u63a5\u8f93\u5165\u7f16\u53f7\u3002\u8fd9\u6837\uff0c\u5728\u5220\u9664\u6216\u63d2\u5165\u884c\u65f6\uff0c\u5e8f\u5217\u51fd\u6570\u4f1a\u81ea\u52a8\u91cd\u65b0\u8ba1\u7b97\u5e76\u4fdd\u6301\u7f16\u53f7\u7684\u8fde\u7eed\u6027\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b8f\uff1a\u7f16\u5199\u4e00\u4e2a\u5b8f\u6765\u5b9e\u73b0\u8fde\u7eed\u7f16\u53f7\uff0c\u5e76\u5c06\u5b8f\u4e0e\u5220\u9664\u6216\u63d2\u5165\u884c\u7684\u64cd\u4f5c\u7ed1\u5b9a\u3002\u8fd9\u6837\uff0c\u6bcf\u6b21\u5220\u9664\u6216\u63d2\u5165\u884c\u65f6\uff0c\u5b8f\u4f1a\u81ea\u52a8\u91cd\u65b0\u8ba1\u7b97\u5e76\u66f4\u65b0\u7f16\u53f7\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u6ce8\u610f\uff1a\u5728\u4f7f\u7528\u51fd\u6570\u6216\u5b8f\u6765\u5b9e\u73b0\u8fde\u7eed\u7f16\u53f7\u65f6\uff0c\u7f16\u53f7\u7684\u683c\u5f0f\u548c\u8d77\u59cb\u4f4d\u7f6e\u9700\u8981\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u8c03\u6574\uff0c\u4ee5\u4fdd\u8bc1\u7f16\u53f7\u7684\u8fde\u7eed\u6027\u548c\u6b63\u786e\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Excel\u8868\u683c\u7f16\u53f7\u5982\u4f55\u8fde\u7eed\u7f16\u53f7\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u586b\u5145\u67c4\u62d6\u52a8\u3001\u5229\u7528\u5e8f\u5217\u529f\u80fd\u3001\u91c7\u7528\u516c\u5f0f\u81ea\u52a8\u7f16\u53f7\u3001\u4ee5\u53ca\u4f7f\u7528VBA [&hellip;]","protected":false},"author":3,"featured_media":138101,"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\/138096"}],"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=138096"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/138096\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/138101"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=138096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=138096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=138096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}