Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

50%
+0 −0
Q&A A Conditional Formatting formula rule expected to apply to all cells is only affecting some

A very recently asked Q on Web Applications has no answer yet (and, in my opinion, is so badly written may not receive an answer at all promptly). However it does seem (in my interpretation) to rai...

0 answers  ·  posted 4y ago by pnuts‭  ·  last activity 3y ago by pnuts‭

#2: Post edited by user avatar Alexei‭ · 2020-11-01T06:57:10Z (about 4 years ago)
replaced tags with more meaningful ones
#1: Initial revision by user avatar pnuts‭ · 2020-10-17T16:02:45Z (about 4 years ago)
A Conditional Formatting formula rule expected to apply to all cells is only affecting some
A very recently asked [Q](https://webapps.stackexchange.com/questions/147916/why-does-google-sheets-conditional-formatting-not-apply-properly-to-all-cells) on Web Applications has no answer yet (and, in my opinion, is so badly written may not receive an answer at all promptly). However it does seem (in *my* interpretation) to raise a very common issue with Conditional Formatting [CF] – with a very simple solution.
The asker chose an *Applies to* range of C2:X2, a formula condition of:

    =ISBLANK(B2) 

and formatting of White font with Black fill,
then complained that since:

>B2 is **never** empty

(other than at the bottom of the sheet) the resultant "fill" did:
>not apply properly to all cells

An "image of the issue" shows (amongst a lot else) for Rows 2 and 3 a mix of populated and empty cells, some of each of which are formatted. Below the populated cells in the part of the range that is visible are represented by their column letter and the formatted cells with `f`:

| C | D |  | f | Gf | H | I | J |  | f | f | f | f | f | Qf | R |  |

The pattern is that only cells immediately to the right of a blank cell appear conditionally formatted, regardless of whether or not themselves populated (and, apart from for C2, whether or not B2 is).

With an edit:

>    =IF(ISBLANK(B2), true, true)
> it works as expected

the intent can be deduced to be that all of C2:X2 should be conditionally formatted when B2 is not blank.

(i) Is Google Sheets Conditional Formatting applying improperly and (ii) what is required to achieve the objective?