Conditional formatting a row of cells based on input in one cell

Jayzon

New Member
Joined
Feb 17, 2013
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi
I have a row of cells B2 to O2, i would like to use conditional formatting to color this row based on the input "X" in cell G2. Is this possible ?

Thank you in advance
Jayzon
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=$G2="X"
 
Upvote 0
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=$G2="X"
Thank you very much :)
This worked perfectly, is there a way to easy extend this rule to other rows G3-G4 and so on without manually adding the formatting to each row ?
 
Upvote 0
Yes, just apply the rule to B2:O10 or whatever the last row is.

Also please don't forget to update you profile. ;)
 
Upvote 0
Yes, just apply the rule to B2:O10 or whatever the last row is.

Also please don't forget to update you profile. ;)
Profile updated :)
Maybe it is because i am pretty novice at this, but when i extended this rule cover all rows fromB2 to P100 the formatting seems random and not based on the value in G2 ?
 
Upvote 0
As long as you use the formula I suggested it should work.
Fluff.xlsm
BCDEFGHIJKLMNOP
1
283210166141541033828
3171514117x10118121132133
41015138513171881745105
51018134182027121266258
620115620x72452076918
76161910416914102012131201
814162012813191425415131512
971920222181913619591414
1011145205x18141516161921316
112132041636164320106158
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:P11Expression=$G2="X"textNO
 
Upvote 0
Solution
As long as you use the formula I suggested it should work.
Fluff.xlsm
BCDEFGHIJKLMNOP
1
283210166141541033828
3171514117x10118121132133
41015138513171881745105
51018134182027121266258
620115620x72452076918
76161910416914102012131201
814162012813191425415131512
971920222181913619591414
1011145205x18141516161921316
112132041636164320106158
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:P11Expression=$G2="X"textNO
I think the issue is that only row 2 should be formatted of H2 (I changed this to H), and row 3 should be formatted of H3 and so on
 
Upvote 0
I am having troubel pasting sheet here, is there a way i can attach the sheet ?
 
Upvote 0
I am not able to install Xl2BB, addin blocked by my organisation
 
Upvote 0
I think the issue is that only row 2 should be formatted of H2 (I changed this to H), and row 3 should be formatted of H3 and so on
Ok, fiddling around a bit and now it works perfectly, thank you very much. :)
CaptureCF.JPG

I changed a few things in the sheet also, working format is in screenshot.
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,204
Members
449,090
Latest member
bes000

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