{"id":633173,"date":"2024-07-15T23:54:36","date_gmt":"2024-07-15T15:54:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/633173.html"},"modified":"2024-07-15T23:54:38","modified_gmt":"2024-07-15T15:54:38","slug":"%e5%8d%8f%e4%bd%9c%e8%a1%a8%e6%a0%bc%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/633173.html","title":{"rendered":"\u534f\u4f5c\u8868\u683c\u5982\u4f55\u8c03\u7528\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26084225\/5c396b9e-99db-469c-8a6e-6f16ded34b9d.webp\" alt=\"\u534f\u4f5c\u8868\u683c\u5982\u4f55\u8c03\u7528\u51fd\u6570\" \/><\/p>\n<p><p>\u534f\u4f5c\u8868\u683c\u8c03\u7528\u51fd\u6570\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a\u9009\u62e9\u51fd\u6570\u3001\u8f93\u5165\u53c2\u6570\u3001\u786e\u8ba4\u5e76\u6267\u884c\u3002\u5728\u65e5\u5e38\u7684\u6570\u636e\u5904\u7406\u4e2d\uff0c\u51fd\u6570\u662f\u534f\u4f5c\u8868\u683c\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u4e2a\u529f\u80fd\uff0c\u5b83\u80fd\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u7684\u8fdb\u884c\u8ba1\u7b97\u3001\u5206\u6790\u6570\u636e\u3002\u5c31\u50cfExcel\u4e00\u6837\uff0c\u534f\u4f5c\u8868\u683c\u4e5f\u6709\u5f88\u591a\u5185\u7f6e\u7684\u51fd\u6570\uff0c\u6bd4\u5982\u6c42\u548c\u51fd\u6570SUM\u3001\u5e73\u5747\u503c\u51fd\u6570AVERAGE\u3001\u8ba1\u6570\u51fd\u6570COUNT\u7b49\u3002\u800c\u4e14\uff0c\u534f\u4f5c\u8868\u683c\u8fd8\u652f\u6301\u81ea\u5b9a\u4e49\u51fd\u6570\uff0c\u80fd\u591f\u6ee1\u8db3\u66f4\u591a\u590d\u6742\u7684\u8ba1\u7b97\u9700\u6c42\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u534f\u4f5c\u8868\u683c\u4e2d\u8c03\u7528\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u9009\u62e9\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u534f\u4f5c\u8868\u683c\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u76f4\u63a5\u8f93\u5165\u51fd\u6570\u7684\u540d\u79f0\u6765\u8c03\u7528\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u8981\u4f7f\u7528\u6c42\u548c\u51fd\u6570\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165=SUM()\u3002\u53e6\u5916\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u51fd\u6570\u83dc\u5355\u6765\u9009\u62e9\u51fd\u6570\u3002\u5728\u83dc\u5355\u680f\u4e2d\uff0c\u70b9\u51fb\u201c\u51fd\u6570\u201d\u6309\u94ae\uff0c\u5c31\u4f1a\u5f39\u51fa\u4e00\u4e2a\u5305\u542b\u6240\u6709\u53ef\u7528\u51fd\u6570\u7684\u5217\u8868\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u4e2d\u9009\u62e9\u9700\u8981\u7684\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u8f93\u5165\u53c2\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u6211\u4eec\u9009\u62e9\u597d\u51fd\u6570\u540e\uff0c\u5c31\u9700\u8981\u4e3a\u51fd\u6570\u8f93\u5165\u53c2\u6570\u3002\u53c2\u6570\u662f\u51fd\u6570\u6267\u884c\u8ba1\u7b97\u7684\u57fa\u7840\uff0c\u4e0d\u540c\u7684\u51fd\u6570\u6240\u9700\u8981\u7684\u53c2\u6570\u4e5f\u4e0d\u540c\u3002\u4f8b\u5982\uff0c\u6c42\u548c\u51fd\u6570SUM\u9700\u8981\u7684\u53c2\u6570\u5c31\u662f\u4e00\u7cfb\u5217\u7684\u6570\u5b57\u6216\u8005\u662f\u5305\u542b\u6570\u5b57\u7684\u5355\u5143\u683c\u8303\u56f4\u3002\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165\u51fd\u6570\u548c\u53c2\u6570\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u51fd\u6570\u540d\u548c\u53c2\u6570\u4e4b\u95f4\u6ca1\u6709\u7a7a\u683c\uff0c\u5e76\u4e14\u53c2\u6570\u4e4b\u95f4\u9700\u8981\u7528\u9017\u53f7\u5206\u9694\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u8981\u8ba1\u7b97A1\u5230A10\u5355\u5143\u683c\u7684\u548c\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u8f93\u5165=SUM(A1:A10)\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u786e\u8ba4\u5e76\u6267\u884c<\/strong><\/p>\n<\/p>\n<p><p>\u8f93\u5165\u5b8c\u51fd\u6570\u548c\u53c2\u6570\u540e\uff0c\u6211\u4eec\u9700\u8981\u786e\u8ba4\u5e76\u6267\u884c\u51fd\u6570\u3002\u5728\u534f\u4f5c\u8868\u683c\u4e2d\uff0c\u786e\u8ba4\u51fd\u6570\u7684\u65b9\u6cd5\u662f\u6309\u4e0b\u56de\u8f66\u952e\u6216\u8005\u70b9\u51fb\u8f93\u5165\u6846\u65c1\u8fb9\u7684\u52fe\u9009\u6309\u94ae\u3002\u4e00\u65e6\u786e\u8ba4\uff0c\u51fd\u6570\u5c31\u4f1a\u7acb\u5373\u6267\u884c\uff0c\u5e76\u4e14\u7ed3\u679c\u4f1a\u663e\u793a\u5728\u8f93\u5165\u51fd\u6570\u7684\u5355\u5143\u683c\u4e2d\u3002\u5982\u679c\u51fd\u6570\u7684\u53c2\u6570\u5305\u542b\u7684\u5355\u5143\u683c\u4e2d\u7684\u6570\u636e\u53d1\u751f\u53d8\u5316\uff0c\u90a3\u4e48\u51fd\u6570\u7684\u7ed3\u679c\u4e5f\u4f1a\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><p><strong>\u56db\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684\u51fd\u6570\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5728\u534f\u4f5c\u8868\u683c\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u81ea\u5b9a\u4e49\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u89e3\u51b3\u4e00\u4e9b\u5185\u7f6e\u51fd\u6570\u65e0\u6cd5\u5b8c\u6210\u7684\u590d\u6742\u8ba1\u7b97\u95ee\u9898\u3002\u521b\u5efa\u81ea\u5b9a\u4e49\u51fd\u6570\u9700\u8981\u4e00\u4e9b\u7f16\u7a0b\u77e5\u8bc6\uff0c\u901a\u5e38\u4f7f\u7528JavaScript\u8bed\u8a00\u3002\u5728\u534f\u4f5c\u8868\u683c\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u201c\u5de5\u5177\u201d-&gt;\u201c\u811a\u672c\u7f16\u8f91\u5668\u201d\u6765\u7f16\u5199\u548c\u7ba1\u7406\u81ea\u5b9a\u4e49\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e94\u3001\u4f7f\u7528\u6570\u7ec4\u516c\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u534f\u4f5c\u8868\u683c\u4e2d\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6570\u7ec4\u516c\u5f0f\u6765\u8fdb\u884c\u6279\u91cf\u8ba1\u7b97\u3002\u6570\u7ec4\u516c\u5f0f\u53ef\u4ee5\u4e00\u6b21\u6027\u5bf9\u4e00\u4e2a\u8303\u56f4\u7684\u5355\u5143\u683c\u8fdb\u884c\u8ba1\u7b97\uff0c\u800c\u4e0d\u9700\u8981\u4e3a\u6bcf\u4e2a\u5355\u5143\u683c\u5355\u72ec\u8f93\u5165\u516c\u5f0f\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6570\u7ec4\u516c\u5f0f=SUM(A1:A10*B1:B10)\u6765\u8ba1\u7b97A1\u5230A10\u548cB1\u5230B10\u4e24\u4e2a\u8303\u56f4\u7684\u5355\u5143\u683c\u7684\u5bf9\u5e94\u4e58\u79ef\u7684\u548c\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u8d77\u6765\uff0c\u534f\u4f5c\u8868\u683c\u4e2d\u7684\u51fd\u6570\u548c\u516c\u5f0f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u3001\u9ad8\u6548\u5730\u5904\u7406\u6570\u636e\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u8ba1\u7b97\uff0c\u8fd8\u662f\u590d\u6742\u7684\u6570\u636e\u5206\u6790\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u51fd\u6570\u548c\u516c\u5f0f\u6765\u8f7b\u677e\u5b8c\u6210\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728\u534f\u4f5c\u8868\u683c\u4e2d\u8c03\u7528\u51fd\u6570\uff1f<\/strong><br \/>\n\u5728\u534f\u4f5c\u8868\u683c\u4e2d\u8c03\u7528\u51fd\u6570\u975e\u5e38\u7b80\u5355\u3002\u60a8\u53ea\u9700\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165\u51fd\u6570\u540d\u79f0\uff0c\u7136\u540e\u4f7f\u7528\u62ec\u53f7\u5c06\u53c2\u6570\u62ec\u8d77\u6765\u3002\u4f8b\u5982\uff0c\u5982\u679c\u8981\u5728\u67d0\u4e2a\u5355\u5143\u683c\u4e2d\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u548c\uff0c\u53ef\u4ee5\u8f93\u5165&quot;=SUM(A1, B1)&quot;\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\u5373\u53ef\u8ba1\u7b97\u51fa\u7ed3\u679c\u3002<\/p>\n<p><strong>2. \u534f\u4f5c\u8868\u683c\u4e2d\u53ef\u4ee5\u8c03\u7528\u54ea\u4e9b\u51fd\u6570\uff1f<\/strong><br \/>\n\u534f\u4f5c\u8868\u683c\u4e2d\u53ef\u4ee5\u8c03\u7528\u591a\u79cd\u51fd\u6570\u6765\u6267\u884c\u5404\u79cd\u4efb\u52a1\u3002\u4e00\u4e9b\u5e38\u7528\u7684\u51fd\u6570\u5305\u62ecSUM\uff08\u6c42\u548c\uff09\u3001AVERAGE\uff08\u6c42\u5e73\u5747\u503c\uff09\u3001MAX\uff08\u6c42\u6700\u5927\u503c\uff09\u3001MIN\uff08\u6c42\u6700\u5c0f\u503c\uff09\u7b49\u3002\u6b64\u5916\uff0c\u8fd8\u6709\u903b\u8f91\u51fd\u6570\uff08\u5982IF\u3001AND\u3001OR\uff09\u3001\u6587\u672c\u51fd\u6570\uff08\u5982CONCATENATE\u3001LEFT\u3001RIGHT\uff09\u7b49\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5904\u7406\u6570\u636e\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5728\u534f\u4f5c\u8868\u683c\u4e2d\u81ea\u5b9a\u4e49\u51fd\u6570\uff1f<\/strong><br \/>\n\u5982\u679c\u534f\u4f5c\u8868\u683c\u63d0\u4f9b\u7684\u51fd\u6570\u65e0\u6cd5\u6ee1\u8db3\u60a8\u7684\u9700\u6c42\uff0c\u60a8\u8fd8\u53ef\u4ee5\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u8981\u81ea\u5b9a\u4e49\u51fd\u6570\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528App Script\uff08Google Sheets\u7684\u81ea\u52a8\u5316\u811a\u672c\u7f16\u8f91\u5668\uff09\u6765\u7f16\u5199JavaScript\u4ee3\u7801\u3002\u901a\u8fc7\u7f16\u5199\u81ea\u5df1\u7684\u51fd\u6570\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u7279\u5b9a\u7684\u903b\u8f91\u548c\u9700\u6c42\u6765\u5904\u7406\u6570\u636e\u3002\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u9700\u8981\u4e00\u4e9b\u7f16\u7a0b\u77e5\u8bc6\uff0c\u4f46\u662f\u4e00\u65e6\u7f16\u5199\u5b8c\u6210\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728\u534f\u4f5c\u8868\u683c\u4e2d\u50cf\u4f7f\u7528\u5176\u4ed6\u51fd\u6570\u4e00\u6837\u8c03\u7528\u5b83\u4eec\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u534f\u4f5c\u8868\u683c\u8c03\u7528\u51fd\u6570\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a\u9009\u62e9\u51fd\u6570\u3001\u8f93\u5165\u53c2\u6570\u3001\u786e\u8ba4\u5e76\u6267\u884c\u3002\u5728\u65e5\u5e38\u7684\u6570\u636e\u5904\u7406\u4e2d\uff0c\u51fd\u6570\u662f\u534f\u4f5c\u8868\u683c\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684 [&hellip;]","protected":false},"author":3,"featured_media":633176,"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\/633173"}],"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=633173"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/633173\/revisions"}],"predecessor-version":[{"id":633178,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/633173\/revisions\/633178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/633176"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=633173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=633173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=633173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}