メインコンテンツへスキップ

Excelの条件付き書式で空白またはゼロのセルを無視するにはどうすればよいですか?

セルがゼロまたは空白のデータのリストがあり、このデータのリストを条件付きでフォーマットしたいが、空白またはゼロのセルを無視したい場合は、どうしますか? この記事では、Excelで空白またはゼロのセルを無視して条件付き書式を使用する方法を示します。

Excelの条件付き書式の空白セルを無視する
Excelの条件付き書式でゼロセルを無視する


Excelの条件付き書式の空白セルを無視する

データリストの条件付き書式ルールを作成した後、リスト内の空白セルを無視する新しいルールを追加する必要があります。

1.にとどまり続ける 条件付き書式ルールマネージャー ダイアログボックスをクリックし、 新しいルール ボタン。 スクリーンショットを参照してください:

Note:開くことができます 条件付き書式ルールマネージャー クリックしてダイアログボックス 条件付き書式 > ルールの管理ホーム タブには何も表示されないことに注意してください。

2.それからそれは入ります 新しい書式設定規則 ダイアログボックス。 以下のXNUMXつの方法で、条件付き書式の空白セルを無視できます。

方法1

  • a。 選択する を含むセルのみをフォーマットします セクションに ルールタイプを選択します ボックス;
  • b。 選択する ブランク セクションに セルのみをフォーマットする ドロップダウンリスト;
  • c。 フォーマットを選択せず​​に、 OK ボタン。 スクリーンショットを参照してください:

方法2

  • a。 の中に ルールタイプを選択します ボックス、選択 式を使用して、フォーマットするセルを決定する;
  • b。 数式をコピーして貼り付けます = ISBLANK(A2)= TRUEこの数式が真であるときの書式値 ボックス;
  • Note:ここで、数式のA2は、選択した範囲の最初のセルです。 たとえば、選択した範囲がB3:E12の場合、数式でA2をB3に変更する必要があります。
  • c。 クリック OK フォーマットを指定せずにボタン。

3.次に、に戻ります。 条件付き書式ルールマネージャー ダイアログボックス。 空白を無視するためにどの方法を使用する場合でも、チェックする必要があります Trueの場合は停止 このダイアログボックスのボックスをクリックし、 OK ボタン。 スクリーンショットを参照してください:

次に、選択したセルが空白を除いてフォーマットされます。


Excelの条件付き書式でゼロセルを無視する

B2:B12の範囲のデータのリストがあり、それらの中で最も低いXNUMXつの値をフォーマットしたいが、ゼロセルを無視したい場合は、次のようにしてください。

1.範囲B2:B12を選択し、をクリックします 条件付き書式 > 新しいルールホーム タブには何も表示されないことに注意してください。

2。 の中に 書式設定ルールの編集 ダイアログボックスでは、次のことを行う必要があります。

  • 1)。 の中に ルールタイプを選択します ボックス、選択 式を使用して、フォーマットするセルを決定する;
  • 2)。 数式をコピーして貼り付ける =AND(B2<>0,B2<=SMALL(IF(B$2:B$12<>0,$B$2:$B$12),5))この数式が真であるときの書式値 ボックス;
  • 3)。 クリック フォーマット セルのフォーマットを指定するボタン。
  • 4)。 形式を指定したら、をクリックします OK ボタン。 スクリーンショットを参照してください:

Note:ニーズに合わせて、数式のセル範囲を変更する必要があります。

その後、選択したリストの下位XNUMXつの値が、ゼロ値をフォーマットせずにすぐにフォーマットされていることがわかります。


関連記事:

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Literally none of this is working for me. I simply want to highlight anything 9 & below as green and anything 10 and above as red AND any cells that do not have a number stays empty/white. I have done every way of formatting and no matter what I do, all blank cells are green.

What's the deal?? I am using a VLOOKUP formula to locate the data, is that messing up the conditional formatting?
This comment was minimized by the moderator on the site
Hi Penny,

After adding you rules, create a new Formula rule and use this formula =ISBLANK(B2)=TRUE (B2 is the first cell of the selected range). When it returns to the Conditional Fprmatting Rules Manager, check the Stop if True box at the end of the ISBLANK rule, then click the OK button.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/ignore-blank.png
This comment was minimized by the moderator on the site
Thank you so much! This helped me solve a problem! :)
This comment was minimized by the moderator on the site
Please help with this problem. I am trying to apply conditional formatting for these cells
For example: E5 is Y(Y can only be selected within (C:E)) but I5 in (G:I) and M5 in (K:M) are blank then I5 M5 will be shaded as red using these 2 formulas
- IF(AND(C5="Y", ISBLANK(G5), ISBLANK(K5)),TRUE,FALSE).
OR
- AND(C8="Y",G8="",K8="")
These 2 formulas only shade the cells from the adjacent range. For the example above it only shades I5 but if I enter Y in H6, L6 will be shaded
This comment was minimized by the moderator on the site
just an FYI, if you don't click stop if true before clicking apply, the rule will not work. even if you go back and click stop if true, it won't work.
This comment was minimized by the moderator on the site
THANKS MATE, you save me.
This comment was minimized by the moderator on the site
Neat solution and the way to go if you're using the inbuilt options for your other conditional formatting or have multiple rules, but if you are using a formula to determine formatting you can ignore blanks with a single rule by encapsulating your formula within an IF statement: =IF([CellRef]="","",[Your Formula])
Also your approach stops all further formatting rules, but you might still want to conditionally format a blank cell, e.g. shade or fill it, based on the contents of another cell or other not directly related criteria (although in that case you could re-order the rules).
It's a shame that Microsoft don't just include an 'ignore blanks' tick box on a per rule basis...
This comment was minimized by the moderator on the site
Brilliant! I used this today on a large dataset. Very helpful!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations