{"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_85 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u3082\u304f\u3058<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<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\" >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\" >\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\" >\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\" >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\" >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\" >\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\" >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\" >\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\" >\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\" >\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\" >\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"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\"\/>\n\t<meta name=\"keywords\" content=\"\u96c6\u8a08\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=13919\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=13919\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-09-01T13:53:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-09-01T14:00:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#article\",\"name\":\"\\u3010Excel VBA\\u3011COUNTIFS\\u95a2\\u6570\\u306e\\u4f7f\\u3044\\u65b9\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"headline\":\"\\u3010Excel VBA\\u3011COUNTIFS\\u95a2\\u6570\\u306e\\u4f7f\\u3044\\u65b9\\uff01\",\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"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\"},\"datePublished\":\"2024-09-01T22:53:00+09:00\",\"dateModified\":\"2024-09-01T23:00:58+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#webpage\"},\"articleSection\":\"Excel VBA, \\u96c6\\u8a08\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/extan.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"position\":2,\"name\":\"Microsoft 365\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=47\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"name\":\"Excel\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"position\":3,\"name\":\"Excel\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=17\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=6#listItem\",\"name\":\"Excel VBA\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=6#listItem\",\"position\":4,\"name\":\"Excel VBA\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=6\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#listItem\",\"name\":\"\\u3010Excel VBA\\u3011COUNTIFS\\u95a2\\u6570\\u306e\\u4f7f\\u3044\\u65b9\\uff01\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"name\":\"Excel\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#listItem\",\"position\":5,\"name\":\"\\u3010Excel VBA\\u3011COUNTIFS\\u95a2\\u6570\\u306e\\u4f7f\\u3044\\u65b9\\uff01\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=6#listItem\",\"name\":\"Excel VBA\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"url\":\"https:\\\/\\\/extan.jp\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/extan.jp\\\/?author=1\",\"name\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\"}},{\"@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\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/str-224.png\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919\\\/#mainImage\",\"width\":815,\"height\":406,\"caption\":\"\\u3010Excel VBA\\u3011COUNTIFS\\u95a2\\u6570\\u306e\\u4f7f\\u3044\\u65b9\\uff01\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13919#mainImage\"},\"datePublished\":\"2024-09-01T22:53:00+09:00\",\"dateModified\":\"2024-09-01T23:00:58+09:00\"},{\"@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\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","description":"","canonical_url":"https:\/\/extan.jp\/?p=13919","robots":"max-image-preview:large","keywords":"\u96c6\u8a08","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extan.jp\/?p=13919#article","name":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","headline":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01","author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/extan.jp\/#organization"},"image":{"@type":"ImageObject","url":"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"},"datePublished":"2024-09-01T22:53:00+09:00","dateModified":"2024-09-01T23:00:58+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/extan.jp\/?p=13919#webpage"},"isPartOf":{"@id":"https:\/\/extan.jp\/?p=13919#webpage"},"articleSection":"Excel VBA, \u96c6\u8a08"},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=13919#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","position":2,"name":"Microsoft 365","item":"https:\/\/extan.jp\/?cat=47","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","name":"Excel"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","position":3,"name":"Excel","item":"https:\/\/extan.jp\/?cat=17","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=6#listItem","name":"Excel VBA"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=6#listItem","position":4,"name":"Excel VBA","item":"https:\/\/extan.jp\/?cat=6","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=13919#listItem","name":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","name":"Excel"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=13919#listItem","position":5,"name":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01","previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=6#listItem","name":"Excel VBA"}}]},{"@type":"Organization","@id":"https:\/\/extan.jp\/#organization","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","url":"https:\/\/extan.jp\/"},{"@type":"Person","@id":"https:\/\/extan.jp\/?author=1#author","url":"https:\/\/extan.jp\/?author=1","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=13919#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30bf\u30ab\u30d2\u30ed@extan"}},{"@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","inLanguage":"ja","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=13919#breadcrumblist"},"author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"creator":{"@id":"https:\/\/extan.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2024\/09\/str-224.png","@id":"https:\/\/extan.jp\/?p=13919\/#mainImage","width":815,"height":406,"caption":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=13919#mainImage"},"datePublished":"2024-09-01T22:53:00+09:00","dateModified":"2024-09-01T23:00:58+09:00"},{"@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","inLanguage":"ja","publisher":{"@id":"https:\/\/extan.jp\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","og:type":"article","og:title":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","og:url":"https:\/\/extan.jp\/?p=13919","article:published_time":"2024-09-01T13:53:00+00:00","article:modified_time":"2024-09-01T14:00:58+00:00","twitter:card":"summary","twitter:title":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp"},"aioseo_meta_data":{"post_id":"13919","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2026-06-24 15:27:45","updated":"2026-06-24 15:27:45","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=47\" title=\"Microsoft 365\">Microsoft 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=17\" title=\"Excel\">Excel<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=6\" title=\"Excel VBA\">Excel VBA<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/extan.jp"},{"label":"Microsoft 365","link":"https:\/\/extan.jp\/?cat=47"},{"label":"Excel","link":"https:\/\/extan.jp\/?cat=17"},{"label":"Excel VBA","link":"https:\/\/extan.jp\/?cat=6"},{"label":"\u3010Excel VBA\u3011COUNTIFS\u95a2\u6570\u306e\u4f7f\u3044\u65b9\uff01","link":"https:\/\/extan.jp\/?p=13919"}],"_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}]}}