<?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>
  </categories>
  <description>今日は職場で、小計と合計を求める、とても便利な方法を教わった。 割とよく、こんな表を見かける。 小計と合計に設定された数式を見てみると、こんな感じだ。 「合計」の部分は、小計を一つずつ選択しながら足している。二つぐらいなら我慢できるが、５つも６つも登場すると辟易してしまう。本当は、上から下までズババンと範囲指定して足し算できれば簡単だ。 しかし「小計」の部分まで足し算されて、合計金額が倍になるため、そのままではＮＧだ。そして今日、上記問題の解決策として、このSUM関数をSUBTOTAL関数に置き換える方法を教わった。 SUBTOTAL関数の一つ目の引数は、集計方法を表している。今回は足し算なの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2020%2F06%2F18%2F223347&quot; title=&quot;小計と合計（SUBTOTAL関数） - 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/20200618/20200618221306.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-18 22:33:47</published>
  <title>小計と合計（SUBTOTAL関数）</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2020/06/18/223347</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
