简体   繁体   English

在范围上使用AND进行条件格式

[英]Conditional formatting using AND on a range

I have a fixed cell $I$1 containing the current date. 我有一个包含当前日期的固定单元格$ I $ 1。 I have col D whose cells each contain a date. 我有D栏,每个单元格包含一个日期。 I also have col F which contains a percentage (there is one of these wherever corresponding col D cell has a date). 我也有col F,其中包含一个百分比(在相应的col D单元格中有日期的任何地方都有一个)。

The conditional formatting I want is: If date in col D is before date in $I$1 AND percentage in corresponding cell of col F is greater than 0, then set format. 我想要的条件格式为:如果col D中的日期早于$ I $ 1中的日期,并且col F的相应单元格中的百分比大于0,则设置格式。

Based on previous answers on this site, I've tried the "=AND(AND(...;...);...)" method as well as the "multiplication method". 根据此站点上的先前答案,我尝试了“ = AND(AND(...; ...); ...)”方法以及“乘法方法”。 Any hints from an expert (since I'm, obviously, not one!)? 专家的任何提示(因为我显然不是一个人!)?

应该这样做-例如,假设您要对第1行中的单元格进行这种格式化:

=And($D1 < $I$1, $F1 > 0)

I have tried it along the lines you suggest and it seems to work OK: 我已经按照您建议的方式进行了尝试,但效果不错:

=AND(D1<$I$1;E1>0)

Is this what you want? 这是你想要的吗?

在此处输入图片说明

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

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