Conditional formatting - Turning a whole row green if any cell in that row has an x in it

IainCD

New Member
Joined
Apr 17, 2018
Messages
11
I am trying to setup some conditional formatting to turn a row range of cells green if any of those cells have an x in them.

I am setup as per below. The formula turns the cell range green if I put an x in cell G5 but does not work if I remove the x from G5 & place it in H5 or I5 or J5 etc. Can anyone help on this one?

Rule type:
Use a formula to determine which cells to format

Format values where this formula is True:
=$G$5:$R$5="x"

Applies to:
=$G$5:$R$5
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi, try changing the formula to:

=MATCH("x",$G$5:$R$5,0)
 
Upvote 0
Brilliant. That worked perfectly. Many thanks for taking the time to help me, it is very much appreciated. Have a great day/evening. Iain.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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