2

Alright, so I've been having this issue for a few hours now and am confident to say that I can't fix it by myself.

I've been playing around with Google Sheets trying to apply Conditional Formatting when another referenced cell is not empty.

Here's an image of the issue, it will definitely help you understand what I'm trying to do.

However, here's what happens when I do the following two things (using an IF function to determine the state and then parse the true or false state towards the Conditional Formatting rule), here's where the broken magic comes into play.

When I set it to =IF(ISBLANK(B2), false, true), this happens. But when I reverse it and set it to =IF(ISBLANK(B2), true, false), this happens again.

I am lost to why this happens as from what you can see in the screenshots, B2 is never empty.

EDIT: For whatever reason, when I set it to =IF(ISBLANK(B2), true, true), it works as expected, as seen here. I would still like to hear an explanation if anybody has one.

2
  • as a matter of interest, what are you doing to blur out the text? I'm looking to do the same in cells C to J on a row in a sheet where the row above in column A matches the text (a month name) and I've not cracked it yet either... just one cell changes colour (but I'd prefer the blurring shown in your example). Sorry for the hijack! As to your question: will this reference reference provide any clues? Commented Oct 16, 2020 at 12:42
  • 1
    The blur is just third party screenshot taking software (ShareX), however, that article doesn't really help that much. I understand what I'm doing, but for some reason, it's acting really weird regarding that true/false statement.
    – Tony M.
    Commented Oct 16, 2020 at 13:45

1 Answer 1

3

This is all you needed:

=ISBLANK($B2)

Without the dollar sign, every cell from C to the right will just check to see if the cell before itself is blank (i.e., C2 will check B2, D2 will check C2, etc.). The dollar sign "locks" things so that column B is always the reference, regardless of the relative references in your range.

That said, you could apply your CF to the range C2:X (i.e., all rows) and keep the formula I suggest above, and the entire range, row by row, would be processed the same way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.