{"id":587,"date":"2025-03-15T00:33:35","date_gmt":"2025-03-14T15:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/03\/excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93-%e6%a5%ad%e5%8b%99%e8%87%aa%e5%8b%95%e5%8c%96%e3%80%81%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e9%96%8b%e7%99%ba\/"},"modified":"2025-03-15T00:33:35","modified_gmt":"2025-03-14T15:33:35","slug":"excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93-%e6%a5%ad%e5%8b%99%e8%87%aa%e5%8b%95%e5%8c%96%e3%80%81%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e9%96%8b%e7%99%ba","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/03\/excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93-%e6%a5%ad%e5%8b%99%e8%87%aa%e5%8b%95%e5%8c%96%e3%80%81%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e9%96%8b%e7%99%ba\/","title":{"rendered":"Excel\u30de\u30b9\u30bf\u30fc\u3078\u306e\u9053: \u696d\u52d9\u81ea\u52d5\u5316\u3001\u9ad8\u5ea6\u306a\u30de\u30af\u30ed\u958b\u767a\u3001\u30c7\u30fc\u30bf\u5206\u6790\u306e\u6975\u610f"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u304c\u6975\u3081\u308b\uff01\u6b21\u4e16\u4ee3\u306e\u696d\u52d9\u81ea\u52d5\u5316\u3068\u9ad8\u5ea6\u306a\u30de\u30af\u30ed\u958b\u767a<\/h2>\n<h3>\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9<\/h3>\n<p>\u4ee5\u4e0b\u306f\u3001\u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30bb\u30eb\u306b\u8868\u793a\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub SumSelectedCells()<br \/>\n    Dim rng As Range<br \/>\n    Dim total As Double<\/p>\n<p>    Set rng = Selection<br \/>\n    total = WorksheetFunction.Sum(rng)<\/p>\n<p>    ActiveSheet.Cells(rng.Row + rng.Rows.Count + 1, rng.Column).Value = total<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u9078\u629e\u3057\u305f\u7bc4\u56f2\u306e\u5408\u8a08\u304c\u3001\u9078\u629e\u7bc4\u56f2\u306e\u76f4\u4e0b\u306b\u81ea\u52d5\u7684\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>1. Excel \u30de\u30af\u30ed\u306b\u3088\u308b\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u306e\u81ea\u52d5\u5316<\/h3>\n<p>Excel \u30de\u30af\u30ed\u306f\u3001\u7e70\u308a\u8fd4\u3057\u884c\u3046\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u4e0a\u7d1a\u8005\u306f\u3001Visual Basic for Applications (VBA) \u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u96d1\u306a\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u306e\u6574\u7406\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u5909\u66f4\u3001\u8907\u6570\u306e\u30b7\u30fc\u30c8\u9593\u3067\u306e\u30c7\u30fc\u30bf\u8ee2\u9001\u306a\u3069\u3092\u4e00\u62ec\u3067\u884c\u3046\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30de\u30af\u30ed\u958b\u767a\u306e\u9375\u306f\u3001\u307e\u305a\u624b\u52d5\u3067\u884c\u3046\u4f5c\u696d\u3092\u7d30\u304b\u304f\u5206\u6790\u3057\u3001\u305d\u308c\u3092\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u3067\u30b3\u30fc\u30c9\u306b\u7ffb\u8a33\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u307e\u305f\u3001\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3092\u9069\u5207\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30af\u30ed\u306e\u4fe1\u983c\u6027\u3068\u5805\u7262\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u9ad8\u5ea6\u306a\u95a2\u6570\u3068Power Query\u306e\u6d3b\u7528<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u306f\u3001\u8907\u96d1\u306a\u8a08\u7b97\u3084\u6761\u4ef6\u4ed8\u304d\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u9ad8\u5ea6\u306a\u95a2\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001SUMIFS\u3001VLOOKUP\u3001INDEX\u3068MATCH\u306e\u7d44\u307f\u5408\u308f\u305b\u306a\u3069\u3092\u99c6\u4f7f\u3057\u3066\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u304b\u3089\u5fc5\u8981\u306a\u60c5\u5831\u3092\u7d20\u65e9\u304f\u62bd\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001Power Query\uff08\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3068\u5909\u63db\uff09\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u53d6\u308a\u8fbc\u307f\u3068\u524d\u51e6\u7406\u3092\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u3002Power Query\u3092\u4f7f\u3048\u3070\u3001\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u7d50\u5408\u3057\u305f\u308a\u3001\u30c7\u30fc\u30bf\u306e\u30af\u30ea\u30fc\u30cb\u30f3\u30b0\u3084\u5909\u63db\u3092\u81ea\u52d5\u5316\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>3. \u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30a2\u30ec\u30a4\u95a2\u6570\u3068\u30b9\u30d4\u30eb\u30ec\u30f3\u30b8\u306e\u6d3b\u7528<\/h3>\n<p>\u6700\u65b0\u306eExcel\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30a2\u30ec\u30a4\u95a2\u6570\u3068\u30b9\u30d4\u30eb\u30ec\u30f3\u30b8\uff08\u6ce8\uff1a\u7d50\u679c\u304c\u81ea\u52d5\u7684\u306b\u8907\u6570\u306e\u30bb\u30eb\u306b\u5e83\u304c\u308b\u6a5f\u80fd\uff09\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u8a08\u7b97\u3084\u6761\u4ef6\u4ed8\u304d\u306e\u51e6\u7406\u3092\u3088\u308a\u7c21\u6f54\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001FILTER\u3084SORT\u306a\u3069\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u304b\u3089\u6761\u4ef6\u306b\u5408\u3046\u3082\u306e\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u4e26\u3079\u66ff\u3048\u305f\u308a\u3059\u308b\u4f5c\u696d\u304c\u3001\u5358\u4e00\u306e\u95a2\u6570\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5f93\u6765\u306e\u3088\u3046\u306b\u8907\u6570\u306e\u5217\u3084\u884c\u3092\u4f7f\u7528\u3057\u3066\u6bb5\u968e\u7684\u306b\u51e6\u7406\u3092\u884c\u3046\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u69cb\u9020\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3068\u9ad8\u5ea6\u306a\u95a2\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u306e\u5927\u5e45\u306a\u52b9\u7387\u5316\u3068\u81ea\u52d5\u5316\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3089\u306e\u6280\u8853\u3092\u52b9\u679c\u7684\u306b\u6d3b\u7528\u3059\u308b\u306b\u306f\u3001\u7d99\u7d9a\u7684\u306a\u5b66\u7fd2\u3068\u5b9f\u8df5\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u65e5\u3005\u306e\u696d\u52d9\u306e\u4e2d\u3067\u5c11\u3057\u305a\u3064\u65b0\u3057\u3044\u6280\u8853\u3092\u53d6\u308a\u5165\u308c\u3001\u8a66\u884c\u932f\u8aa4\u3092\u91cd\u306d\u308b\u3053\u3068\u3067\u3001Excel\u306e\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u3068\u3057\u3066\u306e\u30b9\u30ad\u30eb\u3092\u78e8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u304c\u6975\u3081\u308b\uff01\u6b21\u4e16\u4ee3\u306e\u696d\u52d9\u81ea\u52d5\u5316\u3068\u9ad8\u5ea6\u306a\u30de\u30af\u30ed\u958b\u767a \u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9 \u4ee5\u4e0b\u306f\u3001\u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30bb\u30eb\u306b\u8868\u793a\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u3059\uff1a #8220;`vb<\/p>\n","protected":false},"author":2,"featured_media":586,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced"],"_links":{"self":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/586"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}