date - Is the date in the next 14 days or later
问题描述
I have created a spreadsheet in Google Drive for my travel planning. In this table I would like to use conditional formatting. The field contains the date until which a free cancellation of the hotel is possible. I would like to change the font and the text color.
- Case 1: I have more than 14 days until the date
- Case 2: I have 14 days or less left
- Case 3: it is the day or it is in the past.
I have tried, but my attempts have not resulted in any change to the font color.
Thanks for your help
解决方案
如果 A 列包含您的日期,请使用条件格式的自定义公式:
绿色:
=A1>TODAY()+14
黄色:
=(A1<TODAY()+14)*(A1>TODAY())
红色的:
=((A1=TODAY())+(A1<TODAY()))*(A1<>"")
推荐阅读
- python - Python 正则表达式在单词周围取字符
- powershell - Sharepoint 在线 - MoveFile - pnp.powershell 状态更新
- php - orWhere 子句允许重复
- r - 离线安装 Latex 包
- image - 双线性插值 - 图像处理
- php - Laravel、dispatchAfterResponse 不释放前端请求
- python-3.x - 如何使用 Shopware 6 API 创建具有变体的产品
- http - 我应该使用 post 请求而不是 get 请求吗?
- go - 如何使用 go 更改 excel 文件中的注释
- tensorflow2.0 - WandbCallback 中的“save_graph”关键字是什么意思?