2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

エクセルで小計の計算をする関数式.markdown

Posted at

エクセルで小計の計算をする関数式

スクリーンショット 2016-02-03 12.44.43.png

上記のようなエクセルで、
各カテゴリごとの小計を計算したい場合

=IF($A3<>"",SUM(INDIRECT("C"&MATCH("*",$A$1:$A2,-1)&":C"&ROW())),"")

をD2列に記載し、縦にオートフィルをすればok

注意

最後のセルであることの判定をするために、
A列の最後に適当な文字を入れている。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?