0
0

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.

GoogleAppsScriptの挙動・動作

0
Posted at

GoogleAppsScriptを起動時/編集時に動かす

onEdit(e)

Event Objects  |  Apps Script  |  Google Developers

let value = e.source.getActiveSheet().getRange("A1").getValue();

source使うことも多くなりそうだなと。
SpreadSheetオブジェクトが返ってくるので色々できそう。

複数列にまたがるデータ一覧から検索条件に一致する値を取り出す方法 - Qiita

複数行データから見出しを検索する必要があったので非常に参考になりました。
SUMPRODUCT関数のこういう使い方があることを初めて知りました。
数学の配列の授業まともに受けとけば良かったとしみじみ。

Googleスプレッドシート初心者脱出!SUMPRODUCT関数を使ってみよう | SiTest (サイテスト) ブログ

COUNTIF関数で日付比較するとき

=COUNTIF(A1:A10, "<=2013/9/1")

yyyy/m/dを文字列として比較しちゃって良いみたい。
COUNTIF関数で特定の日付の以前・以降をカウントするには:Excel(エクセル)の関数・数式の使い方/統計

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?