- 公開日:
スプレッドシートの条件付き書式で列全体を塗りつぶす方法
Google スプレッドシートでは条件付き書式を用いることで、特定のセルが条件を満たした時に、列全体の色が変わり、一目でシートの状態が分かるような設定を行うことができます。
この記事では、スプレッドシートの条件付き書式で列全体を塗りつぶすことに焦点を当て、分かりやすく紹介します。
スプレッドシートの条件付き書式で列全体を塗りつぶす方法
Google スプレッドシートでは条件付き書式を用いて、列全体を一括で塗りつぶす際、「カスタム数式」を設定して列全体の色を塗りつぶすことはできません。
列全体に対して条件を設定しても、列上にあるセルと隣り合うセル(同行のセル)の条件を対象としてしまうためです。
「カスタム数式」以外の条件においては、列全体を塗りつぶすことは可能です。
空白のセルを条件とする場合
列全体のセルが空白である場合に、塗りつぶす方法は以下の通りです。
![逆三角形をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets1.png)
設定する列にある逆三角形をクリックします。
![条件付き書式をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets2.png)
「条件付き書式」を選択します。
![セルの書式設定の条件をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets3.png)
「セルの書式設定の条件」をクリックします。
![空白をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets4.png)
「空白」を選択します。
![塗りつぶしをクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets5.png)
「塗りつぶし」をクリックします。
![色を選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets6.png)
塗りつぶされる色(例:黄)を選択します。
![完了をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets7.png)
「完了」ボタンをクリックします。
![列全体塗りつぶし完了](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets8.png)
条件付き書式設定ルールが追加され、列全体が塗りつぶされました。
次を含むテキストを条件とする場合
![条件を追加をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets9.png)
「条件を追加」をクリックします。
![データ範囲を選択をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets11.png)
「データ範囲を選択」をクリックします。
![データ範囲の選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets12.png)
「データ範囲の選択」が表示されます。
①塗りつぶしたい列をクリックし、②「OK」ボタンをクリックします。
ここでは、B列を選択したので、B:Bと自動的に入力されました。
![セルの書式設定の条件…をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets13.png)
「セルの書式設定の条件…」をクリックします。
![次を含むテキストをクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets14.png)
「次を含むテキスト」を選択します。
![値または数式をクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets15.png)
「値または数式」をクリックします。
![文字列を入力](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets16.png)
条件としたい文字列(例:あいう)を入力します。
![色を選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets18.png)
「塗りつぶし」で塗りつぶされる色(例:赤)を選択します。
![完了ボタンをクリック](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets17.png)
「完了」ボタンをクリックします。
![セルを選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets19.png)
条件付き書式設定ルールが追加されました。
条件とした列のセルを選択します。
![文字列を入力](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets20.png)
条件を含んだ文字列(例:あいうえお)を入力します。
![入力したセルを選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets21.png)
入力したセルを選択します。
![Ctrl+Shift+↓](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets22.png)
Ctrl+Shift+↓を押します。列の最後のセルまで選択します。
![Ctrl+D](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets23.png)
Ctrl+Dを押します。
![列全体が塗りつぶしされた](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets24.png)
列全体にテキストが入力され、塗りつぶすことができました。
次より小さいを条件とする場合
![次より小さいを選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets25.png)
「データ範囲の選択」でC列を選択し、「セルの書式設定の条件…」で「次より小さい」を選択します。
![数値を入力](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets27.png)
「値または数式」に条件としたい数値(例:9999)を入力します。
![色を選択](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets26.png)
塗りつぶされる色(例:緑)を選択します。
![数値を入力](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets28.png)
条件付き書式のルールを追加できたら、条件に当てはまる数値(例:10)を入力します。
![塗りつぶしされた](https://g-tips.jp/wp-content/uploads/how-to-fill-entire-column-with-conditional-formatting-in-spreadsheets29.png)
上記「次を含むテキストを条件とする場合」と同様にセルをコピーします。
列全体に数値が入力され、塗りつぶすことができました。
スプレッドシートの条件付き書式で色がつかない場合
Google スプレッドシートで上記のような操作をしても色がつかない場合、様々な事が要因として考えられます。
以下の記事にて、スプレッドシートの条件付き書式で色がつかない場合の対処法を詳しく紹介しています。