[英]Conditional Formatting Formula with Cell Reference
This formula gives me an error and I can't figure out what's seems to be wrong 这个公式给我一个错误,我无法弄清楚什么似乎是错误的
=AND(H3>TODAY()+$J$*30,H3<=TODAY()+$L$1*30)
But if I hardcode the days like this then it works: 但是,如果我对这样的日子进行硬编码,那么它将起作用:
==AND(H3>TODAY()+30,H3<=TODAY()+90)
I'm trying to highlight range of cells from today + # of month to today + # of month. 我正在尝试突出显示从今天+月#到今天+月#的单元格范围。
For example, Today+30, Today+90 should highlight Aug, Sept and Oct. (Assuming today is July something) 例如,今天+ 30,今天+ 90应该突出显示八月,九月和十月(假设今天是七月)
I believe the error lays here, $J$
. 我相信错误就在这里, $J$
。 Change that to a cell $J$1
将其更改为单元格$J$1
=AND(H3>TODAY()+$J$1*30,H3<=TODAY()+$L$1*30)
If your goal is to see if H3 is today plus n months, you should look into EDATE
. 如果您的目标是查看H3是否今天加上n个月,则应查看EDATE
。 Maybe you can change around your formula to not work with these 30 and 90 numbers. 也许您可以更改公式以不使用这30和90的数字。 Unless that's necessary 除非有必要
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.