条件格式滚动 6 周

conditional formatiing rolling 6 weeks

我想根据过去 6 周内发生的事件更改 table 中某个单元格的背景颜色。它将从当前日期开始。

  Incident   date 
  g        14/01/2018
  e        15/01/2018 
  a        *02/02/2018
  b        05/02/2018
  c        02/03/2018*

将单元格或行的背景 属性 设置为类似这样的内容。

=IIF(DateDiff(DateInterval.Day , 字段!YourDateColumn.Value, 今天()) <=42, "Yellow", 无)