> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/smartsheet/basics/formatting/conditional-formatting.md).

# 条件付き書式ルールを使用して自動書式を適用する

条件付き書式設定を使用すると、行やセルに含まれる値に基づいて行やセルの外観を変更できます。例えば、期限を過ぎたタスクを赤色で表示するように設定できます。

### プラン <a href="#iob7wb2migjc" id="iob7wb2migjc"></a>

* Smartsheet
* Pro
* Business
* Enterprise

プランタイプと含まれる機能の詳細については、[「Smartsheetプラン」](https://www.smartsheet.com/pricing)ページを参照してください。

### 必要な権限 <a href="#id-87w4p6wx585m" id="id-87w4p6wx585m"></a>

シートに対する所有者または管理者アクセス権を持つライセンスを付与されたユーザーは、条件付き書式ルールを作成または変更できます。

この機能が[Smartsheetリージョン](https://help.smartsheet.com/regions-capability-differences)または[Smartsheet Gov](https://help.smartsheet.com/articles/2480681-gov-capabilities)に含まれているかどうかを確認してください。

条件付き書式ではセルの値は変更されません。条件に基づいてセルの値を変更するために、[数式](https://help.smartsheet.com/articles/2476171)を使用します。

注

リンクされたセルの条件付き書式は、宛先シートには保持されません。

条件付き書式を適用するには、次の３つの手順があります。

1. ルールの条件を設定します。
2. 条件を満たした場合に適用される形式を定義します。
3. フォーマットを適用する場所を設定します。

### **ルールの条件を設定する** <a href="#id-1fob9te" id="id-1fob9te"></a>

条件によって、書式変更のトリガーとなるものが決まります。

1. 上部のツールバーで、「条件付き書式設定」![Conditional formatting icon](/files/bevYpsgCVNdWcUhAlfQW)を選択します。
2. 「新しいルールの追加」を選択します。
3. ＜条件設定＞を選択します。

**条件設定に関する注意事項**

* 使用可能な基準は列のタイプによって異なります。
  * チェックボックス列の場合：基準は「チェックあり」または「チェックなし」になります。
  * 日付列の場合：過去または今後\[x]日間の場合があります。
* Smartsheet用に書式設定された列内の数値を０から１までの値として調べます。正確な比較を行うには10進数値を使用します。例えば25％の場合は0.25、50％の場合は0.5です。
* ルールをさらにカスタマイズするには、条件ボックスの上部にあるカスタム条件の定義を選択します。
* 条件を満たさない行をフォーマットするには、「条件が満たされない場合にフォーマットを適用」を選択します。<br>

### **フォーマットを定義する** <a href="#id-2et92p0" id="id-2et92p0"></a>

行が定義した条件を満たした場合に表示するテキスト形式を設定します。

1. \[条件付き書式設定]ダイアログで、この形式を選択します。
2. ポップアップボックスを使用して書式設定をスタイル設定します。
   * フォント：フォントのスタイルを選択します。
   * フォントサイズ：テキストのサイズを設定します。
   * タスクバー：ガントチャートがある場合は、これを使用して、行が指定した条件を満たしたときにタスク バーの色を自動的に変更します。
   * その他の書式設定ボタン：表示するテキストの書式を設定します。テキストの太字、斜体、下線、取り消し線を選択したり、テキストや背景の色を変更したりできます。<br>

### **フォーマットを適用する場所を設定します** <a href="#tyjcwt" id="tyjcwt"></a>

デフォルトでは、形式は行全体に適用されます。これを変更するには、次の手順に従います。

1. 行全体を選択します。
2. 数式を適用する列を選択します。

注

複数のルールの条件と形式が同じ場合、Smartsheetはそれらを１つのルールに統合します。

1. 「OK」を選択します。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://manual.dxable.com/smartsheet/basics/formatting/conditional-formatting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
