Conditional Cell formatting

Cindyrella

New Member
Joined
Aug 2, 2002
Messages
1
Can you format a cell using some variation of the IF condition? Specifically, if I place an "X" in a cell can I am make that cell and the two cells to its left become highlighted in light gray? And, of course, if I remove the X the cells would return to the previous "no highlight"?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Yes, select the 3 cells (e.g., A1:C1) and setup a Formula Is condition using the formula, =$C1="X".
 
Upvote 0
Take a look at conditional formatting. Add the following constraints:

Select all the cells
Go to FORMAT|CONDITIONAL FORMATTING
Cell value is equal to ="x"
Click Add
Formula is =INDIRECT(ADDRESS(ROW(),COLUMN()+1))="x"
Click Add
Formula is =INDIRECT(ADDRESS(ROW(),COLUMN()+2))="x"

Then click the format button, select the Patterns tab, and then select your color.

_________________
Kind regards,<font size="5"><sup><span style="text-decoration: overline">AL</span></sup><u><sub>CHARA</sub></u></font
This message was edited by Al Chara on 2002-08-03 16:48
 
Upvote 0
On 2002-08-03 16:31, Mark W. wrote:
Yes, select the 3 cells (e.g., A1:C1) and setup a Formula Is condition using the formula, =$C1="X".
Mark,
Your solution will be good for "X" inputs in column C, but how can it be done for "X" in any other column - say F1 which will highlight D1:F1 only ???
Eli
 
Upvote 0

Forum statistics

Threads
1,215,563
Messages
6,125,572
Members
449,237
Latest member
Chase S

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