{"id":13919,"date":"2024-09-01T22:53:00","date_gmt":"2024-09-01T13:53:00","guid":{"rendered":"https:\/\/extan.jp\/?p=13919"},"modified":"2024-09-01T23:00:58","modified_gmt":"2024-09-01T14:00:58","slug":"%e3%80%90excel-vba%e3%80%91countifs%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%ef%bc%81","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=13919","title":{"rendered":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01"},"content":{"rendered":"<p>Excel\u306eCOUNTIFS\u95a2\u6570\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u30bb\u30eb\u306e\u6570\u3092\u6570\u3048\u308b\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u7279\u306b\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u7ba1\u7406\u3067\u5f79\u7acb\u3061\u3001\u7279\u306b\u8907\u6570\u306e\u6761\u4ef6\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066<br \/>\n\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\">\u3082\u304f\u3058<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=13919\/#COUNTIFS%E9%96%A2%E6%95%B0%E3%81%AE%E5%9F%BA%E6%9C%AC\" title=\"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\">COUNTIFS\u95a2\u6570\u306e\u57fa\u672c<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=13919\/#%E6%A7%8B%E6%96%87\" title=\"\u69cb\u6587\">\u69cb\u6587<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=13919\/#%E4%BD%BF%E7%94%A8%E4%BE%8B\" title=\"\u4f7f\u7528\u4f8b\">\u4f7f\u7528\u4f8b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=13919\/#VBA%E3%81%A7COUNTIFS%E9%96%A2%E6%95%B0%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\" title=\"VBA\u3067COUNTIFS\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\">VBA\u3067COUNTIFS\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=13919\/#VBA%E3%82%B3%E3%83%BC%E3%83%89\" title=\"VBA\u30b3\u30fc\u30c9\">VBA\u30b3\u30fc\u30c9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=13919\/#%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E8%A1%A8\" title=\"\u30b5\u30f3\u30d7\u30eb\u8868\">\u30b5\u30f3\u30d7\u30eb\u8868<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=13919\/#VBA%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B\" title=\"VBA\u3092\u5b9f\u884c\u3059\u308b\">VBA\u3092\u5b9f\u884c\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=13919\/#%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0\" title=\"\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/extan.jp\/?p=13919\/#%E6%AD%A3%E3%81%97%E3%81%84%E7%B5%90%E6%9E%9C%E3%81%8C%E5%BE%97%E3%82%89%E3%82%8C%E3%81%AA%E3%81%84\" title=\"\u6b63\u3057\u3044\u7d50\u679c\u304c\u5f97\u3089\u308c\u306a\u3044\">\u6b63\u3057\u3044\u7d50\u679c\u304c\u5f97\u3089\u308c\u306a\u3044<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/extan.jp\/?p=13919\/#%E7%AF%84%E5%9B%B2%E3%81%AE%E4%B8%8D%E4%B8%80%E8%87%B4\" title=\"\u7bc4\u56f2\u306e\u4e0d\u4e00\u81f4\">\u7bc4\u56f2\u306e\u4e0d\u4e00\u81f4<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/extan.jp\/?p=13919\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" title=\"\u3055\u3044\u3054\u306b\">\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"COUNTIFS%E9%96%A2%E6%95%B0%E3%81%AE%E5%9F%BA%E6%9C%AC\"><\/span>COUNTIFS\u95a2\u6570\u306e\u57fa\u672c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>COUNTIFS\u95a2\u6570\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u57fa\u306b\u30bb\u30eb\u306e\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A7%8B%E6%96%87\"><\/span>\u69cb\u6587<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"info\"><code>COUNTIFS(\u7bc4\u56f21, \u6761\u4ef61, [\u7bc4\u56f22, \u6761\u4ef62], \u2026)<\/code><\/div>\n<p>\u7bc4\u56f21: \u6761\u4ef61\u306b\u9069\u7528\u3055\u308c\u308b\u30bb\u30eb\u7bc4\u56f2\u3002<br \/>\n\u6761\u4ef61: \u7bc4\u56f21\u306b\u9069\u7528\u3059\u308b\u6761\u4ef6\u3002\u4f8b\u3048\u3070\u3001&#8221;&gt;10&#8243;\u3084&#8221;=\u8d64&#8221;\u306a\u3069\u3002<br \/>\n\u7bc4\u56f22, \u6761\u4ef62: \u4efb\u610f\u306e\u8ffd\u52a0\u6761\u4ef6\u3002\u6700\u5927127\u7d44\u306e\u6761\u4ef6\u3092\u6307\u5b9a\u53ef\u80fd\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8%E4%BE%8B\"><\/span>\u4f7f\u7528\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u58f2\u4e0a\u30c7\u30fc\u30bf\u306b\u304a\u3044\u3066\u3001\u7279\u5b9a\u306e\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u3068\u7279\u5b9a\u306e\u8ca9\u58f2\u54e1\u306b\u3088\u308b\u58f2\u4e0a\u6570\u3092\u6570\u3048\u305f\u3044\u5834\u5408\u3001<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306bCOUNTIFS\u95a2\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>=COUNTIFS(A2:A100, &quot;\u96fb\u5b50\u6a5f\u5668&quot;, B2:B100, &quot;\u7530\u4e2d&quot;)<\/code><\/div>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001A\u5217\u306e\u300c\u96fb\u5b50\u6a5f\u5668\u300d\u3068\u3044\u3046\u30ab\u30c6\u30b4\u30ea\u306b\u4e00\u81f4\u3057\u3001<br \/>\nB\u5217\u306e\u300c\u7530\u4e2d\u300d\u3068\u3044\u3046\u8ca9\u58f2\u54e1\u306e\u58f2\u4e0a\u4ef6\u6570\u3092\u6570\u3048\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%81%A7COUNTIFS%E9%96%A2%E6%95%B0%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>VBA\u3067COUNTIFS\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VBA\u3067COUNTIFS\u95a2\u6570\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u81ea\u52d5\u5316\u3084\u6761\u4ef6\u3092\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u3001VBA\u3067\u306eCOUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%82%B3%E3%83%BC%E3%83%89\"><\/span>VBA\u30b3\u30fc\u30c9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>VBA\u30b3\u30fc\u30c9\u3067\u306f\u300c\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u304c\u96fb\u5b50\u6a5f\u5668\u3067\u3042\u308a\u3001\u8ca9\u58f2\u54e1\u304c\u7530\u4e2d\u3067\u3042\u308b\u300d\u884c\u306e\u6570\u3092COUNTIFS\u95a2\u6570\u3092\u4f7f\u3063\u3066\u6570\u3048\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CountIFSMacro()\n    Dim ws As Worksheet\n    Dim countResult As Long\n\n    &#039; \u30b7\u30fc\u30c8\u3092\u30bb\u30c3\u30c8\n    Set ws = ThisWorkbook.Sheets(&quot;Sheet1&quot;)\n    \n    &#039; COUNTIFS\u95a2\u6570\u306e\u7d50\u679c\u3092\u53d6\u5f97\n    countResult = Application.WorksheetFunction.CountIfs(ws.Range(&quot;A2:A100&quot;), &quot;\u96fb\u5b50\u6a5f\u5668&quot;, ws.Range(&quot;B2:B100&quot;), &quot;\u7530\u4e2d&quot;)\n    \n    &#039; \u7d50\u679c\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u8868\u793a\n    MsgBox &quot;\u96fb\u5b50\u6a5f\u5668\u30ab\u30c6\u30b4\u30ea\u306e\u7530\u4e2d\u3055\u3093\u306e\u58f2\u4e0a\u4ef6\u6570\u306f &quot; &amp; countResult &amp; &quot; \u4ef6\u3067\u3059\u3002&quot;\nEnd Sub<\/code><\/pre>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001Sheet1\u306eA\u5217\u3068B\u5217\u3092\u5bfe\u8c61\u306b\u3057\u3066\u3001COUNTIFS\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E8%A1%A8\"><\/span>\u30b5\u30f3\u30d7\u30eb\u8868<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Excel\u306eSheet1\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>A\u5217\uff08\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\uff09<\/th>\n<th>B\u5217\uff08\u8ca9\u58f2\u54e1\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u96fb\u5b50\u6a5f\u5668<\/td>\n<td>\u7530\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>\u5bb6\u5177<\/td>\n<td>\u9234\u6728<\/td>\n<\/tr>\n<tr>\n<td>\u96fb\u5b50\u6a5f\u5668<\/td>\n<td>\u7530\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>\u96fb\u5b50\u6a5f\u5668<\/td>\n<td>\u4f50\u85e4<\/td>\n<\/tr>\n<tr>\n<td>\u5bb6\u5177<\/td>\n<td>\u7530\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>\u96fb\u5b50\u6a5f\u5668<\/td>\n<td>\u7530\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>\u66f8\u7c4d<\/td>\n<td>\u7530\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>\u96fb\u5b50\u6a5f\u5668<\/td>\n<td>\u5c71\u7530<\/td>\n<\/tr>\n<tr>\n<td>\u5bb6\u5177<\/td>\n<td>\u9234\u6728<\/td>\n<\/tr>\n<tr>\n<td>\u66f8\u7c4d<\/td>\n<td>\u4f50\u85e4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u8868\u306e\u30c7\u30fc\u30bf\u3092\u57fa\u306b\u3057\u3066\u3001<br \/>\nVBA\u30b3\u30fc\u30c9\u3067\u306f\u300c\u5546\u54c1\u30ab\u30c6\u30b4\u30ea\u304c\u96fb\u5b50\u6a5f\u5668\u3067\u3042\u308a\u3001\u8ca9\u58f2\u54e1\u304c\u7530\u4e2d\u3067\u3042\u308b\u300d\u884c\u306e\u6570\u3092COUNTIFS\u95a2\u6570\u3092\u4f7f\u3063\u3066\u6570\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B\"><\/span>VBA\u3092\u5b9f\u884c\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>VBA\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u8a72\u5f53\u3059\u308b\u884c\u6570\u306f3\u884c\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001<br \/>\n\u300c\u96fb\u5b50\u6a5f\u5668\u30ab\u30c6\u30b4\u30ea\u306e\u7530\u4e2d\u3055\u3093\u306e\u58f2\u4e0a\u4ef6\u6570\u306f3\u4ef6\u3067\u3059\u3002\u300d<br \/>\n\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0\"><\/span>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>COUNTIFS\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u906d\u9047\u3057\u304c\u3061\u306a\u554f\u984c\u3068\u305d\u306e\u89e3\u6c7a\u7b56\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%AD%A3%E3%81%97%E3%81%84%E7%B5%90%E6%9E%9C%E3%81%8C%E5%BE%97%E3%82%89%E3%82%8C%E3%81%AA%E3%81%84\"><\/span>\u6b63\u3057\u3044\u7d50\u679c\u304c\u5f97\u3089\u308c\u306a\u3044<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6761\u4ef6\u306e\u8a18\u8ff0\u30df\u30b9\u304c\u539f\u56e0\u3067\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u6570\u5024\u3092\u6bd4\u8f03\u3059\u308b\u969b\u306b\u3001\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3093\u3067\u3044\u306a\u3044\u5834\u5408\u3001\u6b63\u3057\u3044\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E7%AF%84%E5%9B%B2%E3%81%AE%E4%B8%8D%E4%B8%80%E8%87%B4\"><\/span>\u7bc4\u56f2\u306e\u4e0d\u4e00\u81f4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>COUNTIFS\u95a2\u6570\u306e\u5404\u7bc4\u56f2\u306e\u30bb\u30eb\u6570\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u7bc4\u56f2\u304c\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\u30fbCOUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>COUNTIFS\u95a2\u6570\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u30c7\u30fc\u30bf\u3092\u96c6\u8a08\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3001\u307e\u305f<br \/>\nVBA\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u3089\u306b\u67d4\u8edf\u306a\u64cd\u4f5c\u3084\u81ea\u52d5\u5316\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ed6\u306b\u3082\u4fbf\u5229\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u53c2\u7167\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u306eCOUNTIFS\u95a2\u6570\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u30bb\u30eb\u306e\u6570\u3092\u6570\u3048\u308b\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002 \u7279\u306b\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u7ba1\u7406\u3067\u5f79\u7acb\u3061\u3001\u7279\u306b\u8907\u6570\u306e\u6761\u4ef6\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u6709\u52b9\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001V&#8230;<\/p>\n","protected":false},"author":1,"featured_media":14114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[104],"class_list":{"0":"post-13919","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","8":"tag-104","9":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"description\" content=\"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=13919\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=13919\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-01T13:53:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-01T14:00:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png\" \/>\n\t<meta property=\"og:image:width\" content=\"815\" \/>\n\t<meta property=\"og:image:height\" content=\"406\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/extan.jp\/#website\",\"url\":\"https:\/\/extan.jp\/\",\"name\":\"\u30a8\u30af\u77ed\uff5cExtan.jp\",\"description\":\"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/extan.jp\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/?p=13919#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png\",\"width\":815,\"height\":406,\"caption\":\"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=13919#webpage\",\"url\":\"https:\/\/extan.jp\/?p=13919\",\"name\":\"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=13919#primaryimage\"},\"datePublished\":\"2024-09-01T13:53:00+00:00\",\"dateModified\":\"2024-09-01T14:00:58+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"description\":\"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=13919#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=13919\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=13919#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\",\"name\":\"\u30bf\u30ab\u30d2\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"caption\":\"\u30bf\u30ab\u30d2\u30ed@extan\"},\"url\":\"https:\/\/extan.jp\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"description":"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/extan.jp\/?p=13919","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","og_url":"https:\/\/extan.jp\/?p=13919","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2024-09-01T13:53:00+00:00","article_modified_time":"2024-09-01T14:00:58+00:00","og_image":[{"width":815,"height":406,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30bf\u30ab\u30d2\u30ed@extan","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/extan.jp\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=13919#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png","width":815,"height":406,"caption":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01"},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=13919#webpage","url":"https:\/\/extan.jp\/?p=13919","name":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=13919#primaryimage"},"datePublished":"2024-09-01T13:53:00+00:00","dateModified":"2024-09-01T14:00:58+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"description":"COUNTIFS\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3001VBA\u3067\u306e\u5fdc\u7528\u4f8b\u3001\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/extan.jp\/?p=13919#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=13919"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=13919#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01"}]},{"@type":"Person","@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/#personlogo","inLanguage":"ja","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","caption":"\u30bf\u30ab\u30d2\u30ed@extan"},"url":"https:\/\/extan.jp\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/13919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13919"}],"version-history":[{"count":4,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/13919\/revisions"}],"predecessor-version":[{"id":14117,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/13919\/revisions\/14117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/14114"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}