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

Excelで奇数または偶数を強調表示する方法は?

Excelで、すべての奇数値をXNUMXつの色で強調表示し、すべての偶数を別の色で塗りつぶして、次のスクリーンショットのように区別する場合。 このタスクをすばやく簡単に解決するにはどうすればよいですか?

ドキュメント-ハイライト-オッズ1

条件付き書式で奇数または偶数を強調表示する


矢印青い右バブル 条件付き書式で奇数または偶数を強調表示する

条件付き書式は便利な機能であり、ワークシートの奇数または偶数をすばやく強調表示するのに役立ちます。 次の手順で実行してください。

1。 データ値を含むセルを選択します。

2. 次に、をクリックします。 ホーム > 条件付き書式 > 新しいルール、スクリーンショットを参照してください:

ドキュメント-ハイライト-オッズ1

3。 の中に 新しい書式設定規則 ダイアログボックスで 式を使用して、フォーマットするセルを決定する オプションをクリックし、この式を入力します = MOD(A1,2)= 1 or = ISODD(A1) (A1 選択した範囲の最初のセルを示します。必要に応じて変更できます) この数式が真であるときの書式値 テキストボックス。 スクリーンショットを参照してください:

ドキュメント-ハイライト-オッズ1

4。 次に、をクリックします フォーマット ボタンを押して セルの書式設定 ダイアログボックス、ポップアウトされたダイアログで、をクリックします 埋める タブをクリックし、好きな色をXNUMXつ選択します。

ドキュメント-ハイライト-オッズ1

5。 XNUMXつの色を選択したら、をクリックします OK > OK ダイアログを閉じるには、すべての奇数が強調表示されています。

ドキュメント-ハイライト-オッズ1

注意:

1.すべての偶数を別の色で強調表示する場合は、上記の手順を繰り返して、この式を適用できます。 = MOD(A1,2)= 0 or = ISEVEN(A1) (A1 手順3で、選択した範囲の最初のセルを示します。必要に応じて変更できます)。

2.条件付き書式設定ツールは動的な機能です。奇数の値を偶数の値に変更すると、色も調整されます。


関連記事:

Excelで奇数/偶数または行をカウント/合計する方法は?

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

🤖 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Supondo que você quer destacar todos os números pares da coluna "E" (que vai de E3 até E372), fórmula:
NOVA REGRA=MOD(E3;2)=0
APLICAÇÃO=$E$3:$E$372
=========================
Supondo que você quer destacar todos os números ímpares da coluna "E" (que vai de E3 até E372), fórmula:
NOVA REGRA=MOD(E3;2)=1
APLICAÇÃO=$E$3:$E$372
This comment was minimized by the moderator on the site
If it doesn't work for you, check these things:1. That you entered the name of the first cell in your list, not A12. That you selected a color to highlight the cell in the formatting options
I skimmed the article and screwed it up...
This comment was minimized by the moderator on the site
i love you! Works like a charm!
This comment was minimized by the moderator on the site
Pra quem não conseguiu, sigam todos os passos, porém modifiquem a fórmula para =mod(A1;2). Aquele "=0" no final é desnecessário. Mudem o "A1" conforme a célula que pretendem usar como referência. For those who, like me, couldn't make this work: follow all the steps but change the formula to "=mod(A1;2)". The "=0" in the end is unnecessary. Also, change the value "A1" according to the cell you would like to use as pattern.
This comment was minimized by the moderator on the site
It works! I thought about the conditional formatting I just didn't know which formula to use. Now I can use this method to add even/odd numbers by using a filter instead of using a complicated formula...e-z bree-z. Thank you!
This comment was minimized by the moderator on the site
I've tried this with both the 'isodd' function and the 'mod(xx,2)=1' but neither works. I get no errors. When I put the isodd/mod in a cell and then use that cell in the conditional format it works as expected. I'm using Excel 2016. Thanks!
This comment was minimized by the moderator on the site
This did not work. It highlights random cells but not all the odd ones.
This comment was minimized by the moderator on the site
when selecting the headers this problem occurs, select only cells that contain numbers
This comment was minimized by the moderator on the site
I've been struggling with this for the past hour, this commend saved me, thx!!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations