{"id":1065,"date":"2013-07-26T16:00:00","date_gmt":"2013-07-26T07:00:00","guid":{"rendered":"http:\/\/blog.kcmservice.biz\/?p=1065"},"modified":"2013-10-23T14:37:15","modified_gmt":"2013-10-23T05:37:15","slug":"%e8%a1%8c%e3%81%a8%e5%88%97%e7%95%aa%e5%8f%b7%e3%81%8b%e3%82%89%e3%80%81excel%e8%a1%8c%e5%88%97%e8%a1%a8%e7%a4%ba%e3%81%ae%e5%bd%a2%e5%bc%8f%ef%bc%88a1%ef%bc%89%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99","status":"publish","type":"post","link":"https:\/\/blog.kcmservice.biz\/?p=1065","title":{"rendered":"\u884c\u3068\u5217\u756a\u53f7\u304b\u3089\u3001Excel\u884c\u5217\u8868\u793a\u306e\u5f62\u5f0f\uff08A1\uff09\u306b\u5909\u63db\u3059\u308b\u51e6\u7406"},"content":{"rendered":"<p>\u3044\u3064\u3082\u982d\u306e\u4e2d\u304c\u3054\u3063\u3061\u3083\u306b\u306a\u308b\u306e\u3067\u30e1\u30e2\u304c\u3066\u3089\u3002<\/p>\n<p>phpexcel\u3084VBA\u306a\u3069\u3067\uff11\u884c\u305a\u3064\u51e6\u7406\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3068\u304d\u3001\u884c\u756a\u53f7\u3001\u5217\u756a\u53f7\u3092A1\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u8868\u305b\u305f\u3089\u4fbf\u5229\u3060\u306a\u30fc\u3068\u3044\u3046\u3068\u304d\u304c\u305f\u307e\u30fc\u306b\u3042\u308b\u3002<br \/>\n\u203bVBA\u306e\u5834\u5408\u306fcell\u3068range\u3092\u4f7f\u3044\u5206\u3051\u308c\u3070\u3044\u3044\u3060\u3051\u3060\u3051\u3069\u3002<\/p>\n<p><!--more--><\/p>\n<p>Excel\u306e\u5217\u756a\u53f7\u306fA\uff5eZ\u3001AA\uff5eAZ\u3001BA\uff5e\u30fb\u30fb\u30fbZZ\u3001AAA\uff5eAAZ\u3001\u3068\u3044\u3046\u98a8\u306b\u3001\uff12\uff16\u9032\u6570\u3067\u8868\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\uff11\u756a\u76ee\uff1dA\u3001\uff12\uff16\uff08\uff10\uff0b\uff12\uff16\uff09\u756a\u76ee\uff1dZ\u3001\uff12\uff17\uff08\uff12\uff16\uff0b\uff11\uff09\u756a\u76ee\uff1dAA\u3001\u30fb\u30fb\u30fb\uff17\uff10\uff12\uff08\uff12\uff16\uff0a\uff12\uff16\uff0b\uff12\uff16\uff09\u756a\u76ee\uff1dZZ\u3001\uff17\uff10\uff13\uff08\uff12\uff16\uff0a\uff12\uff16\uff0a\uff12\uff16\uff0b\uff11\uff09\u756a\u76ee\uff1dAAA<\/p>\n<p>\u3053\u308c\u3092\u30d5\u30ed\u30fc\u306b\u3059\u308b\u3068\u3001\u3053\u3046\u306a\u308b\u3002\uff4e\u306f\u5217\u756a\u53f7\u3002<\/p>\n<p>\uff1c\u30eb\u30fc\u30d7\u3000\uff4e\uff1d\uff10\u306b\u306a\u308b\u307e\u3067\uff1e<br \/>\n\u2193<br \/>\n\uff08\uff4e\uff0d\uff11\uff09\u00f7\uff12\uff16\u306e\u3042\u307e\u308a\u30fb\u30fb\u30fb\uff10\uff1d\uff21\u3001\uff11\uff1d\uff22\u3001\u30fb\u30fb\u30fb\uff12\uff15\uff1d\uff3a\u3000\u3092\u51fa\u529b<br \/>\n\u2193<br \/>\n\uff08\uff4e\uff0d\uff11\uff09\u00f7\uff12\uff16\u306e\u5546\u30fb\u30fb\u30fb\uff4e\u306b\u4ee3\u5165<br \/>\n\u2193<br \/>\n\uff1c\u30eb\u30fc\u30d7\u7d42\u4e86\uff1e<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u304b\u3002\u3053\u308c\u3092\u30ed\u30b8\u30c3\u30af\u306b\u3059\u308b\u3068\u3001\u3053\u3046\u306a\u308b\u3002<br \/>\n\u4eca\u56de\u306f\uff30\uff28\uff30\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u306e\u3067\u3001\uff30\uff28\uff30\u3067\u3002<\/p>\n<p>[php]&lt;?php<br \/>\nfunction getExcelAddress($row,$col) {<br \/>\n\t$sinsu = 26;<br \/>\n\t$col_val=&quot;&quot;;<br \/>\n\twhile($col&gt;0) {<br \/>\n\t\t$intval = (($col-1) % $sinsu);<br \/>\n\t\t$col_val=chr($intval+65).$col_val;<br \/>\n\t\t$col=intval(($col-1) \/ $sinsu);<br \/>\n\t}<br \/>\n\treturn $col_val.$row;<br \/>\n}<br \/>\n\techo getExcelAddress(1,26);  \/\/ Z1<br \/>\n\techo getExcelAddress(1,27);  \/\/ AA1<br \/>\n\techo getExcelAddress(1,702); \/\/ ZZ1<br \/>\n\techo getExcelAddress(1,703); \/\/ AAA1<br \/>\n?&gt;[\/php]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u3064\u3082\u982d\u306e\u4e2d\u304c\u3054\u3063\u3061\u3083\u306b\u306a\u308b\u306e\u3067\u30e1\u30e2\u304c\u3066\u3089\u3002 phpexcel\u3084VBA\u306a\u3069\u3067\uff11\u884c\u305a\u3064\u51e6\u7406\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3068\u304d\u3001\u884c\u756a\u53f7\u3001\u5217\u756a\u53f7\u3092A1\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u8868\u305b\u305f\u3089\u4fbf\u5229\u3060\u306a\u30fc\u3068\u3044\u3046\u3068\u304d\u304c\u305f\u307e\u30fc\u306b\u3042\u308b\u3002 \u203bVBA\u306e\u5834\u5408\u306fcell\u3068&nbsp;&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1065","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts\/1065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1065"}],"version-history":[{"count":8,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts\/1065\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts\/1065\/revisions\/1067"}],"wp:attachment":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}