{"id":628,"date":"2025-04-23T00:49:10","date_gmt":"2025-04-22T15:49:10","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/04\/%e3%80%8cexcel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba\/"},"modified":"2025-04-23T00:49:10","modified_gmt":"2025-04-22T15:49:10","slug":"%e3%80%8cexcel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/04\/%e3%80%8cexcel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba\/","title":{"rendered":"\u300cExcel\u30de\u30b9\u30bf\u30fc\u3078\u306e\u9053\uff1a\u4e0a\u7d1a\u8005\u5411\u3051\u30d7\u30e9\u30b0\u30a4\u30f3\u958b\u767a\u3067\u696d\u52d9\u52b9\u7387\u3092\u5287\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u7a76\u6975\u30c6\u30af\u30cb\u30c3\u30af\u300d"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u5411\u3051\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u5b9f\u88c5\u65b9\u6cd5\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u7a76\u6975\u30c6\u30af\u30cb\u30c3\u30af<\/h2>\n<h3>\u4e0a\u7d1a\u8005\u5411\u3051\u30de\u30af\u30ed\u30b3\u30fc\u30c9\uff1a\u5373\u52b9\u6027\u306e\u3042\u308b\u696d\u52d9\u52b9\u7387\u5316\u30c4\u30fc\u30eb<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u81ea\u52d5\u7684\u306b\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u304c\u77ac\u6642\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub SumSelectedCells()<br \/>\n    Dim rng As Range<br \/>\n    Dim totalSum As Double<\/p>\n<p>    Set rng = Selection<br \/>\n    totalSum = WorksheetFunction.Sum(rng)<\/p>\n<p>    Sheets.Add.Name = &#8220;Summary&#8221;<br \/>\n    Sheets(&#8220;Summary&#8221;).Range(&#8220;A1&#8221;).Value = &#8220;\u5408\u8a08&#8221;<br \/>\n    Sheets(&#8220;Summary&#8221;).Range(&#8220;B1&#8221;).Value = totalSum<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306eExcel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u8a08\u7b97\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3057\u3001\u4f5c\u696d\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1. \u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u57fa\u672c\u6982\u5ff5<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u5b9f\u88c5\u306f\u3001Excel\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3059\u308b\u5f37\u529b\u306a\u65b9\u6cd5\u3067\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u6838\u5fc3\u306f\u3001\u5916\u90e8\u306e\u30b3\u30fc\u30c9\u3092Excel\u306b\u7d71\u5408\u3057\u3001\u65e2\u5b58\u306e\u6a5f\u80fd\u3092\u88dc\u5b8c\u307e\u305f\u306f\u62e1\u5f35\u3059\u308b\u3053\u3068\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\u3001\u4e3b\u306bVBA\uff08Visual Basic for Applications\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002VBA\u306f\u3001Excel\u306b\u7d44\u307f\u8fbc\u307e\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3001\u30de\u30af\u30ed\u3084\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u306e\u4f5c\u6210\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u8a08\u7b97\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u3001\u30ec\u30dd\u30fc\u30c8\u751f\u6210\u306a\u3069\u3092\u81ea\u52d5\u5316\u3057\u3001\u696d\u52d9\u52b9\u7387\u3092\u98db\u8e8d\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u30d7\u30e9\u30b0\u30a4\u30f3\u958b\u767a\u306e\u30b9\u30c6\u30c3\u30d7<\/h3>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u958b\u767a\u306e\u4e00\u822c\u7684\u306a\u30b9\u30c6\u30c3\u30d7\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<p>1. \u8981\u4ef6\u5b9a\u7fa9\uff1a\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u76ee\u7684\u3068\u6a5f\u80fd\u3092\u660e\u78ba\u306b\u3057\u307e\u3059\u3002<br \/>\n2. \u30c7\u30b6\u30a4\u30f3\uff1a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u6a5f\u80fd\u306e\u8a2d\u8a08\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n3. \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\uff1aVBA\u3092\u4f7f\u7528\u3057\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<br \/>\n4. \u30c6\u30b9\u30c8\uff1a\u6a5f\u80fd\u306e\u6b63\u78ba\u6027\u3068\u5b89\u5b9a\u6027\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n5. \u7d71\u5408\uff1a\u958b\u767a\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u3092Excel\u306b\u7d71\u5408\u3057\u307e\u3059\u3002<br \/>\n6. \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4f5c\u6210\uff1a\u4f7f\u7528\u65b9\u6cd5\u3084\u6ce8\u610f\u70b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u901a\u3058\u3066\u3001\u52b9\u679c\u7684\u304b\u3064\u4f7f\u3044\u3084\u3059\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7279\u306b\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6bb5\u968e\u3067\u306f\u3001Excel \u30de\u30af\u30ed\u306e\u77e5\u8b58\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3057\u3001\u8907\u96d1\u306a\u64cd\u4f5c\u3092\u7c21\u5358\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>3. \u9ad8\u5ea6\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u5b9f\u88c5<\/h3>\n<p>\u4e0a\u7d1a\u8005\u5411\u3051\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p>&#8211; \u5916\u90e8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u9023\u643a\uff1aSQL\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001Excel\u306b\u7d71\u5408\u3057\u307e\u3059\u3002<br \/>\n&#8211; \u30ab\u30b9\u30bf\u30e0\u30ea\u30dc\u30f3\u306e\u4f5c\u6210\uff1aExcel\u306e\u30ea\u30dc\u30f3\u306b\u72ec\u81ea\u306e\u30bf\u30d6\u3084\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\u3057\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u80fd\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002<br \/>\n&#8211; \u52d5\u7684\u30c1\u30e3\u30fc\u30c8\u751f\u6210\uff1a\u30c7\u30fc\u30bf\u306e\u5909\u66f4\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30c1\u30e3\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n&#8211; \u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u306e\u62e1\u5f35\uff1a\u8907\u96d1\u306a\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u30bb\u30eb\u306e\u66f8\u5f0f\u3092\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u3001VBA\u3060\u3051\u3067\u306a\u304f\u3001API\uff08\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u306e\u77e5\u8b58\u3082\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002API\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001Excel\u306e\u6a19\u6e96\u6a5f\u80fd\u3092\u8d85\u3048\u305f\u3001\u3088\u308a\u67d4\u8edf\u3067\u5f37\u529b\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u5b9f\u88c5\u306f\u3001Excel\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u696d\u52d9\u52b9\u7387\u5316\u306e\u7a76\u6975\u7684\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u57fa\u672c\u7684\u306a\u30de\u30af\u30ed\u306e\u4f7f\u7528\u304b\u3089\u59cb\u3081\u3066\u3001\u5f90\u3005\u306b\u8907\u96d1\u306a\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u81ea\u8eab\u306e\u30cb\u30fc\u30ba\u306b\u5b8c\u5168\u306b\u9069\u5408\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u904e\u7a0b\u3067\u7372\u5f97\u3059\u308b\u30b9\u30ad\u30eb\u3068\u77e5\u8b58\u306f\u3001Excel\u3092\u5358\u306a\u308b\u8868\u8a08\u7b97\u30bd\u30d5\u30c8\u304b\u3089\u3001\u5f37\u529b\u306a\u696d\u52d9\u81ea\u52d5\u5316\u30c4\u30fc\u30eb\u3078\u3068\u5909\u8c8c\u3055\u305b\u308b\u9375\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u69cb\u306e\u5b9f\u88c5\u65b9\u6cd5\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u7a76\u6975\u30c6\u30af\u30cb\u30c3\u30af \u4e0a\u7d1a\u8005\u5411\u3051\u30de\u30af\u30ed\u30b3\u30fc\u30c9\uff1a\u5373\u52b9\u6027\u306e\u3042\u308b\u696d\u52d9\u52b9\u7387\u5316\u30c4\u30fc\u30eb \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u81ea\u52d5\u7684\u306b\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30b7\u30fc\u30c8<\/p>\n","protected":false},"author":2,"featured_media":627,"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-628","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\/628","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=628"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/627"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}