Conditional Formatting with Custom Formula referencing the cell itself

浪子不回头ぞ 提交于 2019-12-05 03:34:47

With conditional formatting (both in Excel and google docs) you just use the formula that applies to the top left cell of the range....and you can simply refer to the cell by it's cell reference, so assuming dates are in B1:J1 and your status data is in B2:J100 then select that latter range and (in conditional formatting) apply the formula that applies to B2, i.e.

=AND(B$1<TODAY(),LEFT(B2,2)="OK")

This will work for the whole range

You must use absolute/relative references as if you were copying the formula down/across the range, so you need the $ in B$1 because you want every row to refer to row 1....although going across you want it to change to C$1, D$1 etc. hence no $ before the column letter

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