Conditional formatting: using row() inside indirect() inside and() doesn't work. What am I doing wrong?

亡梦爱人 提交于 2019-11-29 16:55:51

The behavior you faced looks like a bug, here are some forum links, where people describe exactly the same problem: link1,link2.

In one of those topics you can read that if you enclose your CF formula with ISERROR, it returns (for unknown reason) True. Same formula entered in a cell works perfectly fine.

The easiest solution in your case is to replace:

=AND(condition1,condition2)

With equivalent:

=(condition1)*(condition2)

The other workaround shown in one of the linked threads is to replace:

INDIRECT("B" & row())

With its equivalent:

INDEX($B:$B,ROW())

Both solutions work fine in conditional formatting rule.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!