{"id":5460,"date":"2024-11-11T10:57:13","date_gmt":"2024-11-11T10:57:13","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=5460"},"modified":"2024-11-11T10:57:13","modified_gmt":"2024-11-11T10:57:13","slug":"a-comprehensive-guide-on-utilizing-the-array-formula-in-google-sheets","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/a-comprehensive-guide-on-utilizing-the-array-formula-in-google-sheets\/","title":{"rendered":"\u5728 Google Sheets \u4e2d\u4f7f\u7528\u9663\u5217\u516c\u5f0f\u7684\u7d9c\u5408\u6307\u5357"},"content":{"rendered":"<h1>\u91cb\u653e Google \u8a66\u7b97\u8868\u4e2d ARRAYFORMULA \u7684\u5f37\u5927\u529f\u80fd<\/h1>\n<p><strong>Google\u8868\u683c\u4e2d\u7684ARRAYFORMULA<\/strong>\u51fd\u6578\u662f\u4e00\u500b\u904a\u6232\u898f\u5247\u6539\u8b8a\u8005\uff0c\u4f7f\u7528\u6236\u80fd\u5920\u8f15\u9b06\u5730\u5728\u6574\u500b\u5217\u4e2d\u61c9\u7528\u55ae\u4e00\u516c\u5f0f\u3002\u9019\u9805\u5f37\u5927\u7684\u529f\u80fd\u6d88\u9664\u4e86\u5728\u591a\u500b\u55ae\u5143\u683c\u4e4b\u9593\u7e41\u7463\u7684\u8907\u88fd\u8cbc\u4e0a\u6216\u62d6\u66f3\u516c\u5f0f\u7684\u9700\u8981\uff0c\u4f7f\u8cc7\u6599\u64cd\u4f5c\u66f4\u5feb\u3001\u66f4\u6709\u6548\u7387\u3002\u7121\u8ad6\u60a8\u662f\u8a08\u7b97\u7e3d\u8a08\u9084\u662f\u57f7\u884c\u8907\u96dc\u904b\u7b97\uff0cARRAYFORMULA \u90fd\u53ef\u4ee5\u8207\u5176\u4ed6\u51fd\u6578\uff08\u5305\u62ec<strong>IF<\/strong>\u3001<strong>SUM<\/strong>\u548c<strong>SUMIF \uff09<\/strong>\u7d50\u5408\u4f7f\u7528\uff0c\u4ee5\u6709\u6548\u5730\u81ea\u52d5\u57f7\u884c\u8a08\u7b97\u3002<\/p>\n<h2 id=\"using-the-array-formula\">\u5982\u4f55\u4f7f\u7528\u6578\u7d44\u516c\u5f0f<\/h2>\n<p>\u4f7f\u7528\u6b64\u51fd\u6578\u7684\u8a9e\u6cd5\u662f<code>ARRAYFORMULA(array_formula)<\/code>\uff0c\u53ef\u4ee5\u5728\u9700\u8981\u55ae\u4e00\u53c3\u6578\u6642\u5957\u7528\u3002\u9019\u53ef\u80fd\u6d89\u53ca\u8655\u7406\u591a\u500b\u76f8\u540c\u5927\u5c0f\u3001\u8868\u9054\u5f0f\u6216\u6307\u5b9a\u55ae\u5143\u683c\u7bc4\u570d\u7684\u9663\u5217\u7684\u51fd\u6578\u3002 ARRAYFORMULA \u51fd\u6578\u53ef\u4ee5\u5728\u60a8\u6700\u521d\u8f38\u5165\u516c\u5f0f\u5f8c\u5f15\u5165\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u70ba\u516c\u5f0f\u5275\u5efa\u904e\u7a0b\u7684\u4e00\u90e8\u5206\u5f15\u5165\u3002<\/p>\n<h3>\u7bc4\u4f8b\uff1a\u8a08\u7b97\u7e3d\u92b7\u552e\u984d<\/h3>\n<p>\u8b93\u6211\u5011\u8003\u616e\u4e00\u500b\u5834\u666f\uff0c\u60a8\u9700\u8981\u900f\u904e\u5c07<em>Quantity Sold<\/em>\u4e58\u4ee5<em>Unit Price<\/em>\u4f86\u8a08\u7b97\u7e3d\u92b7\u552e\u984d\u3002<\/p>\n<ol>\n<li>\u4f7f\u7528\u4e0b\u5217\u516c\u5f0f\uff1a<code>=ARRAYFORMULA(B2:B6*C2:C6)<\/code>\u5c07\u7bc4\u570d B2 \u5230 B6 \u548c C2 \u5230 C6 \u76f8\u4e58\u3002<\/li>\n<li>\u6309 Enter \u9375\u5f8c\uff0c\u7e3d\u8a08\u5217\u5c07\u81ea\u52d5\u586b\u5165\u5c0d\u61c9\u503c\u7684\u4e58\u7a4d\u3002<\/li>\n<\/ol>\n<figure class=\"wp-block-image\"><img alt=\"\u7e3d\u92b7\u552e\u984d\u8a08\u7b97\" class=\"wp-image\" decoding=\"async\" height=\"467\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/11\/image-190-1.webp\" title=\"\u7e3d\u92b7\u552e\u984d\u8a08\u7b97\" width=\"831\"\/><\/figure>\n<h2 id=\"using-the-if-function\">\u5c07 ARRAYFORMULA \u8207 IF \u51fd\u6578\u96c6\u6210<\/h2>\n<p>ARRAYFORMULA \u53ef\u4ee5\u8207<strong>IF<\/strong>\u51fd\u6578\u7121\u7e2b\u914d\u5408\uff0c\u8b93\u60a8\u8de8\u7bc4\u570d\u8a2d\u5b9a\u689d\u4ef6\u3002<\/p>\n<h3>\u7bc4\u4f8b\uff1a\u78ba\u5b9a\u734e\u91d1\u8cc7\u683c<\/h3>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u5e0c\u671b\u91d1\u984d\u8d85\u904e 20,000 \u6642\u986f\u793a\u201c\u734e\u91d1\u201d\uff0c\u5426\u5247\u986f\u793a\u201c\u7121\u734e\u91d1\u201d\uff0c\u60a8\u53ef\u4ee5\u57f7\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u8f38\u5165\u6b64\u516c\u5f0f\uff1a<code>=ARRAYFORMULA(IF(B2:B6&gt;20000, \"Bonus\", \"No Bonus\"))<\/code>\u8a55\u4f30\u6574\u500b\u6307\u5b9a\u7bc4\u570d\u3002<\/li>\n<li>\u6309 Enter \u5f8c\uff0c\u7d50\u679c\u5c07\u76f8\u61c9\u5730\u53cd\u6620\u5728\u734e\u91d1\u90e8\u5206\u3002<\/li>\n<\/ol>\n<figure class=\"wp-block-image\"><img alt=\"\u734e\u91d1\u8a08\u7b97\u7bc4\u4f8b\" class=\"wp-image\" decoding=\"async\" height=\"485\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/11\/image-193-1.webp\" title=\"\u734e\u91d1\u8a08\u7b97\u7bc4\u4f8b\" width=\"863\"\/><\/figure>\n<h2 id=\"using-the-sumif-function\">\u5c07 ARRAYFORMULA \u8207 SUMIF \u7d50\u5408\u4f7f\u7528<\/h2>\n<p>ARRAYFORMULA \u53ef\u4ee5\u8207<strong>SUMIF<\/strong>\u51fd\u6578\u6709\u6548\u7d50\u5408\uff0c\u9032\u884c\u66f4\u9032\u968e\u7684\u8cc7\u6599\u5206\u6790\u3002<\/p>\n<h3>\u4f8b\uff1a\u76e4\u9ede\u8a02\u8cfc\u7684\u6587\u5177\u7269\u54c1<\/h3>\n<p>\u5982\u679c\u60a8\u60f3\u8a08\u7b97\u8a02\u8cfc\u7684\u5206\u985e\u6587\u5177\u5546\u54c1\u7684\u6578\u91cf\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u5f9e\u516c\u5f0f\u958b\u59cb\uff1a<code>SUMIF(F2:F, H2:H, D2:D)<\/code>\u3002<\/li>\n<li>\u6309 Enter \u9375\u53ef\u67e5\u770b\u7e3d\u6578\uff0c\u4f8b\u5982\u5132\u5b58\u683c I2 \u4e2d\u70ba 32\u3002<\/li>\n<li>\u82e5\u8981\u5c07\u5176\u64f4\u5c55\u5230\u6240\u6709\u985e\u5225\uff0c\u8acb\u4f7f\u7528\uff1a<code>=ARRAYFORMULA(SUMIF(F2:F, H2:H, D2:D))<\/code>\u3002<\/li>\n<\/ol>\n<figure class=\"wp-block-image\"><img alt=\"\u5c07 SUMIF \u8207 ARRAYFORMULA \u7d50\u5408\u4f7f\u7528\" class=\"wp-image\" decoding=\"async\" height=\"584\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/11\/image-199-1.webp\" title=\"\u5c07 SUMIF \u8207 ARRAYFORMULA \u7d50\u5408\u4f7f\u7528\" width=\"1038\"\/><\/figure>\n<h2 id=\"things-to-know\">\u91cd\u8981\u8003\u616e\u56e0\u7d20<\/h2>\n<ul>\n<li>\u78ba\u4fdd\u4f7f\u7528\u7684\u6240\u6709\u6578\u7d44\u7684\u5927\u5c0f\u76f8\u540c\u4ee5\u907f\u514d\u932f\u8aa4\u3002<\/li>\n<li>\u60a8\u53ef\u4ee5\u5229\u7528<code>Ctrl + Shift + Enter<\/code>\u5feb\u6377\u65b9\u5f0f\u81ea\u52d5\u5c07\u201cARRAYFORMULA\u201d\u63d2\u5165\u516c\u5f0f\u4e2d\u3002<\/li>\n<li>\u5c0d ARRAYFORMULA \u4e2d\u5404\u500b\u5132\u5b58\u683c\u6240\u505a\u7684\u8b8a\u66f4\u5c07\u5f71\u97ff\u6307\u5b9a\u7bc4\u570d\u5167\u7684\u6240\u6709\u5132\u5b58\u683c\u3002<\/li>\n<li>\u8acb\u6ce8\u610f\uff0c\u96d6\u7136 ARRAYFORMULA \u53ef\u4f7f\u7528\u5404\u7a2e\u51fd\u6578\uff0c\u4f46\u5b83\u4e0d\u652f\u63f4<strong>\u67e5\u8a62<\/strong>\u6216<strong>\u7be9\u9078<\/strong>\u51fd\u6578\u3002<\/li>\n<\/ul>\n<p>\u6709\u95dc\u5728 Google \u8a66\u7b97\u8868\u4e2d\u4f7f\u7528 ARRAYFORMULA \u7684\u66f4\u8a73\u7d30\u6307\u5357\uff0c\u8acb\u9020\u8a2a<a class=\"xiaomi\" href=\"https:\/\/allthings.how\/how-to-use-the-array-formula-in-google-sheets\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u6b64\u4f86\u6e90<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91cb\u653e Google \u8a66\u7b97\u8868\u4e2d ARRAYFORMULA \u7684\u5f37\u5927\u529f\u80fd Google\u8868\u683c\u4e2d\u7684ARRAYFORMULA\u51fd\u6578\u662f\u4e00\u500b\u904a\u6232\u898f\u5247\u6539\u8b8a\u8005\uff0c\u4f7f\u7528\u6236\u80fd\u5920\u8f15\u9b06\u5730\u5728\u6574\u500b\u5217\u4e2d\u61c9\u7528\u55ae\u4e00\u516c\u5f0f\u3002\u9019\u9805\u5f37\u5927\u7684\u529f\u80fd\u6d88\u9664\u4e86\u5728\u591a\u500b\u55ae\u5143\u683c\u4e4b\u9593\u7e41\u7463\u7684\u8907\u88fd\u8cbc\u4e0a\u6216\u62d6\u66f3\u516c\u5f0f\u7684\u9700\u8981\uff0c\u4f7f\u8cc7\u6599\u64cd\u4f5c\u66f4\u5feb\u3001\u66f4\u6709\u6548\u7387\u3002\u7121\u8ad6\u60a8\u662f\u8a08\u7b97\u7e3d\u8a08\u9084\u662f\u57f7\u884c\u8907\u96dc\u904b\u7b97\uff0cARRAYFORMULA \u90fd\u53ef\u4ee5\u8207\u5176\u4ed6\u51fd\u6578\uff08\u5305\u62ecIF\u3001SUM\u548cSUMIF \uff09\u7d50\u5408\u4f7f\u7528\uff0c\u4ee5\u6709\u6548\u5730\u81ea\u52d5\u57f7\u884c\u8a08\u7b97\u3002 \u5982\u4f55\u4f7f\u7528\u6578\u7d44\u516c\u5f0f \u4f7f\u7528\u6b64\u51fd\u6578\u7684\u8a9e\u6cd5\u662fARRAYFORMULA(array_formula)\uff0c\u53ef\u4ee5\u5728\u9700\u8981\u55ae\u4e00\u53c3\u6578\u6642\u5957\u7528\u3002\u9019\u53ef\u80fd\u6d89\u53ca\u8655\u7406\u591a\u500b\u76f8\u540c\u5927\u5c0f\u3001\u8868\u9054\u5f0f\u6216\u6307\u5b9a\u55ae\u5143\u683c\u7bc4\u570d\u7684\u9663\u5217\u7684\u51fd\u6578\u3002 ARRAYFORMULA \u51fd\u6578\u53ef\u4ee5\u5728\u60a8\u6700\u521d\u8f38\u5165\u516c\u5f0f\u5f8c\u5f15\u5165\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u70ba\u516c\u5f0f\u5275\u5efa\u904e\u7a0b\u7684\u4e00\u90e8\u5206\u5f15\u5165\u3002 \u7bc4\u4f8b\uff1a\u8a08\u7b97\u7e3d\u92b7\u552e\u984d \u8b93\u6211\u5011\u8003\u616e\u4e00\u500b\u5834\u666f\uff0c\u60a8\u9700\u8981\u900f\u904e\u5c07Quantity Sold\u4e58\u4ee5Unit Price\u4f86\u8a08\u7b97\u7e3d\u92b7\u552e\u984d\u3002 \u4f7f\u7528\u4e0b\u5217\u516c\u5f0f\uff1a=ARRAYFORMULA(B2:B6*C2:C6)\u5c07\u7bc4\u570d B2 \u5230 B6 \u548c C2 \u5230 C6 \u76f8\u4e58\u3002 \u6309 Enter \u9375\u5f8c\uff0c\u7e3d\u8a08\u5217\u5c07\u81ea\u52d5\u586b\u5165\u5c0d\u61c9\u503c\u7684\u4e58\u7a4d\u3002 \u5c07 ARRAYFORMULA \u8207 IF \u51fd\u6578\u96c6\u6210 ARRAYFORMULA \u53ef\u4ee5\u8207IF\u51fd\u6578\u7121\u7e2b\u914d\u5408\uff0c\u8b93\u60a8\u8de8\u7bc4\u570d\u8a2d\u5b9a\u689d\u4ef6\u3002 \u7bc4\u4f8b\uff1a\u78ba\u5b9a\u734e\u91d1\u8cc7\u683c \u4f8b\u5982\uff0c\u5982\u679c\u60a8\u5e0c\u671b\u91d1\u984d\u8d85\u904e 20,000 \u6642\u986f\u793a\u201c\u734e\u91d1\u201d\uff0c\u5426\u5247\u986f\u793a\u201c\u7121\u734e\u91d1\u201d\uff0c\u60a8\u53ef\u4ee5\u57f7\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a \u8f38\u5165\u6b64\u516c\u5f0f\uff1a=ARRAYFORMULA(IF(B2:B6&gt;20000, &#8220;Bonus&#8221;, &#8220;No Bonus&#8221;))\u8a55\u4f30\u6574\u500b\u6307\u5b9a\u7bc4\u570d\u3002 \u6309 Enter \u5f8c\uff0c\u7d50\u679c\u5c07\u76f8\u61c9\u5730\u53cd\u6620\u5728\u734e\u91d1\u90e8\u5206\u3002 \u5c07 ARRAYFORMULA \u8207 SUMIF \u7d50\u5408\u4f7f\u7528 ARRAYFORMULA \u53ef\u4ee5\u8207SUMIF\u51fd\u6578\u6709\u6548\u7d50\u5408\uff0c\u9032\u884c\u66f4\u9032\u968e\u7684\u8cc7\u6599\u5206\u6790\u3002 \u4f8b\uff1a\u76e4\u9ede\u8a02\u8cfc\u7684\u6587\u5177\u7269\u54c1 \u5982\u679c\u60a8\u60f3\u8a08\u7b97\u8a02\u8cfc\u7684\u5206\u985e\u6587\u5177\u5546\u54c1\u7684\u6578\u91cf\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u64cd\u4f5c\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[808,129,175],"class_list":["post-5460","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-google-sheets","tag-microsoft","tag-web"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/5460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=5460"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/5460\/revisions"}],"predecessor-version":[{"id":5461,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/5460\/revisions\/5461"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=5460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=5460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=5460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}