Conditional Formatting

JorgenKjer

Board Regular
Joined
Aug 1, 2016
Messages
65
Office Version
  1. 2013
Platform
  1. Windows
Hi

Is there anyone who can help?

If the value "X" is one or more times in column B2 to B101, the background color in cell B1 must turn green.

If no "X" in column B2 to B101, the background color must be yellow.

I would appreciate it very much if anyone has a solution

Thanks in advance.



Yours sincerely

Jorgen
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You can set up two Conditional Formatting formulas on cell B1 (using the formula options of conditional formatting).

Rule 1:
CF formula: =COUNTIF(B2:B101,"X")>0
Choose green formatting option.

Rule 2:
CF formula: =COUNTIF(B2:B101,"X")=0
Choose yellow formatting option.
 
Upvote 0
Solution
Hi joe4

Thanks for your prompt reply
Your solution is absolutely perfect
Thank you

Yours sincerely
Jorgen
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,953
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top