Conditional Formatting - Simple

coloradoprincess78

New Member
Joined
Oct 31, 2016
Messages
14
There is something simple that I am missing here, but can't take any more time googling it

Applied conditional formatting to Column I to change font color to white when Adjacent Cell in Column H has no value. H contains a formula.

Conditional formatting formula is =$H2=" "

Here is what it is doing, and it sort of works - for some reason on my screen I16 is white. And will not turn to black until i have something in H17 - which is slightly counterproductive.


Excel 2010
HI
1State AbbreviationNumber
2AZ0100
11CA0101
12CA0102
13AZ0102
14AZ0103
15ND0100
16TX

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Site Numbering
Any suggestions are greatly appreciated, I've tried 10+ different formulas already , but this is one is the close as I can get it. Thanks in advance!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Let me guess. You highlighted ALL of column I, and then applied the formula: =$H2=" ", right?
If you did, you are off one row.

The rule is that when applying Conditional Formatting to a whole range of cells (instead of a single cell), you need to write your formula as it applies to the very first cell in your selection.
So, if you highlighted all of column I, your first cell is cell I1, not I2.

If you want to exclude the first row, you have a few options:
1. Start your selection in Row 2 (meaning you cannot select the entire column)
- or -
2. Add a row component to your formula, i.e. =AND($H1=" ",ROW()>1)
- or -
3. Select the whole column, write your formula like: =$H1=" ", and after applying, highlight cell I1 and remove the Conditional Formatting from that cell.

Actually, in this instance, since you actually have titles in row 1, you should be fine to highlight all of column I and use the formula: =$H1=" "


Edit: And note the reply above mine. A single space and nothing (blank/empty cell) are NOT the same thing.
 
Last edited:
Upvote 0
Thank you Joe! I knew it was simple.. (face palm) I very much appreciate you taking the extra time to explain it to me in more detail.
And yes, the formula with no space doesn't work, although I'm not sure I understand why ;) haha...
But again, thanks for you help!
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,111
Members
449,205
Latest member
ralemanygarcia

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