GASで任意の月のイベント情報をスプレッドシートに書き出す方法についてお伝えしました。 今回は、出力したイベント情報をカテゴリごとに集計をしていきます。 ということで、カレンダーの記録にスプレッドシートのQUERY関数を使って業務別に工数計算をする方法です。 では、行ってみましょう! 前回のおさらい 前回のスクリプトがこちらです。 const CALENDAR_ID = '**********'; //カレンダーID function getCalendarEvents() { const sheet = SpreadsheetApp.getActiveSheet(); sheet.getRange(2, 1, sheet.getLastRow(), 6).clearContent(); const startTime = new Date(sheet.getRange('I2').get