<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>豆知識</anon>
  </categories>
  <description>またまた Excel ネタです。 ある日付が月の第何曜日になるのかと第何週になるのかというのを求めるための方法です。 求めたいのは下記のような感じです。 まず、月の第何曜日になるのかは下記の式で求められます。(上記図のC列) =ROUNDUP(DAY(A3)/7,0) これは簡単ですね。ただ単に日付を7で割って切上げすればいいだけです。 そして、月の第何週に属するのかは下記の式で求められます。(上記図のD列) =ROUNDUP((DAY(A3)+7-WEEKDAY(A3,2))/7,0) こっちはちょっとややこしいです。 まず、この場合週の開始を日曜始まりか、月曜始まりかを決めないといけません…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2009%2F07%2F20%2F225600&quot; title=&quot;(Excel)任意の日付が月の第何曜日かと、第何週にいるのかを求める - 3流プログラマのメモ書き&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/d/deloreanmc12/20180220/20180220092329.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-07-20 22:56:00</published>
  <title>(Excel)任意の日付が月の第何曜日かと、第何週にいるのかを求める</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2009/07/20/225600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
