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

Excelのセル値に基づいて背景色またはフォントの色を変更するにはどうすればよいですか?

Excelで膨大なデータを処理する場合、値を選択して、特定の背景色またはフォント色で強調表示することをお勧めします。 この記事では、Excelのセル値に基づいて背景色またはフォントの色をすばやく変更する方法について説明します。


方法1:条件付き書式を使用してセル値に基づいて背景色またはフォントの色を動的に変更する

 

  条件付き書式 機能は、xより大きい、yより小さい、またはxとyの間の値を強調表示するのに役立ちます。

データの範囲があり、80〜100の値に色を付ける必要がある場合は、次の手順を実行してください。

1。 特定のセルを強調表示するセルの範囲を選択し、[ ホーム > 条件付き書式 > 新しいルール、スクリーンショットを参照してください:

値1によるドキュメントの強調表示

2。 の中に 新しい書式設定規則 ダイアログボックスで を含むセルのみをフォーマットします の項目 ルールタイプを選択します ボックス、および セルのみをフォーマットする セクションで、必要な条件を指定します。

  • 最初のドロップダウンボックスで、 セル値;
  • XNUMX番目のドロップダウンボックスで、基準を選択します。の間に;
  • 80番目と100番目のボックスに、XNUMX、XNUMXなどのフィルター条件を入力します。

値2によるドキュメントの強調表示

3。 次に、をクリックします。 フォーマット ボタン、で セルの書式設定 ダイアログボックスで、背景色またはフォントの色を次のように設定します。

セル値で背景色を変更します。 セル値でフォントの色を変更する
埋める タブをクリックし、好きな背景色をXNUMXつ選択します フォント タブをクリックし、必要なフォントの色を選択します。
値3によるドキュメントの強調表示 値4によるドキュメントの強調表示

4. 背景色またはフォントの色を選択したら、 OK > OK ダイアログを閉じると、値が80〜100の特定のセルが、選択範囲内の特定の背景色またはフォント色に変更されます。 スクリーンショットを参照してください:

背景色で特定のセルを強調表示します。 フォントの色で特定のセルを強調表示します。
値5によるドキュメントの強調表示 値6によるドキュメントの強調表示

Note条件付き書式 は動的な機能であり、データの変更に応じてセルの色が変更されます。


方法2:検索機能を使用してセル値に基づいて背景色またはフォントの色を静的に変更する

 

場合によっては、セルの値に基づいて特定の塗りつぶしまたはフォントの色を適用し、セルの値が変更されても塗りつぶしまたはフォントの色が変更されないようにする必要があります。 この場合、あなたは使用することができます もう完成させ、ワークスペースに掲示しましたか? すべての特定のセル値を検索し、必要に応じて背景またはフォントの色を変更する関数。

たとえば、セルの値に「Excel」テキストが含まれている場合に背景色またはフォントの色を変更する場合は、次のようにします。

1。 使用するデータ範囲を選択し、をクリックします ホーム > 検索と選択 > もう完成させ、ワークスペースに掲示しましたか?、スクリーンショットを参照してください:

値7によるドキュメントの強調表示

2。 の中に 検索および置換 ダイアログボックス、下 もう完成させ、ワークスペースに掲示しましたか? タブで、検索する値をに入力します 見つける テキストボックス、スクリーンショットを参照:

値8によるドキュメントの強調表示

ヒント: 大文字と小文字を区別する値を見つける必要がある場合、またはセルの内容全体と一致させる必要がある場合は、をクリックしてください。 オプション 「」などの高度な検索オプションを取得するためのボタンマッチケース"と"セルの内容全体を一致させる「必要に応じて。

3。 次に、をクリックします すべて検索 ボタンをクリックし、[結果の検索]ボックスで、任意のXNUMXつの項目をクリックして、を押します。 Ctrlキー+ A 見つかったすべてのアイテムを選択するには、スクリーンショットを参照してください。

値9によるドキュメントの強調表示

4。 最後に、 閉じる ボタンをクリックして、このダイアログを閉じます。 これで、これらの選択した値の背景色またはフォントの色を塗りつぶすことができます。スクリーンショットを参照してください。

選択したセルに背景色を適用します。 選択したセルにフォントの色を適用します。
値10によるドキュメントの強調表示 値11によるドキュメントの強調表示

方法3:Kutools for Excelを使用して、セル値に基づいて背景色またはフォントの色を静的に変更します

 

Kutools for Excelさん スーパーファインド 機能は、値、テキスト文字列、日付、数式、フォーマットされたセルなどを検索するための多くの条件をサポートします。 一致するセルを見つけて選択した後、背景またはフォントの色を希望の色に変更できます。

インストールした後 Kutools for Excel、次のようにしてください。

1。 検索するデータ範囲を選択し、をクリックします クツール > スーパーファインド、スクリーンショットを参照してください:

値12によるドキュメントの強調表示

2。 の中に スーパーファインド ペインで、次の操作を実行してください。

  • (1.)まず、 価値観 オプションアイコン;
  • (2.)から検索スコープを選択します 中で ドロップダウン、この場合、私は選択します 選択;
  • (3.)から ドロップダウンリストで、使用する基準を選択します。
  • (4.)次にクリックします もう完成させ、ワークスペースに掲示しましたか? 対応するすべての結果をリストボックスに一覧表示するボタン。
  • (5.)最後に、 選択 ボタンをクリックしてセルを選択します。

値13によるドキュメントの強調表示

3。 次に、基準に一致するすべてのセルが一度に選択されました。スクリーンショットを参照してください。

値14によるドキュメントの強調表示

4。 そして今、必要に応じて、選択したセルの背景色またはフォントの色を変更できます。


週末の忙しい仕事、使用 Kutools for Excel,
あなたにリラックスして楽しい週末を与えます!

週末は子供たちが遊びに出かけようと叫んでいますが、家族と一緒に過ごすには仕事が多すぎます。 遠く離れた太陽、ビーチ、海? Kutools for Excel あなたがするのに役立ちます Excel パズルを解いて、作業時間を節約します。

picビーチ
  •  昇進を取得し、給与を増やすことは遠くありません。
  •  高度な機能が含まれており、アプリケーション シナリオを解決し、一部の機能では作業時間を 99% 節約できます。
  •  3分でExcelのエキスパートになり、同僚や友人から認められます。
  •  Googleからソリューションを検索する必要がなくなり、面倒な数式やVBAコードに別れを告げます。
  •  繰り返し行うすべての操作は、数回クリックするだけで完了でき、疲れた手を解放します。
  •  たった39ドルですが、他の人の4000ドルのExcelチュートリアルよりも価値があります。
  •  110,000万人のエリートと300以上の有名企業に選ばれます。
  •  30日間の無料トライアル、および理由もなく60日以内に全額返金。
  •  働き方を変えて、ライフスタイルを変えましょう!
 

Comments (79)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Good Day,

I have a schedule with different course modules that can be placed in different order ( 1 is metal, 2 is machining, 3 is refinishing, etc.) depending on course director preferences and staff availability.

What I am trying to do to wrap up the spreadsheet is color code the modules across the months based on their order in the overall course. So if Metal is first and is 35 days long, the first 35 days are background colored blue, but if machining is first and is 20 days long, then the first 20 days are purple.

How can you do and if statement that refers to a separate cell for the initial number of days, AND color the cells based on the range between 1 and 20 or 35 or whatever?

Can I do a conditional formatting If statement with a range between numbers?

This would have to be applied to all the modules (therefor multiple conditional formatting formulas) to account for any module being in any place in the order.
That is the issue I have. Please offer any suggestions. Note that I have built the spreadsheet without VBA. (I've never had the opportunity to learn it)
This comment was minimized by the moderator on the site
Can I give colour for a row of values with respect to previous value for a whole row.
Eg

23

45

32

56

can I give red for 23 and green for 45 and again red for 32 as it is less than the previous value and green for 56 as it is more than 32.
This comment was minimized by the moderator on the site
I do get to change a cell colour according to the text or letter in fill in the cell e.g.-H=YELLOW,E=GREEN
This comment was minimized by the moderator on the site
Hello, VANESSA,
For solving your problem, please apply the Conditional Formatting feature, in the New Formatting Rule dialog box, choose the conditions as following screenshot shown:
This comment was minimized by the moderator on the site
how do i change the colour of cell depending on what is in that cell IE. Y=green N=red.

thats how i need it if it has Y riten in the cell it turns green?
This comment was minimized by the moderator on the site
Hello, Leon,
To highlight the cells based on the cell value, you should apply the Conditional Formatting feature, go to the New Formatting Rule dialog box, and then do as the following screenshot shown to highlight the cells which are Y located as green:

Do with the same way to format the cells N as red color.

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
Trying to get a cell to highlight if its above a certain number, the problem is that the cell includes the number and a date. Is there a way i can get it to just look at the number? The cell will include a number+date.....1400(7/2/2018). I need the formulate just to look at the 1400 and not the date.
any ideas?
thanks
Z
This comment was minimized by the moderator on the site
Sir, I have value in cell A10, in A12. Now I entered a simple formula in A15 subtracting these (A10-A12). I want background color of result cell (A15) in green if A10 is large (means result in positive number) and background color in red if A12 is large ( result in negative number). Please provide solution
This comment was minimized by the moderator on the site
Hello,
You can select the formula cells, and then apply the Conditional Formatting > Greater than (0)-format it green, and then Less Than (0)-format it red, see screenshot:

Please try it, hope it can help you, thank you!
This comment was minimized by the moderator on the site
If I have a date in a cell, how do I make it change to orange when it is within 30 days of coming due, yellow when it is within 15 days of coming due and red when it exceeds the date (past due)
This comment was minimized by the moderator on the site
I thought this color of cells by value was going to be a real pain. It could not have been explained more easily and clearly. Thanks. It took no less than 1-2 minutes to understand what to do.
This comment was minimized by the moderator on the site
HI, I want if i change any value or number in any cell then that cell text color should get change for e.g. if number in any cell is 100 and I have to change it as 98 then that cell text 98 should change into red color. Is it possible in Excel?? Do clarify please
This comment was minimized by the moderator on the site
So I am creating a excel spreadsheet for fire department reports. What I am looking for is it to calculate the days a report is overdue, unless it has been completed: Column A Column B Column C Column D Column E Column F Incident # Incident Date Todays Date Completed Date Days Overdue Todays Date I want column B subtracting Column C to calculate in column E unless Column D is complete. I hope this makes sense. I want to use the conditional formatting to show me in colors how long a report is overdue (with the 3 color scale). I have the formula for the number of days it is overdue to have a correct value and color scale, but I want it to remain green when the report has been completed.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations