首页 > 解决方案 > 如果单元格 1 大于 8 周,如何设置条件格式

问题描述

我有以下内容;

Expected    Started
25/02/2020  01/01/2020

我想有条件地格式化“开始”单元格(B2) - 所以基本上,项目截止日期是 25/2/20 - 但它应该提前 8 周开始(到 2019 年 12 月 31 日)所以如果日期更大超过 31/12/19 突出显示红色

我无法指定日期,因为稍后会有其他日期,所以我需要尝试制定公式,有人可以帮忙吗?

标签: google-sheetsgoogle-sheets-formulags-conditional-formatting

解决方案


在 google-sheets 中,您可以将以下自定义公式应用于您的 B 列范围:

=($A2-(7*8)) < $B2  

见下图:

在此处输入图像描述

谷歌表格示例:https ://docs.google.com/spreadsheets/d/1sd59bd-fnKNTLoa7qQuBsEqFLki1uWNDLU9m7iOQemQ/edit?usp=sharing

如何撰写文章:https ://www.benlcollins.com/spreadsheets/conditional-formatting-entire-row/


推荐阅读