{"id":626,"date":"2025-04-20T08:49:10","date_gmt":"2025-04-19T23:49:10","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/04\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%815%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e6%8a%80%e8%a1%93%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87\/"},"modified":"2025-04-20T08:49:10","modified_gmt":"2025-04-19T23:49:10","slug":"excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%815%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e6%8a%80%e8%a1%93%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\/04\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%815%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e6%8a%80%e8%a1%93%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87\/","title":{"rendered":"Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff015\u3064\u306e\u9ad8\u5ea6\u306a\u30de\u30af\u30ed\u6280\u8853\u3067\u696d\u52d9\u52b9\u7387\u3092\u5287\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>\u4e0a\u7d1a\u8005\u5411\u3051\uff1aExcel\u30de\u30af\u30ed\u3067\u696d\u52d9\u52b9\u7387\u5316\u3092\u5b9f\u73fe\u3059\u308b<\/h2>\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\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30bb\u30eb\u306b\u8868\u793a\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub SumSelectedCells()<br \/>\n    Dim total As Double<br \/>\n    Dim cell As Range<\/p>\n<p>    total = 0<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>    ActiveSheet.Cells(Selection.Row + Selection.Rows.Count, Selection.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\u7bc4\u56f2\u306e\u76f4\u4e0b\u306b\u5408\u8a08\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>1. \u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u57fa\u672c<\/h3>\n<p>Excel\u306e\u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u3001\u7279\u5b9a\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3084\u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u4e0a\u7d1a\u8005\u306f\u3053\u306e\u6982\u5ff5\u3092\u6d3b\u7528\u3057\u3066\u3001\u8907\u96d1\u306a\u81ea\u52d5\u5316\u3084\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u6a5f\u80fd\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30bb\u30eb\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u304d\u306b\u81ea\u52d5\u7684\u306b\u8a08\u7b97\u3092\u884c\u3063\u305f\u308a\u3001\u7279\u5b9a\u306e\u30b7\u30fc\u30c8\u304c\u9078\u629e\u3055\u308c\u305f\u3068\u304d\u306b\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u9023\u52d5\u3057\u3066Excel\u304c\u53cd\u5fdc\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Excel\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306a\u30a4\u30d9\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u51e6\u7406\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002VBA\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u3067\u3001\u69d8\u3005\u306a\u30a4\u30d9\u30f3\u30c8\u306b\u5bfe\u5fdc\u3059\u308b\u51e6\u7406\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<h3>2. \u30ab\u30b9\u30bf\u30e0\u30ea\u30dc\u30f3\u306e\u4f5c\u6210<\/h3>\n<p>\u4e0a\u7d1a\u8005\u306f\u3001Excel\u306e\u30ea\u30dc\u30f3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3001\u983b\u7e41\u306b\u4f7f\u7528\u3059\u308b\u6a5f\u80fd\u3084\u30de\u30af\u30ed\u306b\u3059\u3050\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4f5c\u696d\u52b9\u7387\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30ea\u30dc\u30f3\u306e\u4f5c\u6210\u306b\u306f\u3001XML\u3068VBA\u30b3\u30fc\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002\u30dc\u30bf\u30f3\u3084\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u306a\u3069\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u3001\u305d\u308c\u305e\u308c\u306b\u7279\u5b9a\u306e\u30de\u30af\u30ed\u3084\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u5206\u6790\u7528\u306e\u30ab\u30b9\u30bf\u30e0\u30bf\u30d6\u3092\u4f5c\u6210\u3057\u3001\u3088\u304f\u4f7f\u3046\u95a2\u6570\u3084\u30de\u30af\u30ed\u3078\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u64cd\u4f5c\u30921\u30af\u30ea\u30c3\u30af\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>3. \u5916\u90e8\u30c7\u30fc\u30bf\u3068\u306e\u9023\u643a<\/h3>\n<p>\u4e0a\u7d1a\u8005\u306f\u3001Excel\u3092\u4ed6\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5f37\u529b\u306a\u81ea\u52d5\u5316\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084Web\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>VBA\u3092\u4f7f\u7528\u3057\u3066\u3001API\u3084SQL\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u51e6\u7406\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001Power Query\u3084Power Pivot\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u30c7\u30fc\u30bf\u5206\u6790\u30c4\u30fc\u30eb\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3057\u3001\u30a4\u30f3\u30b5\u30a4\u30c8\u3092\u5c0e\u304d\u51fa\u3059\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Excel\u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3001\u65e5\u3005\u306e\u696d\u52d9\u3092\u5927\u5e45\u306b\u52b9\u7387\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u7d1a\u8005\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u6982\u5ff5\u3092\u7406\u89e3\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30ea\u30dc\u30f3\u306e\u4f5c\u6210\u3084\u5916\u90e8\u30c7\u30fc\u30bf\u3068\u306e\u9023\u643a\u3092\u901a\u3058\u3066\u3001Excel\u3092\u771f\u306b\u5f37\u529b\u306a\u30d3\u30b8\u30cd\u30b9\u30c4\u30fc\u30eb\u3078\u3068\u9032\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7d1a\u8005\u5411\u3051\uff1aExcel\u30de\u30af\u30ed\u3067\u696d\u52d9\u52b9\u7387\u5316\u3092\u5b9f\u73fe\u3059\u308b \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\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30bb\u30eb\u306b\u8868\u793a\u3067\u304d\u307e\u3059\uff1a #8220;`vba Sub SumSelectedCells()<\/p>\n","protected":false},"author":2,"featured_media":625,"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-626","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\/626","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=626"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/626\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/625"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}