Conditional Formatting for one column based on blanks in another column

loserName

New Member
Joined
Aug 15, 2017
Messages
2
Hello!

I'm trying to set conditional formatting on column H cells where the cell in column A is blank. So if A5 is blank, H5 should be in bold; if A6 contains a value (in this case, a date), then H6 should not be bold.

I've tried the following formula for H:H...
Code:
=IF($A5="",TRUE,FALSE)

...but all cells in H are in bold no matter the value in A.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the Board!

The formula you use MUST reflect the first cell in the range you have selected. So if you are selecting the ENTIRE column H (H:H), the first cell is H1, which would be looking at A1, not A5.
So I would try one of these two formulas:
Code:
=$A1=""
or
Code:
=LEN($A1)=0
If you use the absolute/relative range references correctly, Excel will automatically adjust it for all other cells in your range (like when you copy/paste a formula down a column).

BTW, you do not need to be use an IF and explicitly return TRUE or FALSE. Just create a boolean expression, like I did above.
If they are equal, it will return TRUE. If not, it will return FALSE.

And don't forget to select your bold formatting option (I forgot to do that one time and couldn't figure out why it wouldn't work!).
 
Last edited:
Upvote 0
If you are highlighting H:H when applying this, then you'd need to reference A1 in the formula.
Also, your formula could simply be

=Len($A1)=0


Edit: I guess I'm too slow of a typist! Hiya, Joe!
 
Last edited:
Upvote 0
A Greg Truby sighting!
To what do I owe this great honor!;)
(nice to see you again, Greg!)
 
Upvote 0
Welcome to the msg board!

The formula you're looking for should be simply

=$A5=""

or

=$A5<>""

depending on if you have already formatted the H5 bold or not (ie. should the conditional formatting turn the bold on or off when the formula returns true).
 
Upvote 0

Forum statistics

Threads
1,215,284
Messages
6,124,067
Members
449,140
Latest member
SheetalDixit

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