{"id":2927,"date":"2020-11-18T02:18:13","date_gmt":"2020-11-17T17:18:13","guid":{"rendered":"https:\/\/extan.jp\/?p=2927"},"modified":"2023-05-09T09:07:18","modified_gmt":"2023-05-09T00:07:18","slug":"%e3%80%90excelvba%e3%80%91sum%e9%96%a2%e6%95%b0%e3%82%92%e9%81%b8%e6%8a%9e%e7%af%84%e5%9b%b2%e3%81%ae%e7%b8%a6%e6%a8%aa%e3%81%ab%e6%8c%bf%e5%85%a5%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=2927","title":{"rendered":"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\uff01"},"content":{"rendered":"<p>Excel\u306e\u64cd\u4f5c\u3067SUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u6a5f\u4f1a\u306f\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u306b\u5927\u5909\u3060\u3068\u601d\u3046\u3053\u3068\u306f<\/p>\n<div class=\"kininarukoto1\">\u30fbSUM\u95a2\u6570\u3092\u4e00\u500b\u3065\u3064\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u9762\u5012\u2026<br \/>\n\u30fbSUM\u95a2\u6570\u3067\u5408\u8a08\u7bc4\u56f2\u304c\u6f0f\u308c\u3066\u3044\u305f\u2026<br \/>\n\u30fb\u7e26\u6a2a\u4e21\u65b9\u306bSUM\u95a2\u6570\u3092\u5165\u308c\u305f\u3044\u304c\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044\u2026<\/div>\n<p>\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u3068\u304d\u306b\u5f79\u7acb\u3064\u3001<br \/>\n<strong>\u4e00\u77ac\u3067SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u3068\u3001\u3042\u308b\u3068\u3046\u308c\u3057\u3044\u4f4d\u7f6e\u6c7a\u3081\u6a5f\u80fd\u3092<\/strong><br \/>\n\u3054\u7d39\u4ecb\u3057\u307e\u3059\uff01<\/p>\n<p><script><\/p>\n<p><\/script><\/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=2927\/#%E6%A8%99%E6%BA%96%E6%A9%9F%E8%83%BD%E3%81%A7%E7%B8%A6%E6%A8%AA%E3%81%ABSUM%E9%96%A2%E6%95%B0%E3%82%92%E6%8C%BF%E5%85%A5%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%E3%82%AA%E3%83%BC%E3%83%88SUM%EF%BC%81\" title=\"\u6a19\u6e96\u6a5f\u80fd\u3067\u7e26\u6a2a\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\u30aa\u30fc\u30c8SUM\uff01\">\u6a19\u6e96\u6a5f\u80fd\u3067\u7e26\u6a2a\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\u30aa\u30fc\u30c8SUM\uff01<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=2927\/#ExcelVBA%E3%81%A7SUM%E9%96%A2%E6%95%B0%E3%82%92%E9%81%B8%E6%8A%9E%E7%AF%84%E5%9B%B2%E3%81%AE%E7%B8%A6%E6%A8%AA%E3%81%AB%E6%8C%BF%E5%85%A5%E3%81%97%E3%81%9F%E3%82%8A%E3%80%81%E4%BD%8D%E7%BD%AE%E3%82%92%E8%AA%BF%E6%95%B4%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%EF%BC%9F\" title=\"ExcelVBA\u3067SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3057\u305f\u308a\u3001\u4f4d\u7f6e\u3092\u8abf\u6574\u3059\u308b\u306b\u306f\uff1f\">ExcelVBA\u3067SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3057\u305f\u308a\u3001\u4f4d\u7f6e\u3092\u8abf\u6574\u3059\u308b\u306b\u306f\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=2927\/#%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E6%BA%96%E5%82%99%E3%81%99%E3%82%8B\" title=\"\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b<\/a><\/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=2927\/#VBA%E3%82%92%E5%AE%9F%E8%A3%85%E3%81%99%E3%82%8B\" title=\"VBA\u3092\u5b9f\u88c5\u3059\u308b\">VBA\u3092\u5b9f\u88c5\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=2927\/#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><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=2927\/#%E5%88%A5%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E2%91%A0%EF%BC%9ASUM%E9%96%A2%E6%95%B0%E6%8C%BF%E5%85%A5%E4%BD%8D%E7%BD%AE%E3%82%92%E5%A4%89%E3%81%88%E3%82%8B\" title=\"\u5225\u30d1\u30bf\u30fc\u30f3\u2460\uff1aSUM\u95a2\u6570\u633f\u5165\u4f4d\u7f6e\u3092\u5909\u3048\u308b\">\u5225\u30d1\u30bf\u30fc\u30f3\u2460\uff1aSUM\u95a2\u6570\u633f\u5165\u4f4d\u7f6e\u3092\u5909\u3048\u308b<\/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=2927\/#%E5%88%A5%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E2%91%A1%EF%BC%9ASUM%E9%96%A2%E6%95%B0%E6%8C%BF%E5%85%A5%E3%82%92%E8%A1%8C%E3%81%BE%E3%81%9F%E3%81%AF%E5%88%97%E3%81%AE%E3%81%BF%E3%81%AB%E3%81%99%E3%82%8B\" title=\"\u5225\u30d1\u30bf\u30fc\u30f3\u2461\uff1aSUM\u95a2\u6570\u633f\u5165\u3092\u884c\u307e\u305f\u306f\u5217\u306e\u307f\u306b\u3059\u308b\">\u5225\u30d1\u30bf\u30fc\u30f3\u2461\uff1aSUM\u95a2\u6570\u633f\u5165\u3092\u884c\u307e\u305f\u306f\u5217\u306e\u307f\u306b\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=2927\/#%E5%88%A5%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E2%91%A2%EF%BC%9A%E5%88%A5%E3%83%96%E3%83%83%E3%82%AF%E3%81%ABSUM%E9%96%A2%E6%95%B0%E6%8C%BF%E5%85%A5%E3%82%92%E3%81%99%E3%82%8B\" title=\"\u5225\u30d1\u30bf\u30fc\u30f3\u2462\uff1a\u5225\u30d6\u30c3\u30af\u306bSUM\u95a2\u6570\u633f\u5165\u3092\u3059\u308b\">\u5225\u30d1\u30bf\u30fc\u30f3\u2462\uff1a\u5225\u30d6\u30c3\u30af\u306bSUM\u95a2\u6570\u633f\u5165\u3092\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-9\" href=\"https:\/\/extan.jp\/?p=2927\/#VBA%E3%81%AE%E8%AA%AC%E6%98%8E\" title=\"VBA\u306e\u8aac\u660e\">VBA\u306e\u8aac\u660e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/extan.jp\/?p=2927\/#%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=\"%E6%A8%99%E6%BA%96%E6%A9%9F%E8%83%BD%E3%81%A7%E7%B8%A6%E6%A8%AA%E3%81%ABSUM%E9%96%A2%E6%95%B0%E3%82%92%E6%8C%BF%E5%85%A5%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%E3%82%AA%E3%83%BC%E3%83%88SUM%EF%BC%81\"><\/span>\u6a19\u6e96\u6a5f\u80fd\u3067\u7e26\u6a2a\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\u30aa\u30fc\u30c8SUM\uff01<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3054\u5b58\u77e5\u306e\u65b9\u3082\u591a\u3044\u3067\u3057\u3087\u3046\u304c\u3001\u7e26\u6a2a\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306fExcel\u306e\u6a19\u6e96\u6a5f\u80fd\u3067\u5b9f\u73fe\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u6a5f\u80fd\u3068\u306f\u3001<\/p>\n<p>\u300c\u30aa\u30fc\u30c8SUM\u300d<\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\u306f\u30ab\u30f3\u30bf\u30f3\u3067\u3001<\/p>\n<p>\u5408\u8a08\u3057\u305f\u3044\u30bb\u30eb\u3068SUM\u95a2\u6570\u3092\u633f\u5165\u3057\u305f\u3044\u30bb\u30eb\u3092\u7bc4\u56f2\u9078\u629e\u3057\u3001<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2933\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_1.png\" alt=\"\" width=\"478\" height=\"293\" \/><\/p>\n<p><span class=\"keybtn\">\u6570\u5f0f<\/span>\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<span class=\"keybtn\">\u30aa\u30fc\u30c8SUM<\/span>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2934\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_2.png\" alt=\"\" width=\"416\" height=\"127\" \/><\/p>\n<p>\u306f\u3044\u3001\u3067\u304d\u307e\u3057\u305f\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2935\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_3.png\" alt=\"\" width=\"502\" height=\"287\" \/><\/p>\n<p>\u306a\u304a\u3001\u5408\u8a08\u3057\u305f\u3044\u30bb\u30eb\u306e\u307f\u306e\u7bc4\u56f2\u9078\u629e\u3067\u3059\u3068\u3001<\/p>\n<p>\u6700\u4e0b\u884c\u306e\u307f\u306bSUM\u95a2\u6570\u306f\u633f\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u306e\u300c\u30aa\u30fc\u30c8SUM\u300d\u3067\u3059\u304c\u3001\u9078\u629e\u7bc4\u56f2\u53f3\u5217\u306e\u307f\u306b\u307e\u3068\u3081\u3066SUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305f\u3001SUM\u95a2\u6570\u306e\u633f\u5165\u4f4d\u7f6e\u3092\u9078\u629e\u7bc4\u56f2\u306e\u6b21\u306e\u6b21\u306e\u5217\u3084\u884c\u306b\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u6a19\u6e96\u6a5f\u80fd\u3067\u3059\u306e\u3067\u3001\u82e5\u5e72\u67d4\u8edf\u6027\u304c\u7121\u3044\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u767b\u5834\u3059\u308b\u306e\u304c<strong>VBA<\/strong>\u3067\u3059\u3002<\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"ExcelVBA%E3%81%A7SUM%E9%96%A2%E6%95%B0%E3%82%92%E9%81%B8%E6%8A%9E%E7%AF%84%E5%9B%B2%E3%81%AE%E7%B8%A6%E6%A8%AA%E3%81%AB%E6%8C%BF%E5%85%A5%E3%81%97%E3%81%9F%E3%82%8A%E3%80%81%E4%BD%8D%E7%BD%AE%E3%82%92%E8%AA%BF%E6%95%B4%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%EF%BC%9F\"><\/span>ExcelVBA\u3067SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3057\u305f\u308a\u3001\u4f4d\u7f6e\u3092\u8abf\u6574\u3059\u308b\u306b\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>SUM\u95a2\u6570\u3092\u633f\u5165\u3057\u305f\u3044\u4f4d\u7f6e\u306f\u8868\u306b\u3088\u3063\u3066\u3055\u307e\u3056\u307e\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<\/p>\n<p>\u6761\u4ef6\u306b\u3088\u3063\u3066\u306f\u300c\u30aa\u30fc\u30c8SUM\u300d\u304c\u5229\u7528\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u5408\u8a08\u5024\u306e\u4f4d\u7f6e\u304c\u30c7\u30fc\u30bf\u306e\u4f4d\u7f6e\u3068\u96a3\u63a5\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3067\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u5834\u5408\u3067\u3059\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2937\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_5.png\" alt=\"\" width=\"509\" height=\"277\" \/><\/p>\n<p>\u305d\u306e\u5834\u5408\u306b\u306f\u624b\u52d5\u3067\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5927\u91cf\u306b\u3042\u308b\u3068\u3046\u3093\u3056\u308a\u3057\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306e\u76ee\u7389\u3067\u3042\u308b\u3001SUM\u95a2\u6570\u306e\u633f\u5165\u4f4d\u7f6e\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001SUM\u95a2\u6570\u306e\u633f\u5165\u7bc4\u56f2\u3092<br \/>\n\u300c\u884c\u3060\u3051\u300d\u3001\u300c\u5217\u3060\u3051\u300d\u3001\u300c\u884c\u5217\u300d\u306e<br \/>\n3\u30d1\u30bf\u30fc\u30f3\u306e\u9078\u629e\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">VBE\u304b\u3089\u5b9f\u884c\u3092\u304b\u3051\u308b\u3068\u3001\u5225\u30d6\u30c3\u30af\u306e\u30c7\u30fc\u30bf\u3082\u540c\u3058\u304fSUM\u95a2\u6570\u633f\u5165\u51e6\u7406\u304c\u53ef\u80fd\u3067\u3059\u306e\u3067\u4fbf\u5229\u3067\u3059\uff01<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E6%BA%96%E5%82%99%E3%81%99%E3%82%8B\"><\/span>\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>SUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c\u30aa\u30fc\u30c8SUM\u300d\u540c\u69d8\u3001\u9078\u629e\u7bc4\u56f2\u5206\u633f\u5165\u3055\u308c\u307e\u3059\u306e\u3067\u30012\u884c\u30012\u5217\u4ee5\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u304d\u305f\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306f\u4e0a\u8a18\u3068\u540c\u69d8\u306e\u5185\u5bb9\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2937\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_5.png\" alt=\"\" width=\"509\" height=\"277\" \/><\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%82%92%E5%AE%9F%E8%A3%85%E3%81%99%E3%82%8B\"><\/span>VBA\u3092\u5b9f\u88c5\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7d9a\u3044\u3066Excel\u306eVisual Basic Editor\u3078VBA\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub SUM\u95a2\u6570\u633f\u5165()\n\n    &#039;\u5f15\u6570\u306e\u6570\u5024\u306fSUM\u95a2\u6570\u633f\u5165\u306e\u4f4d\u7f6e\u3092\u8868\u3057\u307e\u3059\u30021\u306e\u5834\u5408\u306f\u9078\u629e\u7bc4\u56f2\u306e\u6b21\u306e\u30bb\u30eb\u30012\u306f\u6b21\u306e\u6b21\u306e\u30bb\u30eb\u3068\u3044\u3063\u305f\u5177\u5408\u3067\u3059\u3002\n    Call \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(2)\n    \n    Call \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u884c\u4e0b\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(2)\n\nEnd Sub\n\n\n\n\nSub \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(intSumPosCol As Long)\n\n    Dim intRow As Long\n    Dim intCol As Long\n    Dim intMaxRow As Long\n    Dim intMaxCol As Long\n    Dim strStartCell As String\n    Dim strEndCell As String\n    Dim strSumPosCell As String\n    \n    intRow = Selection(1).Row &#039;\u884c\u6570\n    intCol = Selection(1).Column &#039;\u5217\u6570\n    intMaxRow = Selection(Selection.Count).Row &#039;\u6700\u7d42\u884c\n    intMaxCol = Selection(Selection.Count).Column &#039;\u6700\u7d42\u5217\n    intSumPosCol = intSumPosCol + intMaxCol &#039;\u4f4d\u7f6e\u6570\u306b\u6700\u7d42\u884c\u6570\u3092\u52a0\u3048\u308b\u3002\n    \n    &#039;\u30a2\u30c9\u30ec\u30b9\u5024\u306b\u5909\u63db\u203b\u76f8\u5bfe\u53c2\u7167\u3068\u3059\u308b\u3002\n    strStartCell = Cells(intRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)\n    strEndCell = Cells(intRow, intMaxCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)\n    strSumPosCell = Cells(intRow, intSumPosCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)\n    \n    With Range(strSumPosCell)\n        .Formula = &quot;=SUM(&quot; &amp; strStartCell &amp; &quot;:&quot; &amp; strEndCell &amp; &quot; )&quot;\n        &#039;1\u884c\u4ee5\u4e0b\u306f\u30a8\u30e9\u30fc\u3068\u306a\u308b\u305f\u3081\u56de\u907f\n        If intMaxRow - intRow + 1 &gt; 1 Then\n            .AutoFill Destination:=.Resize(intMaxRow - intRow + 1, 1)\n        End If\n    End With\n\nEnd Sub\n\n\n\nSub \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u884c\u4e0b\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(intSumPosRow As Long)\n\n    Dim intRow As Long\n    Dim intCol As Long\n    Dim intMaxRow As Long\n    Dim intMaxCol As Long\n    Dim strStartCell As String\n    Dim strEndCell As String\n    Dim strSumPosCell As String\n    \n    intRow = Selection(1).Row &#039;\u884c\u6570\n    intCol = Selection(1).Column &#039;\u5217\u6570\n    intMaxRow = Selection(Selection.Count).Row &#039;\u6700\u7d42\u884c\n    intMaxCol = Selection(Selection.Count).Column &#039;\u6700\u7d42\u5217\n    intSumPosRow = intSumPosRow + intMaxRow &#039;\u4f4d\u7f6e\u6570\u306b\u6700\u7d42\u884c\u6570\u3092\u52a0\u3048\u308b\u3002\n    \n    &#039;\u30a2\u30c9\u30ec\u30b9\u5024\u306b\u5909\u63db\u203b\u76f8\u5bfe\u53c2\u7167\u3068\u3059\u308b\u3002\n    strStartCell = Cells(intRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)\n    strEndCell = Cells(intMaxRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)\n    strSumPosCell = Cells(intSumPosRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)\n    \n    With Range(strSumPosCell)\n        .Formula = &quot;=SUM(&quot; &amp; strStartCell &amp; &quot;:&quot; &amp; strEndCell &amp; &quot; )&quot;\n        &#039;1\u5217\u4ee5\u4e0b\u306f\u30a8\u30e9\u30fc\u3068\u306a\u308b\u305f\u3081\u56de\u907f\n        If intMaxCol - intCol + 1 &gt; 1 Then\n            .AutoFill Destination:=.Resize(1, intMaxCol - intCol + 1)\n        End If\n    End With\n\nEnd Sub\n<\/code><\/pre>\n<p>\u5b9f\u88c5\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>Excel\u5074\u306bVBA\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p>\u2460Excel\u3092\u65b0\u898f\u306b\u958b\u304d\u3001<span class=\"keybtn\">\u958b\u767a<\/span>\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<span class=\"keybtn\">VisualBasic<\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n\u3082\u3057\u304f\u306f\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc<span class=\"keybtn\">Alt<\/span>\uff0b<span class=\"keybtn\">F11<\/span>\u3067\u3082OK\u3067\u3059\u3002<\/p>\n<p>\u2461\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u5de6\u30da\u30a4\u30f3\u306e<span class=\"keybtn\">VBAProject<\/span>\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001<span class=\"keybtn\">\u633f\u5165<\/span>\u3001<span class=\"keybtn\">\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092<\/span>\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/05\/050919_1542_VBAFunctio2.png\" alt=\"\" \/>\n<p>\u2462\u53f3\u30da\u30a4\u30f3\u306e\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u4e0a\u8a18\u306eVBA\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1680\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/09\/092219_1211_temp22.png\" alt=\"\" width=\"1395\" height=\"879\" \/><\/p>\n<p>\u3053\u3061\u3089\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><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><\/h2>\n<p>\u3067\u306f\u65e9\u901fVBA\u306e\u5b9f\u884c\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2460\u5408\u8a08\u3057\u305f\u3044\u30c7\u30fc\u30bf\u304c\u3042\u308b\u30bb\u30eb\u3092\u7bc4\u56f2\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2939\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_7.png\" alt=\"\" width=\"517\" height=\"277\" \/><\/p>\n<p>\u2461<span class=\"keybtn\">\u958b\u767a<\/span>\u30bf\u30d6\u306e<span class=\"keybtn\">VBA<\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057<\/p>\n<p>\u300c<strong>SUM\u95a2\u6570\u633f\u5165<\/strong>\u300d\u3092\u9078\u629e\u3057\u3001<\/p>\n<p>\u300c<strong>\u5b9f\u884c<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p>\u884c\u5217\u306e\u6307\u5b9a\u4f4d\u7f6e\u306bSUM\u95a2\u6570\u304c\u633f\u5165\u3055\u308c\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2940\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_8.png\" alt=\"\" width=\"515\" height=\"273\" \/><\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%A5%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E2%91%A0%EF%BC%9ASUM%E9%96%A2%E6%95%B0%E6%8C%BF%E5%85%A5%E4%BD%8D%E7%BD%AE%E3%82%92%E5%A4%89%E3%81%88%E3%82%8B\"><\/span>\u5225\u30d1\u30bf\u30fc\u30f3\u2460\uff1aSUM\u95a2\u6570\u633f\u5165\u4f4d\u7f6e\u3092\u5909\u3048\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>SUM\u95a2\u6570\u633f\u5165\u4f4d\u7f6e\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u9078\u629e\u7bc4\u56f2\u306e<strong>\u6b21\u306e\u6b21\u306e\u6b21\u306e\u30bb\u30eb<\/strong>\u306b\u3059\u308b\u5834\u5408\u306f\u5404\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u5f15\u6570\u306e\u5024\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u5404\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u5f15\u6570\u3092\u300c2\u300d\u304b\u3089\u300c<span style=\"color: #ff0000;\"><strong>3<\/strong><\/span>\u300d\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<br \/>\n<strong>Call \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(<span style=\"color: #ff0000;\">3<\/span>)<\/strong><br \/>\n<strong>Call \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u884c\u4e0b\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(<span style=\"color: #ff0000;\">3<\/span>)<\/strong><\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<p>\u306f\u3044\u3001SUM\u95a2\u6570\u306e\u633f\u5165\u4f4d\u7f6e\u304c\u5909\u308f\u308a\u307e\u3057\u305f\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2941\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_9.png\" alt=\"\" width=\"593\" height=\"297\" \/><\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">\u6b04\u5916\u633f\u5165\u3067\u7f8e\u3057\u304f\u306a\u3044\u3067\u3059\u304c\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u2026<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%A5%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E2%91%A1%EF%BC%9ASUM%E9%96%A2%E6%95%B0%E6%8C%BF%E5%85%A5%E3%82%92%E8%A1%8C%E3%81%BE%E3%81%9F%E3%81%AF%E5%88%97%E3%81%AE%E3%81%BF%E3%81%AB%E3%81%99%E3%82%8B\"><\/span>\u5225\u30d1\u30bf\u30fc\u30f3\u2461\uff1aSUM\u95a2\u6570\u633f\u5165\u3092\u884c\u307e\u305f\u306f\u5217\u306e\u307f\u306b\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u300c\u30aa\u30fc\u30c8SUM\u300d\u3067\u306f\u3067\u304d\u306a\u304b\u3063\u305fSUM\u95a2\u6570\u633f\u5165\u3092\u5217\u306e\u307f\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u304c\u3001<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u300c\u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u300d\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<strong>Call \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(2)<\/strong><br \/>\n<span style=\"color: #808080;\"><strong><span style=\"color: #ff0000;\">\u2019<\/span>Call \u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u884c\u4e0b\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b(2)<\/strong><\/span><\/p>\n<p>\u306f\u3044\u3001\u3067\u304d\u307e\u3057\u305f\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2942\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_10.png\" alt=\"\" width=\"518\" height=\"269\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%A5%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E2%91%A2%EF%BC%9A%E5%88%A5%E3%83%96%E3%83%83%E3%82%AF%E3%81%ABSUM%E9%96%A2%E6%95%B0%E6%8C%BF%E5%85%A5%E3%82%92%E3%81%99%E3%82%8B\"><\/span>\u5225\u30d1\u30bf\u30fc\u30f3\u2462\uff1a\u5225\u30d6\u30c3\u30af\u306bSUM\u95a2\u6570\u633f\u5165\u3092\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>VBE\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u3001<strong>\u5225\u30d6\u30c3\u30af\u306e\u8868\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066SUM\u95a2\u6570\u3092\u633f\u5165<\/strong>\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5225\u30d6\u30c3\u30af\u3092\u958b\u304d\u3001\u8868\u30c7\u30fc\u30bf\u3092\u7bc4\u56f2\u9078\u629e\u3057\u3001VBE\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2943\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_11.png\" alt=\"\" width=\"443\" height=\"422\" \/><\/p>\n<p>\u306f\u3044\u3001\u3067\u304d\u307e\u3057\u305f\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2944\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_12.png\" alt=\"\" width=\"443\" height=\"422\" \/><\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%81%AE%E8%AA%AC%E6%98%8E\"><\/span>VBA\u306e\u8aac\u660e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VBA\u306e\u5185\u5bb9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f3\u3064\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u3064\u304c\u30e1\u30a4\u30f3\u306e\u300c<strong>SUM\u95a2\u6570\u633f\u5165<\/strong>\u300d\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3067\u3001\u3053\u3053\u304b\u3089\u5404\u30b5\u30d6\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b8b\u308a\u306e2\u3064\u306f<br \/>\n\u300c<strong>\u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b<\/strong>\u300d<br \/>\n\u300c<strong>\u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u884c\u4e0b\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b<\/strong>\u300d<br \/>\n\u3067\u3001\u7b2c\u4e00\u5f15\u6570\u306b\u306f<strong>SUM\u95a2\u6570\u633f\u5165\u4f4d\u7f6e\u3092\u6307\u5b9a<\/strong>\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u300c<strong>\u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b<\/strong>\u300d\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u9078\u629e\u7bc4\u56f2\u306e\u5ea7\u6a19\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nintRow = Selection(1).Row &#8216;\u884c\u6570<br \/>\nintCol = Selection(1).Column &#8216;\u5217\u6570<br \/>\nintMaxRow = Selection(Selection.Count).Row &#8216;\u6700\u7d42\u884c<br \/>\nintMaxCol = Selection(Selection.Count).Column &#8216;\u6700\u7d42\u5217<br \/>\nintSumPosRow = intSumPosRow + intMaxRow &#8216;\u4f4d\u7f6e\u6570\u306b\u6700\u7d42\u884c\u6570\u3092\u52a0\u3048\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u5ea7\u6a19\u304b\u3089A1\u306a\u3069\u306e\u30a2\u30c9\u30ec\u30b9\u5024\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u6307\u5b9a\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u76f8\u5bfe\u53c2\u7167\u3068\u306a\u308b\u3088\u3046\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nstrStartCell = Cells(intRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)<br \/>\nstrEndCell = Cells(intMaxRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)<br \/>\nstrSumPosCell = Cells(intSumPosRow, intCol).Address(RowAbsolute:=False, ColumnAbsolute:=False)<\/p>\n<p>\u4ee5\u4e0b\u306fSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u51e6\u7406\u3067\u3059\u3002<br \/>\nWith Range(strSumPosCell)<br \/>\n.Formula = &#8220;=SUM(&#8221; &amp; strStartCell &amp; &#8220;:&#8221; &amp; strEndCell &amp; &#8221; )&#8221;<br \/>\n&#8216;1\u5217\u4ee5\u4e0b\u306f\u30a8\u30e9\u30fc\u3068\u306a\u308b\u305f\u3081\u56de\u907f<br \/>\nIf intMaxCol &#8211; intCol + 1 &gt; 1 Then<br \/>\n.AutoFill Destination:=.Resize(1, intMaxCol &#8211; intCol + 1)<br \/>\nEnd If<br \/>\nEnd With<\/p>\n<p>\u3061\u306a\u307f\u306b\u30a8\u30e9\u30fc\u56de\u907f\u306e\u7b87\u6240\u3067\u3059\u304c\u3001\u6570\u5f0f\u3092\u30b3\u30d4\u30fc\u3059\u308bAutoFill\u95a2\u6570\u306f1\u500b\u3060\u3051\u306e\u5834\u5408\u306f\u30a8\u30e9\u30fc1004\u300cRange\u30af\u30e9\u30b9\u306eAutoFill\u30e1\u30bd\u30c3\u30c9\u304c\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u300d\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u30012\u500b\u4ee5\u4e0a\u306e\u5834\u5408\u306b\u51e6\u7406\u3092\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2938\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/111720_1658_6.png\" alt=\"\" width=\"428\" height=\"196\" \/><\/p>\n<p>\u300c<strong>\u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u884c\u4e0b\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b<\/strong>\u300d\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u8aac\u660e\u306f\u300c<strong>\u9078\u629e\u7bc4\u56f2\u306e\u6700\u7d42\u5217\u53f3\u306bSUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b<\/strong>\u300d\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3068\u307b\u307c\u540c\u69d8\u306a\u306e\u3067\u5272\u611b\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><script><\/p>\n<p><\/script><\/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<br \/>\n<strong>\u4e00\u77ac\u3067SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u3068\u3001\u3042\u308b\u3068\u3046\u308c\u3057\u3044\u4f4d\u7f6e\u6c7a\u3081\u6a5f\u80fd\u3092<\/strong><br \/>\n\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30aa\u30fc\u30c8SUM\u3067\u306f\u5b9f\u73fe\u3067\u304d\u306a\u3044SUM\u95a2\u6570\u633f\u5165\u51e6\u7406\u304c\u3042\u308c\u3070<\/p>\n<p>\u305c\u3072\u6d3b\u7528\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u56de\u306f\u5e73\u5747\u5024\u3092\u6c42\u3081\u308bAVERAGE\u95a2\u6570\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>SUM\u95a2\u6570\u3001AVERAGE\u95a2\u6570\u3092\u307e\u3068\u3081\u3066\u633f\u5165\u3001\u3068\u3044\u3046\u6280\u3082\u3067\u304d\u307e\u3059\u306e\u3067\u3054\u671f\u5f85\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u306e\u64cd\u4f5c\u3067SUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u6a5f\u4f1a\u306f\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u305d\u3093\u306a\u6642\u306b\u5927\u5909\u3060\u3068\u601d\u3046\u3053\u3068\u306f \u30fbSUM\u95a2\u6570\u3092\u4e00\u500b\u3065\u3064\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u9762\u5012\u2026 \u30fbSUM\u95a2\u6570\u3067\u5408\u8a08\u7bc4\u56f2\u304c\u6f0f\u308c\u3066\u3044\u305f\u2026 \u30fb\u7e26\u6a2a\u4e21\u65b9\u306bSUM\u95a2\u6570\u3092\u5165\u308c\u305f\u3044\u304c\u65b9\u6cd5\u304c\u308f\u304b\u3089&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2929,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8,5],"tags":[143],"class_list":{"0":"post-2927","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","9":"category-excel","10":"tag-143","11":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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=2927\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"Excel\u306e\u64cd\u4f5c\u3067SUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u6a5f\u4f1a\u306f\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u305d\u3093\u306a\u6642\u306b\u5927\u5909\u3060\u3068\u601d\u3046\u3053\u3068\u306f \u30fbSUM\u95a2\u6570\u3092\u4e00\u500b\u3065\u3064\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u9762\u5012\u2026 \u30fbSUM\u95a2\u6570\u3067\u5408\u8a08\u7bc4\u56f2\u304c\u6f0f\u308c\u3066\u3044\u305f\u2026 \u30fb\u7e26\u6a2a\u4e21\u65b9\u306bSUM\u95a2\u6570\u3092\u5165\u308c\u305f\u3044\u304c\u65b9\u6cd5\u304c\u308f\u304b\u3089...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=2927\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-17T17:18:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-09T00:07:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/fxvba.png\" \/>\n\t<meta property=\"og:image:width\" content=\"765\" \/>\n\t<meta property=\"og:image:height\" content=\"496\" \/>\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=\"2\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=2927#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/fxvba.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/fxvba.png\",\"width\":765,\"height\":496},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=2927#webpage\",\"url\":\"https:\/\/extan.jp\/?p=2927\",\"name\":\"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=2927#primaryimage\"},\"datePublished\":\"2020-11-17T17:18:13+00:00\",\"dateModified\":\"2023-05-09T00:07:18+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=2927#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=2927\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=2927#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\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":{"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=2927","og_locale":"ja_JP","og_type":"article","og_title":"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"Excel\u306e\u64cd\u4f5c\u3067SUM\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u6a5f\u4f1a\u306f\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u305d\u3093\u306a\u6642\u306b\u5927\u5909\u3060\u3068\u601d\u3046\u3053\u3068\u306f \u30fbSUM\u95a2\u6570\u3092\u4e00\u500b\u3065\u3064\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u9762\u5012\u2026 \u30fbSUM\u95a2\u6570\u3067\u5408\u8a08\u7bc4\u56f2\u304c\u6f0f\u308c\u3066\u3044\u305f\u2026 \u30fb\u7e26\u6a2a\u4e21\u65b9\u306bSUM\u95a2\u6570\u3092\u5165\u308c\u305f\u3044\u304c\u65b9\u6cd5\u304c\u308f\u304b\u3089...","og_url":"https:\/\/extan.jp\/?p=2927","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2020-11-17T17:18:13+00:00","article_modified_time":"2023-05-09T00:07:18+00:00","og_image":[{"width":765,"height":496,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/fxvba.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":"2\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=2927#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/fxvba.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/11\/fxvba.png","width":765,"height":496},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=2927#webpage","url":"https:\/\/extan.jp\/?p=2927","name":"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=2927#primaryimage"},"datePublished":"2020-11-17T17:18:13+00:00","dateModified":"2023-05-09T00:07:18+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=2927#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=2927"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=2927#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"\u3010ExcelVBA\u3011SUM\u95a2\u6570\u3092\u9078\u629e\u7bc4\u56f2\u306e\u7e26\u6a2a\u306b\u633f\u5165\u3059\u308b\u65b9\u6cd5\u306f\uff1f\u4f4d\u7f6e\u6c7a\u3081\u3082\u53ef\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\/2927","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=2927"}],"version-history":[{"count":10,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2927\/revisions"}],"predecessor-version":[{"id":11241,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2927\/revisions\/11241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/2929"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}