{"version":"1.0","url":"https://sunday-programming.hatenablog.com/entry/2013/04/05/003106","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsunday-programming.hatenablog.com%2Fentry%2F2013%2F04%2F05%2F003106\" title=\" Excel \u5217\u540d\u3078\u306e\u5909\u63db - \u65e5\u66dc\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"shinmuro","image_url":null,"blog_url":"https://sunday-programming.hatenablog.com/","provider_url":"https://hatena.blog","blog_title":"\u65e5\u66dc\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","categories":["Clojure"],"type":"rich","title":" Excel \u5217\u540d\u3078\u306e\u5909\u63db","provider_name":"Hatena Blog","description":"\u30b0\u30b0\u308b\u3068\u5272\u3068\u5df7\u306b\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb\u304c\u898b\u3064\u304b\u308b\u3082\u306e\u306e Clojure \u306f\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u4f5c\u3063\u3066\u307f\u305f\u3002 (defn num->col-name [n] \"1\u4ee5\u4e0a\u306e\u6570\u5024\u304b\u3089Excel\u306e\u5217\u540d\u8868\u8a18\u306b\u5909\u63db\u3059\u308b\" (letfn [(charseq [x] (when (pos? x) (cons (mod (dec x) 26) (charseq (quot (dec x) 26)))))] (->> (charseq n) (map (comp char (partial + 65))) reverse (apply str)))) \u3053\u3093\u306a\u611f\u3058\u3002 user> (num->col-name 0) \"\" us\u2026","height":"190","author_url":"https://blog.hatena.ne.jp/shinmuro/","published":"2013-04-05 00:31:06","width":"100%"}