<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Infoment</author_name>
  <author_url>https://blog.hatena.ne.jp/Infoment/</author_url>
  <blog_title>Infomentのブログ ～Excel VBA奮闘記～</blog_title>
  <blog_url>https://infoment.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
    <anon>作ってみた</anon>
    <anon>ユーザー定義関数</anon>
  </categories>
  <description>仕事で作成中のツールにて。 ある数値が100単位で、どの範囲にあるか知る必要がでてきた。具体的には、例えば以下のとおり。 数値：130 ⇒ 0100～0199 数値：351 ⇒ 0300～0399 要は、「351」（数値）という入力に対し、「0300～0399」（文字列）という戻り値を得る関数があれば良い訳で。そこで今回は、二通りの方法を考えてみた。 １．引いて引いて余りが０ とにかく、入力した値を１ずつ引いていく。で、100で割って余りが0なら、そこは100の倍数となり、つまり求める範囲の最小値になる。 Function GetNumberRange(val As Long) As Stri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2018%2F10%2F22%2F210345&quot; title=&quot;ある数値がどの範囲にあるかを知りたい - Infomentのブログ ～Excel VBA奮闘記～&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/I/Infoment/20181022/20181022205754.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-22 21:03:45</published>
  <title>ある数値がどの範囲にあるかを知りたい</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2018/10/22/210345</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
