{"id":372,"date":"2018-03-14T10:05:00","date_gmt":"2018-03-14T02:05:00","guid":{"rendered":"http:\/\/www.max-shu.com\/blog\/?p=372"},"modified":"2018-03-14T10:05:00","modified_gmt":"2018-03-14T02:05:00","slug":"%e5%a6%82%e4%bd%95%e7%94%a8-excel-%e8%a8%88%e7%ae%97%e5%8d%95%e5%85%83%e6%a0%bc%e8%a3%a1%e9%9d%a2%e7%9a%84%e4%b8%8d%e5%90%8c%e5%80%bc%e4%b9%8b%e5%80%8b%e6%95%b8%ef%bc%9f%e8%bd%ac","status":"publish","type":"post","link":"http:\/\/www.max-shu.com\/blog\/?p=372","title":{"rendered":"\u5982\u4f55\u7528 Excel \u8a08\u7b97\u5355\u5143\u683c\u88e1\u9762\u7684\u4e0d\u540c\u503c\u4e4b\u500b\u6578\uff1f(\u8f6c)"},"content":{"rendered":"<p>\u4eca\u5929\u670b\u53cb\u554f\u4e86\u6211\u4e00\u500b Excel \u7684\u554f\u984c\uff0c\u5982\u679c\u6709\u4e00\u4e32\u8cc7\u6599\uff0c\u60f3\u8981\u8a08\u7b97\u88e1\u9762\u7684\u4e0d\u540c\u503c\u5171\u6709\u5e7e\u500b\uff0c\u8981\u600e\u9ebc\u4f5c\uff1f\u9019\u500b\u554f\u984c\u5728\u8cc7\u6599\u5eab\u5f88\u7c21\u55ae\uff0c\u5c31\u662f select + count + group by \u5c31\u4f5c\u5b8c\u4e86\uff0c\u4f46\u5728 excel \u561b\uff0c\u9084\u662f\u62dc\u8acb google \u5927\u795e\uff0c\u7d50\u679c\u7b2c\u4e00\u7bc7\u5c31\u5f97\u5230\u9019\u500b\u7b54\u6848\u3002<\/p>\n<p>=SUMPRODUCT((A1:A10&lt;&gt;&#8221;&#8221;)\/COUNTIF(A1:A10,A1:A10&amp;&#8221;&#8221;))<\/p>\n<p>A1:A10 \u7576\u7136\u662f Range\uff0c\u53ef\u4ee5\u81ea\u5df1\u66ff\u63db\uff0c\u4f46\u9019\u4e00\u4e32\u5230\u5e95\u5728\u4f5c\u4ec0\u9ebc\uff0c\u6211\u8a66\u8457\u7528\u6211\u7684\u7406\u89e3\u89e3\u91cb\u770b\u770b\u3002<\/p>\n<p>\u5047\u8a2d\u6709\u4e00\u4e32\u8cc7\u6599 A1 \u5230 A10 \u5171 10 \u500b\u5132\u5b58\u683c\uff0c\u5171\u6709 4 \u500b A\u30013 \u500b B\u30012 \u500b C\u30011 \u500b\u7a7a\u767d\uff0c\u88e1\u9762\u4e0d\u540c\u7684\u503c\u5c31\u662f ABC \u5171 3 \u500b\uff0c\u6240\u4ee5\u8981\u5f97\u5230\u7684\u7b54\u6848\u5c31\u662f3\uff0c\u6211\u5011\u7528\u4e0a\u9762\u7684\u516c\u5f0f\u8dd1\u51fa\u4f86\u7684\u7d50\u679c\u5982\u4e0b\uff1a<\/p>\n<p>\u5224\u65b7\u516c\u5f0f\u4f5c\u5565\uff0c\u7576\u7136\u5f9e\u62ec\u865f\u88e1\u9762\u4f86\uff0c\u9996\u5148\u662f (A1:A10&lt;&gt;&#8221;&#8221;)\uff0c\u9019\u53e5\u5224\u65b7 Range \u88e1\u7684\u6bcf\u4e00\u500b\u503c\u662f\u5426\u4e0d\u7b49\u65bc\u7a7a\u5b57\u4e32\uff0c\u63db\u53e5\u8a71\u8aaa\u5c31\u662f\u5132\u5b58\u683c\u5167\u6709\u503c\u70ba true (1)\uff0c\u5132\u5b58\u683c\u5167\u6c92\u6709\u503c\u5c31\u662f false (0) \u56c9\u3002<\/p>\n<p>\u90a3\u9664\u865f (\/) \u5f8c\u9762\u7684 COUNTIF(A1:A10,A1:A10&amp;&#8221;&#8221;) \u53c8\u662f\u4ec0\u9ebc\u610f\u601d\uff0c\u5b83\u8a08\u7b97\u6bcf\u4e00\u500b\u503c\u51fa\u73fe\u7684\u6b21\u6578\uff0c\u7b2c\u4e8c\u500b\u53c3\u6578\u4e4b\u6240\u4ee5 AND (&amp;) \u7a7a\u5b57\u4e32 (&#8220;&#8221;)\uff0c\u662f\u5e0c\u671b\u8a08\u6b21\u6642\u7528\u5b57\u4e32\u8655\u7406\uff0c\u9019\u6a23\u9047\u5230\u7a7a\u5b57\u4e32\u4e5f\u8a08\u6b21\u5f97\u5230\uff0c\u4e0d\u6703\u7522\u751f 0 \u7684\u7d50\u679c\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u5011\u5f97\u5230\u4e86\u4e00\u500b\u5168\u90e8\u662f true \u8ddf false \u7684\u8cc7\u6599\u9663\u5217\uff0c\u4ee5\u53ca\u4e00\u500b\u5168\u662f\u6b21\u6578\u7684\u8cc7\u6599\u9663\u5217\uff0c\u63a5\u4e0b\u4f86\u76f8\u9664 (\/)\uff0c\u5f97\u5230\uff1a<\/p>\n<p>\u4ee5 A \u4f86\u8aaa\u51fa\u73fe\u4e86 4 \u6b21\uff0c\u7d50\u679c\u7d93\u904e\u4e86\u4e0a\u9762\u7684\u8a08\u7b97\uff0c\u5f97\u5230\u7684\u5c31\u662f 1\/4\uff0c\u9019\u6a23\u6700\u5f8c\u6211\u5011\u518d\u7528 SUMPRODUCT \u52a0\u8d77\u4f86\uff0c\u5c31\u525b\u597d\u662f\u4e00\u500b\u5b8c\u6574\u7684 1\uff0c\u76f8\u540c\u503c\u56e0\u6b64\u4e0d\u6703\u88ab\u91cd\u8986\u8a08\u7b97\u800c\u9054\u5230\u6211\u5011\u8981\u7684\u76ee\u7684\u4e86\u3002<\/p>\n<p>\u81f3\u65bc\u6700\u5f8c\u4e00\u6b65\u70ba\u4ec0\u9ebc\u8981\u7528 SUMPRODUCT \u800c\u4e0d\u7528 SUM \u5462\uff0c\u9019\u90e8\u4efd\u6211\u4e5f\u4e0d\u77ad\u89e3\uff0c\u4e0d\u904e\u7528 SUM \u662f\u4e0d\u884c\u7684\uff0c\u6240\u4ee5\u6211\u731c\u61c9\u8a72\u662f\u56e0\u70ba SUM \u8981\u7684\u662f\u6578\u503c\u7684\u578b\u5225\u7684\u95dc\u4fc2\u5427\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u670b\u53cb\u554f\u4e86\u6211\u4e00\u500b Excel \u7684\u554f\u984c\uff0c\u5982\u679c\u6709\u4e00\u4e32\u8cc7\u6599\uff0c\u60f3\u8981\u8a08\u7b97\u88e1\u9762\u7684\u4e0d\u540c\u503c\u5171\u6709\u5e7e\u500b\uff0c\u8981\u600e\u9ebc\u4f5c\uff1f\u9019\u500b\u554f\u984c\u5728\u8cc7\u6599 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[291,293,292],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-3","tag-excel","tag-sumproduct","tag-292"],"views":1645,"_links":{"self":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":1,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":373,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions\/373"}],"wp:attachment":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}