Conditional Formatting based on adjacent cells

Asator

Board Regular
Joined
Apr 5, 2010
Messages
186
I'm trying to apply a conditional formatting based on the value, not of the cell itself, but of an adjacent cell.

The formula I have in my conditional format (to see if the cell is blank):
=IF(OFFSET(C26,0,1)="",TRUE)

But it doesn't seem to work. Any ideas?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
>> xld:
Didn't work

>> VoG:
Gives a syntax error unless I add ,TRUE for some reason. Ive done if statements with only the condition in conditional formatting before, and its worked, but it doesn't seem to work with adjacent cells >_<

Excel 2003 btw.
 
Upvote 0
Asator

How didn't xld's suggestion work and what in words is the condition for the formatting?

Is it only one cell you want to format?
 
Upvote 0
with =d26="" in the conditional format for c26, and d26 blank, the format is not applied. I tried putting some stuff in d26, then deleting it. No change.

I then tried going at it a different way, by setting "not equal to" =d26="x". Immediately the format was applied whether or not d26 was equal to "x".

So basically, its not working :)

Ideally, I'd like to have a list of cells, that have a conditional format applied if the cell adjacent to it is left blank. I also have another sheet I'm working with that selects the lowest value from an array and highlights it with a conditional format. Is it possible to have that conditional format also applied to adjacent cells?
I.e.
array A1-A10, A6 is highlighted from being the lowest value. Is it possible to have it automatically format B6 as well with the same formatting, regardless of what the value in B6 is?
 
Last edited:
Upvote 0
I'm trying to apply a conditional formatting based on the value, not of the cell itself, but of an adjacent cell.

The formula I have in my conditional format (to see if the cell is blank):
=IF(OFFSET(C26,0,1)="",TRUE)

But it doesn't seem to work. Any ideas?

try this:

=INDIRECT(ADDRESS(ROW(),4))=""
 
Upvote 0
Are you 100% sure D26 is empty?

Is the value in there a result of a formula?
 
Upvote 0
Excel Workbook
CD
26
27x
Sheet15
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D261. / Formula is =C26=""Abc
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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