简体   繁体   中英

Conditional formatting using AND on a range

I have a fixed cell $I$1 containing the current date. I have col D whose cells each contain a date. I also have col F which contains a percentage (there is one of these wherever corresponding col D cell has a date).

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.

Based on previous answers on this site, I've tried the "=AND(AND(...;...);...)" method as well as the "multiplication method". 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?

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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