简体   繁体   English

Google表格条件格式日期范围

[英]Google sheets conditional formatting range of dates

I'm trying to highlight cells based on a range of dates so that one can visually see from what month to what month one unit plan takes.我正在尝试根据一系列日期突出显示单元格,以便人们可以直观地看到一个单元计划从几月到几月。

Please see this page (row 9) as a reference: https://docs.google.com/spreadsheets/d/1VDE1IdRJ7EB59NDos_A7DEUBm5LA75akbqiRVoH5IkI/edit#gid=222884255&range=G9请参阅此页面(第 9 行)作为参考: https://docs.google.com/spreadsheets/d/1VDE1IdRJ7EB59NDos_A7DEUBm5LA75akbqiRVoH5IkI/edit#gid=222884255&range=G9

For example, if a unit goes from 4/2023 to 6/2023, I'd like April, May, and June boxes to be highlighted.例如,如果一个单位从 4/2023 变为 6/2023,我希望突出显示四月、五月和六月的框。 I used the "custom formula" option in conditional formatting and input this formula:我在条件格式中使用了“自定义公式”选项并输入了这个公式:

=AND(($G$9:$R$9>=$E9),($G$9:$R$9<=$F9)) =AND(($G$9:$R$9>=$E9),($G$9:$R$9<=$F9))

However, nothing is lighting up for me.但是,没有什么能为我点亮。 The dates I'm using come from another Sheet (Grade 7).我使用的日期来自另一张表格(7 年级)。 Could that be an issue?这可能是个问题吗? Any help would be greatly appreciated.任何帮助将不胜感激。 Thank you!谢谢!

Hoping to see highlighted cells but the colors are not showing up.希望看到突出显示的单元格,但 colors 没有出现。

I tried this formula: =AND(($G$9:$R$9>=$E9),($G$9:$R$9<=$F9))我试过这个公式:=AND(($G$9:$R$9>=$E9),($G$9:$R$9<=$F9))

Your sheet is not public, from what I guess, you may try with next formula for the whole range.您的工作表未公开,据我猜测,您可以尝试对整个范围使用下一个公式。 It will automatically expand G to R:它会自动将G扩展为R:

=AND((G$9>=$E9),(G$9<=$F9))

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

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