{"id":589,"date":"2025-03-16T00:33:35","date_gmt":"2025-03-15T15:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/03\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%92%e5%8a%87%e7%9a%84%e3%81%ab%e4%b8%8a%e3%81%92%e3%82%8b5%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6\/"},"modified":"2025-03-16T00:33:35","modified_gmt":"2025-03-15T15:33:35","slug":"excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%92%e5%8a%87%e7%9a%84%e3%81%ab%e4%b8%8a%e3%81%92%e3%82%8b5%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/03\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%92%e5%8a%87%e7%9a%84%e3%81%ab%e4%b8%8a%e3%81%92%e3%82%8b5%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6\/","title":{"rendered":"Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff01\u696d\u52d9\u52b9\u7387\u3092\u5287\u7684\u306b\u4e0a\u3052\u308b5\u3064\u306e\u9ad8\u5ea6\u30c6\u30af\u30cb\u30c3\u30af\u3068\u30de\u30af\u30ed\u6d3b\u7528\u6cd5"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9<\/h2>\n<p>\u307e\u305a\u306f\u3001Excel\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3082\u3063\u3068\u697d\u3092\u3057\u305f\u3044\u3001\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u3044\u4e0a\u7d1a\u8005\u306e\u65b9\u306b\u5411\u3051\u3066\u3001\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub \u81ea\u52d5\u30c7\u30fc\u30bf\u6574\u7406()<br \/>\n    Dim ws As Worksheet<br \/>\n    Set ws = ActiveSheet<\/p>\n<p>    &#8216; \u30c7\u30fc\u30bf\u306e\u4e26\u3079\u66ff\u3048<br \/>\n    ws.Sort.SortFields.Clear<br \/>\n    ws.Sort.SortFields.Add Key:=Range(&#8220;A1&#8221;), SortOn:=xlSortOnValues, Order:=xlAscending<br \/>\n    ws.Sort.SetRange Range(&#8220;A1:D&#8221; &#038; ws.Cells(ws.Rows.Count, &#8220;A&#8221;).End(xlUp).Row)<br \/>\n    ws.Sort.Header = xlYes<br \/>\n    ws.Sort.Apply<\/p>\n<p>    &#8216; \u91cd\u8907\u30c7\u30fc\u30bf\u306e\u524a\u9664<br \/>\n    ws.Range(&#8220;A1:D&#8221; &#038; ws.Cells(ws.Rows.Count, &#8220;A&#8221;).End(xlUp).Row).RemoveDuplicates Columns:=Array(1, 2, 3, 4), Header:=xlYes<\/p>\n<p>    &#8216; \u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u306e\u9069\u7528<br \/>\n    ws.Range(&#8220;A1:D&#8221; &#038; ws.Cells(ws.Rows.Count, &#8220;A&#8221;).End(xlUp).Row).FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, Formula1:=&#8221;=AVERAGE(D:D)&#8221;<br \/>\n    ws.Range(&#8220;A1:D&#8221; &#038; ws.Cells(ws.Rows.Count, &#8220;A&#8221;).End(xlUp).Row).FormatConditions(1).Interior.Color = RGB(255, 255, 0)<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u30c7\u30fc\u30bf\u306e\u4e26\u3079\u66ff\u3048\u3001\u91cd\u8907\u524a\u9664\u3001\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u306e\u9069\u7528\u3092\u81ea\u52d5\u3067\u884c\u3044\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u4f5c\u696d\u3092\u4e00\u77ac\u3067\u5b8c\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Excel\u4e0a\u7d1a\u8005\u304c\u7fd2\u5f97\u3059\u3079\u304d\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u69cb\u7bc9\uff1a3\u3064\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<h3>1. \u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u306e\u57fa\u672c\u8a2d\u8a08<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u304c\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3059\u308b\u969b\u3001\u307e\u305a\u91cd\u8981\u306a\u306e\u306f\u57fa\u672c\u8a2d\u8a08\u3067\u3059\u3002\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u306e\u76ee\u7684\u3092\u660e\u78ba\u306b\u3057\u3001\u3069\u306e\u3088\u3046\u306a\u7a2e\u985e\u306e\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u5316\u3059\u308b\u304b\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u5165\u529b\u306e\u691c\u8a3c\u3001\u8a08\u7b97\u7d50\u679c\u306e\u78ba\u8a8d\u3001\u30ec\u30dd\u30fc\u30c8\u751f\u6210\u306e\u6b63\u78ba\u6027\u30c1\u30a7\u30c3\u30af\u306a\u3069\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u8a18\u8ff0\u3057\u3001\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u69cb\u9020\u3092\u8a2d\u8a08\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u3001\u30c6\u30b9\u30c8\u5b9f\u884c\u3001\u7d50\u679c\u306e\u691c\u8a3c\u3001\u30ec\u30dd\u30fc\u30c8\u751f\u6210\u306a\u3069\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<h3>2. \u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3068\u30ea\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3<\/h3>\n<p>\u52b9\u7387\u7684\u306a\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3059\u308b\u306b\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3068\u30ea\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3\u3092\u91cd\u8996\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u5171\u901a\u306e\u6a5f\u80fd\u3084\u51e6\u7406\u3092\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u3084\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5207\u308a\u51fa\u3057\u3001\u8907\u6570\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3067\u518d\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u3001\u7279\u5b9a\u306e\u8a08\u7b97\u51e6\u7406\u3001\u7d50\u679c\u306e\u691c\u8a3c\u306a\u3069\u306e\u5171\u901a\u6a5f\u80fd\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u65b0\u3057\u3044\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u8ffd\u52a0\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3082\u5411\u4e0a\u3057\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u969b\u3082\u3001\u3053\u306e\u3088\u3046\u306a\u8a2d\u8a08\u601d\u60f3\u3092\u53d6\u308a\u5165\u308c\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u3067\u62e1\u5f35\u6027\u306e\u9ad8\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3068\u30ed\u30b0\u6a5f\u80fd\u306e\u5b9f\u88c5<\/h3>\n<p>\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u308b\u306b\u306f\u3001\u9069\u5207\u306a\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3068\u30ed\u30b0\u6a5f\u80fd\u306e\u5b9f\u88c5\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u4e88\u671f\u305b\u306c\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u9014\u4e2d\u3067\u505c\u6b62\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u8a18\u9332\u3057\u3001\u53ef\u80fd\u306a\u9650\u308a\u51e6\u7406\u3092\u7d99\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3067\u306f\u3001On Error GoTo \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u72b6\u6cc1\u3084\u7d50\u679c\u3092\u8a73\u7d30\u306b\u8a18\u9332\u3059\u308b\u30ed\u30b0\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u554f\u984c\u306e\u539f\u56e0\u7279\u5b9a\u3084\u6539\u5584\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e3\u3064\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u308b\u3053\u3068\u3067\u3001Excel\u4e0a\u7d1a\u8005\u306f\u52b9\u679c\u7684\u306a\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c6\u30b9\u30c8\u4f5c\u696d\u306e\u52b9\u7387\u5316\u3068\u54c1\u8cea\u5411\u4e0a\u3092\u5b9f\u73fe\u3057\u3001\u3088\u308a\u9ad8\u5ea6\u306aExcel\u306e\u6d3b\u7528\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u306e\u529b\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3057\u3001\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u306e\u6539\u5584\u3084\u610f\u601d\u6c7a\u5b9a\u306e\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u306b\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9 \u307e\u305a\u306f\u3001Excel\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3082\u3063\u3068\u697d\u3092\u3057\u305f\u3044\u3001\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u3044\u4e0a\u7d1a\u8005\u306e\u65b9\u306b\u5411\u3051\u3066\u3001\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 #8220;`vba Sub \u81ea\u52d5<\/p>\n","protected":false},"author":2,"featured_media":588,"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-589","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\/589","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=589"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/589\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/588"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}