1
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.

Query関数でクロス集計する表を作りたい

Posted at

やりたいこと

↓ 下記のような元データから

01.png

↓ こんなグラフを書きたいので

02.png

↓ グラフの元になるこんな表を作りたい

03.png

やったこと

04.png

上の黄色のセルに下記の式が入っています。

=Query(A:C,"select A, sum(C) where A is not null group by A pivot B")

そもそも「クロス集計」という言葉をちゃんと理解してなかったです。
やろうとしたことを調べていったらクロス集計っていうんだ、と。

参考サイト

Query関数を使ってデータを集計しよう
↑ここを読んで、Pivotでできることを知った。

単純集計とクロス集計
↑ ここでクロス集計を理解した。

1
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
1
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?