简体   繁体   English

Excel 2016中的条件格式

[英]Conditional Formatting in excel 2016

I am using conditional formatting in my excel sheet and codes used are shown below. 我在Excel工作表中使用条件格式,使用的代码如下所示。 Column-H has date done. H列的日期已完成。 Coloumn-I has a validity date (done date+24 months) and below formula to calculate column H + 24 months. Coloumn-I具有有效日期(完成日期+ 24个月),并且下面的公式可以计算H栏+ 24个月。

=IF(H10<>"",EDATE(H10,24),"")

i have put the code in conditional formatting for column-H cell to change colour to red if dates in Column-I are approaching 6 months(orange), 3 months(yellow) and if date exceeds expiry date(red). 如果列I中的日期接近6个月(橙色),3个月(黄色)并且如果日期超过到期日期(红色),则我将代码置于条件格式中,以使H列单元格的颜色变为红色。

=AND(I10>TODAY(),I10<=(TODAY()+180))
=AND(I10>TODAY(),I10<=(TODAY()+90))
=AND(I10>=TODAY(),I10<>"")

But the CF is not working as it says in the conditional formatting rules. 但是CF不能按照条件格式设置规则中的说明工作。 I changed all priorities, permutations and combinations. 我更改了所有优先级,排列和组合。 Grateful if you can tell me what I am doing wrong here or what I should do please. 如果您能告诉我我在这里做错了或应该做些什么,请多谢。 Sorry I could not post the image of CF. 抱歉,我无法发布CF的图像。

Change your formula like this: 像这样更改您的公式:

=AND(I2>TODAY(),I2<=EDATE((TODAY()),6))

AND

=AND(I2>TODAY(),I2<=EDATE((TODAY()),3))

AND

=AND(TODAY()>I2,I2<>"")

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

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