简体   繁体   English

条件格式不适用于范围内的单元格

[英]Conditional Formatting not applying to cells in range

Having a issue with conditional formatting in excel, I have a few rules for example: 在excel中使用条件格式存在问题,我有一些规则,例如:

=AND(Q$13>=$M15,Q$13<$O15)

Apply to the range: 适用于范围:

$Q$16:$JU$20

Where the row 13 has dates listed by column and M15 and O15 is a date range so if the date in the Q13 is between the date range then fill the cells green. 如果第13行的日期是按列列出的,而M15和O15是日期范围,则如果Q13中的日期在该日期范围之间,则将单元格填充为绿色。 But the formatting only seems to apply to the first row in the range ie row 16 and not to row 17:20... 但是格式化似乎仅适用于范围内的第一行,即第16行,而不适用于第17:20行...

I can't seem to work it out...any advice? 我似乎无法解决...任何建议吗?

If you need the references for M15 and O15 to stay at row 15, then you need to use absolute referencing for the row number. 如果需要M15和O15的引用保留在第15行,则需要对行号使用绝对引用。

=AND(Q$13>=$M$15,Q$13 = AND(Q $ 13> = $ M $ 15,Q $ 13

Otherwise the row number will be relative to the currently evaluated row. 否则,行号将相对于当前评估的行。 A screenshot of the data would help. 数据的屏幕快照会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM