{"id":650,"date":"2025-05-17T16:49:11","date_gmt":"2025-05-17T07:49:11","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/05\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87\/"},"modified":"2025-05-17T16:49:11","modified_gmt":"2025-05-17T07:49:11","slug":"excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/05\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87\/","title":{"rendered":"Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff01\u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3067\u696d\u52d9\u52b9\u7387\u3092\u5287\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u5b9f\u88c5\uff1a\u52b9\u7387\u5316\u306e\u6975\u610f<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\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\u30b7\u30fc\u30c8\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30de\u30af\u30ed\u3092\u4f7f\u3048\u3070\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u77ac\u6642\u306b\u96c6\u8a08\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub SumSelectedRange()<br \/>\n    Dim total As Double<br \/>\n    Dim cell As Range<\/p>\n<p>    &#8216; \u9078\u629e\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u5408\u8a08<br \/>\n    For Each cell In Selection<br \/>\n        If IsNumeric(cell.Value) Then<br \/>\n            total = total + cell.Value<br \/>\n        End If<br \/>\n    Next cell<\/p>\n<p>    &#8216; \u65b0\u3057\u3044\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001\u7d50\u679c\u3092\u8868\u793a<br \/>\n    Sheets.Add.Name = &#8220;\u5408\u8a08\u7d50\u679c&#8221;<br \/>\n    Sheets(&#8220;\u5408\u8a08\u7d50\u679c&#8221;).Range(&#8220;A1&#8221;).Value = &#8220;\u9078\u629e\u7bc4\u56f2\u306e\u5408\u8a08:&#8221;<br \/>\n    Sheets(&#8220;\u5408\u8a08\u7d50\u679c&#8221;).Range(&#8220;B1&#8221;).Value = total<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<h3>1. \u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u91cd\u8981\u6027<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u88c5\u306f\u696d\u52d9\u52b9\u7387\u5316\u306e\u8981\u3067\u3059\u3002\u6a19\u6e96\u6a5f\u80fd\u3060\u3051\u3067\u306a\u304f\u3001\u81ea\u5206\u306e\u696d\u52d9\u306b\u7279\u5316\u3057\u305f\u30d7\u30ed\u30bb\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3067\u3001\u4f5c\u696d\u6642\u9593\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u65e5\u3005\u306e\u58f2\u4e0a\u30c7\u30fc\u30bf\u3092\u96c6\u8a08\u3057\u3001\u30b0\u30e9\u30d5\u5316\u3059\u308b\u3068\u3044\u3046\u4e00\u9023\u306e\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u6bce\u65e5\u306e\u5831\u544a\u66f8\u4f5c\u6210\u304c\u6570\u5206\u3067\u5b8c\u4e86\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306f\u3001\u307e\u305a\u81ea\u5206\u306e\u696d\u52d9\u30d5\u30ed\u30fc\u3092\u7d30\u304b\u304f\u5206\u6790\u3057\u3001\u7e70\u308a\u8fd4\u3057\u884c\u3063\u3066\u3044\u308b\u4f5c\u696d\u3092\u6d17\u3044\u51fa\u3059\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u3089\u306e\u4f5c\u696d\u3092Excel\u306e\u30de\u30af\u30ed\u3084VBA\u3092\u4f7f\u3063\u3066\u81ea\u52d5\u5316\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u5358\u306b\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u3084\u4f8b\u5916\u51e6\u7406\u3082\u7d44\u307f\u8fbc\u3080\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u3088\u308a\u5805\u7262\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u9ad8\u5ea6\u306a\u95a2\u6570\u3068\u30de\u30af\u30ed\u306e\u6d3b\u7528<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u3067\u3042\u308c\u3070\u3001VLOOKUP\u3084INDEX\/MATCH\u95a2\u6570\u306f\u3059\u3067\u306b\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u3002\u3057\u304b\u3057\u3001\u3055\u3089\u306b\u52b9\u7387\u3092\u9ad8\u3081\u308b\u306b\u306f\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u95a2\u6570\u3084\u30de\u30af\u30ed\u306e\u6d3b\u7528\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u3001LAMBDA\u95a2\u6570\uff08\u6ce8\uff1aExcel 365\u4ee5\u964d\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u65b0\u3057\u3044\u95a2\u6570\uff09\u3092\u4f7f\u3048\u3070\u3001\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3001\u8907\u96d1\u306a\u8a08\u7b97\u3092\u7c21\u5358\u306b\u518d\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Power Query\uff08\u6ce8\uff1a\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306eExcel\u306e\u6a5f\u80fd\uff09\u3092\u6d3b\u7528\u3059\u308c\u3070\u3001\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304b\u3089\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3001\u81ea\u52d5\u7684\u306b\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3084\u5909\u63db\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u52b9\u7387\u304c\u98db\u8e8d\u7684\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>Excel\u30de\u30af\u30ed\u306f\u3001\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u3055\u3089\u306b\u62e1\u5f35\u3057\u3001\u5b8c\u5168\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u7279\u5b9a\u306e\u30bb\u30eb\u306e\u5024\u306b\u57fa\u3065\u3044\u3066\u6761\u4ef6\u5206\u5c90\u3092\u884c\u3044\u3001\u7570\u306a\u308b\u30ec\u30dd\u30fc\u30c8\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u3092\u4f7f\u3048\u3070\u3001\u8907\u96d1\u306a\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u3082\u7c21\u5358\u306b\u81ea\u52d5\u5316\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<h3>3. \u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/h3>\n<p>\u52b9\u7387\u7684\u306a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u306f\u3001\u4f7f\u3044\u3084\u3059\u3044\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u91cd\u8981\u3067\u3059\u3002Excel\u306e\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3084ActiveX\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u306e\u30dc\u30bf\u30f3\u3084\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\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<p>\u4f8b\u3048\u3070\u3001\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u7279\u5b9a\u306e\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u304b\u3089\u9078\u629e\u3057\u305f\u9805\u76ee\u306b\u57fa\u3065\u3044\u3066\u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Excel\u306b\u4e0d\u6163\u308c\u306a\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u3001\u8907\u96d1\u306a\u64cd\u4f5c\u3092\u7c21\u5358\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001VBA\u3092\u4f7f\u3063\u3066\u30ab\u30b9\u30bf\u30e0\u306e\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308c\u3070\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u5165\u529b\u753b\u9762\u3084\u8a2d\u5b9a\u753b\u9762\u306a\u3069\u3001\u696d\u52d9\u306b\u7279\u5316\u3057\u305f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u308b\u3053\u3068\u3067\u3001\u4f5c\u696d\u52b9\u7387\u3068\u6b63\u78ba\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u308b\u3053\u3068\u3067\u3001Excel\u4e0a\u7d1a\u8005\u306f\u81ea\u8eab\u306e\u696d\u52d9\u306b\u5b8c\u5168\u306b\u30d5\u30a3\u30c3\u30c8\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u65e5\u3005\u306e\u696d\u52d9\u304c\u3088\u308a\u52b9\u7387\u7684\u306b\u3001\u305d\u3057\u3066\u3088\u308a\u6b63\u78ba\u306b\u306a\u308b\u3053\u3068\u306f\u9593\u9055\u3044\u3042\u308a\u307e\u305b\u3093\u3002Excel\u30de\u30af\u30ed\u3092\u99c6\u4f7f\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u3042\u306a\u305f\u306e\u696d\u52d9\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3068\u5f15\u304d\u4e0a\u3052\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30ab\u30b9\u30bf\u30e0\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u5b9f\u88c5\uff1a\u52b9\u7387\u5316\u306e\u6975\u610f \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\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\u30b7\u30fc\u30c8\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30de\u30af\u30ed\u3092\u4f7f\u3048\u3070\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u77ac\u6642\u306b\u96c6\u8a08\u3067\u304d\u307e\u3059\u3002 #8220<\/p>\n","protected":false},"author":2,"featured_media":649,"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-650","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\/650","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=650"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/649"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}