Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(==、>、<を使った比較演算子) Google Apps Scriptにおける、ifによる条件分岐に、==、>、<の比較演算子を組み合わせた例をご紹介します。 そのまえに今回使用する比較演算子についておさらいします。 ==は左辺と右辺が等しい... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(==、>=、<=を使った比較演算子) Google Apps Scriptにおける、ifによる条件分岐に、==、>=、<=の比較演算子を組み合わせた例をご紹介します。 その前に、今回使用する比較演算子についておさらいします。 ==は左辺と右辺が等... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(||(論理和)を使った論理演算子) Google Apps Scriptにおける、ifによる条件分岐に、||(論理和)の論理演算子を組み合わせた例をご紹介します。 その前に、今回使用する論理演算子についておさらいします。 ||(論理和)は、OR(AまたはB... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(&&(論理積)を使った論理演算子) Google Apps Scriptにおける、ifによる条件分岐に、&&(論理積)の論理演算子を組み合わせた例をご紹介します。 その前に、今回使用する論理演算子についておさらいします。 &&... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】値が入力されているセルの最終行、最終列の取得 スプレッドシート内における、最終行、最終列の数値を取得する方法についてご紹介します。 値が入力されているセルの最終行の数値を取得する スプレッドシート内で何らか値が入力されている最終行の数値を取得する場合、下記スクリプトを使用し... 2023.03.19Google Apps Script(GAS)プログラミング列、行(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】for文を使った繰り返し処理 Google Apps Scriptにおいて、指定した回数だけ繰り返し処理を実行したい場合、for文が頻繁に使われます。 for文は、以下のように書きます。 for (初期化式; 条件式; 増減式) { 処理内容 ... 2023.03.19Google Apps Script(GAS)プログラミング繰り返し処理(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】for文を使った繰り返し処理(最終行取得との組み合わせ) Google Apps Scriptにおける、for文による繰り返し処理と最終行取得を組み合わせた例についてご紹介します。 for文を使った繰り返し処理 下記の例ですが、まず変数last_rowに、アクティブシートの文字列が入力... 2023.03.19Google Apps Script(GAS)プログラミング列、行(Google Apps Script・GAS)繰り返し処理(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】for文を使った繰り返し処理(条件分岐、最終行取得との組み合わせ) Google Apps Scriptにおける、for文による繰り返し処理と、条件分岐や最終行取得を組み合わせた例についてご紹介します。 for文を使った繰り返し処理 下記のサンプル1ですが、まず変数last_rowに、アクティブ... 2023.03.19Google Apps Script(GAS)プログラミング列、行(Google Apps Script・GAS)条件分岐(Google Apps Script・GAS)繰り返し処理(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】スプレッドシートのセルに入力されている値を取得する(getValue、getValues) 今回はGoogle Apps Scriptにおける、スプレッドシートの単一セルに入力されている値の取得方法(getValue)と、セル範囲に入力されている値の取得方法(getValues)についてご紹介します。 単一セルに入力され... 2023.03.19Google Apps Script(GAS)セル操作(Google Apps Script・GAS)プログラミング文字列操作(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】現在日時を指定した表示形式に変換して取得 Google Apps Scriptにおける、現在日時の取得と表示形式の変換方法についてご紹介します。 現在日時の取得と、表示形式の変換方法 Google Apps Scriptにおいて、現在日時を取得するには下記スクリプトを使... 2023.03.19Google Apps Script(GAS)プログラミング日時(Google Apps Script・GAS)