(Excel) 检查单元格中的日期是否 > 今天日期 30 天,并且另一个单元格 = "Open" 然后将单元格着色为红色
(Excel) Check if date in cell > todays date by 30 days, AND another cell = "Open" Then colour cell Red
有人知道以下公式:Check if date in cell > todays date by 30 days, AND another cell = "Open" Then colour cell Red
基本有2个cell。一个上面写着 "Open" 的文字。
以及其中包含日期的最后更新单元格,比如说 05/01/2020。
如果计算机的本地日期是 30 天 + 单元格中的日期,我需要添加条件格式以基本上突出显示 05/01/2020 单元格 仅当第一个单元格显示 "Open" 并且日期单元格是> 与本地日期相比 30 天。
这是我目前所拥有的
(条件格式)
If cell value less than = today()-30 #Highlights in chosen colour as red
如果单元格 > 30 天,以上方法有效,但我遇到了问题的是 AND 语句。
下面是我正在寻找的 Psuedo 版本
IF A1="OPEN" and B2 is more than 30 days old by comparing to local
machine date then highlight B2 in red
有关相关单元格,请参阅 link
Cells
也许使用以下公式,将 cell1
和 cell2
替换为对实际单元格的引用:
=AND(cell1="Open",TODAY()-cell2>30)
有人知道以下公式:Check if date in cell > todays date by 30 days, AND another cell = "Open" Then colour cell Red
基本有2个cell。一个上面写着 "Open" 的文字。 以及其中包含日期的最后更新单元格,比如说 05/01/2020。
如果计算机的本地日期是 30 天 + 单元格中的日期,我需要添加条件格式以基本上突出显示 05/01/2020 单元格 仅当第一个单元格显示 "Open" 并且日期单元格是> 与本地日期相比 30 天。
这是我目前所拥有的
(条件格式)
If cell value less than = today()-30 #Highlights in chosen colour as red
如果单元格 > 30 天,以上方法有效,但我遇到了问题的是 AND 语句。
下面是我正在寻找的 Psuedo 版本
IF A1="OPEN" and B2 is more than 30 days old by comparing to local machine date then highlight B2 in red
有关相关单元格,请参阅 link Cells
也许使用以下公式,将 cell1
和 cell2
替换为对实际单元格的引用:
=AND(cell1="Open",TODAY()-cell2>30)