<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ycloud</author_name>
  <author_url>https://blog.hatena.ne.jp/ycloud/</author_url>
  <blog_title>shikumika’s diary</blog_title>
  <blog_url>https://shikumika.org/</blog_url>
  <categories>
    <anon>PowerQuery</anon>
  </categories>
  <description>Excelで日付文字列に和暦の「元年」があるとき、DATEVALUE関数ではシリアル値には変換できない（反対に、西暦から和暦の「元年」への表示は可能だが）。 そのため「検索と置換」の機能で”元年”を”1年”に一括置換をしたり、SUBSTITUTE関数で置換したりで対応することになります。 例：DATEVALUE関数とSUBSTITUTE関数の組み合わせ （セルのA2に日付文字列が入っている事例） =DATEVALUE(SUBSTITUTE(A2,&quot;元年&quot;,&quot;1年&quot;)) Power Query（Excelの標準機能）も同様に、次のとおり和暦の「元年」があると、シリアル値に変換できないようなので、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2F2023%2F05%2F28%2F180000&quot; title=&quot;【Power Query】Excelの日付文字列にある「元年」を「1年」に置換 - shikumika’s diary&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/y/ycloud/20230528/20230528061038.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-28 18:00:00</published>
  <title>【Power Query】Excelの日付文字列にある「元年」を「1年」に置換</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/2023/05/28/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
