Skip to content

Instantly share code, notes, and snippets.

@mabubu0203
Last active March 13, 2022 09:47
Show Gist options
  • Save mabubu0203/9778b92800db79f83aeba90b30be0f08 to your computer and use it in GitHub Desktop.
Save mabubu0203/9778b92800db79f83aeba90b30be0f08 to your computer and use it in GitHub Desktop.
Googleスプレッドシートの関数について

Google スプレッドシート

条件付き書式でがんばる

セルに特定の文字列がふくまれる場合、色を付ける

特定の文字列 = 特定のシートの特定の列 ex)特定のシート!A2:A5
設定する書式等
 データ範囲の選択:ex)[B2:B1000]
 書式ルール:カスタム数式 ex)[=$B2="未着手"],[=REGEXMATCH($B2,JOIN("|",IMPORTRANGE("スプレッドシートキー", "特定のシート!A2:A5"))=true]
 書式設定のスタイル:カラーを設定

セルの中に重複する文字が含まれる場合、色を付ける

設定する書式等
 データ範囲の選択:ex)[B2:B1000]
 書式ルール:カスタム数式 ex)[=LEN(TEXTJOIN(" , ",,UNIQUE(TRANSPOSE(SPLIT(B2," , ")))))=LEN(B2)]
 書式設定のスタイル:カラーを設定

列の中に重複する文字列が含まれる場合、色を付ける

設定する書式等
 データ範囲の選択:ex)[B2:B1000]
 書式ルール:カスタム数式 ex)[=COUNTIF(B:B,B:B)>1]
 書式設定のスタイル:カラーを設定

既存シートへの適用

「特殊貼り付け」>「条件付き書式のみを貼り付け」

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment