跳到主要内容

如何在Excel中突出显示/条件格式的日期超过30天?

要获取日期列表,并且您要突出显示自现在起30天之前的日期单元格,是否可以手动突出显示它们? 本教程介绍了如何使用Excel中的条件格式突出显示30天以上的日期,以及如何使用出色的工具轻松地选择和计算大于特定日期的日期。

使用条件格式突出显示30天以上的日期
使用出色的工具轻松选择和突出显示比特定日期早的日期

有关突出显示单元格的更多教程...


在Excel中轻松选择并计算早于特定日期的日期:

选择特定的单元格 实用程序 Kutools for Excel 可以帮助您快速计算和选择日期范围内早于Excel中特定日期的所有日期。 立即下载 Kutools for Excel 的全功能 30 天免费试用版!


使用条件格式突出显示30天以上的日期

使用Excel的条件格式设置功能,您可以快速突出显示30天以上的日期。 请执行以下操作。

1.选择日期数据,然后单击 主页 > 条件格式 > 新规则。 看截图:

2.在 新格式规则 对话框,您需要:

  • 2.1)选择 使用公式来确定要格式化的单元格 在选项 选择规则类型 部分;
  • 2.2)将以下公式输入 格式化此公式为真的值 框;
  • =A2<TODAY()-30
  • 2.3)点击 格式 按钮并指定填充颜色以突出显示日期单元格;
  • 2.4)点击 OK 按钮。 看截图:

请注意: 在上面的公式中,A2是所选范围的第一个单元格,并且30表示早于30天,您可以根据需要进行更改。

现在,所有自今天起超过30天的日期将以指定的填充颜色突出显示。

如果日期列表中有空白单元格,它们也将突出显示。 如果您不想突出显示空白单元格,请继续创建另一个规则。

3.再次选择日期列表,单击 主页 > 条件格式 > 管理规则.

4.在 条件格式规则管理器 对话框中,单击 新规则 按钮。

5.在开幕 编辑格式规则 对话框,请:

  • 5.1)选择 使用公式来确定要格式化的单元格 在选项 选择规则类型 部分;
  • 5.2)将以下公式输入 格式化此公式为真的值 框;
  • =ISBLANK(A2)=TRUE
  • 5.3)点击 确定。

6.返回到 条件格式规则管理器 对话框中,您可以看到规则已列出,请选中 如果为真,则停止 盒子。 最后点击 OK 按钮。

然后,您只会看到突出显示了所选范围内超过30天的日期。


使用出色的工具轻松突出显示早于特定日期的日期

这里介绍一个方便的工具– 选择特定的单元格 实用程序 Kutools for Excel 为了你。 使用此实用程序,可以选择早于特定日期的特定范围内的所有日期单元,并根据需要手动使用背景色突出显示它。

申请前 Kutools for Excel首先下载并安装.

1.选择日期单元格,单击 库工具 > 选择 > 选择特定单元格。

2.在 选择特定的单元格 对话框,您需要:

  • 2.1)选择 手机 ,在 选择类型 部分;
  • 2.2)选择 小于 来自 特定类型 下拉列表,然后在文本框中输入要选择所有小于该日期的日期;
  • 2.3)点击 OK 按钮。
  • 2.4)点击 OK 在下一个弹出对话框中。 (此对话框通知您有多少个单元格符合条件并被选中。)

3.选择日期单元格后,如果需要突出显示它们,请手动转到“主页”>“填充颜色”以为其指定突出显示颜色。

  如果您想免费试用(30天)此实用程序, 请点击下载,然后按照上述步骤进行操作。


相关文章:

在Excel中,条件格式日期小于/大于今天
本教程向您展示如何在条件格式中使用TODAY函数来详细显示Excel中的到期日或将来的日期。

忽略Excel中条件格式的空白或零单元格
假设您有一个包含零个或空白单元格的数据列表,并且想要有条件地格式化该数据列表,但忽略了空白或零个单元格,您会怎么做? 本文将帮您一个忙。

将条件格式设置规则复制到另一个工作表/工作簿
例如,您有条件地根据第二列(水果列)中的重复单元格突出显示了整行,并为第四列(金额列)中的前3个值上色,如下图所示。 现在,您要将条件格式设置规则从该范围复制到另一个工作表/工作簿。 本文提供了两种解决方法来帮助您。

根据Excel中文本的长度突出显示单元格
假设您正在使用具有文本字符串列表的工作表,现在,您要突出显示文本长度大于15的所有单元格。本文将讨论解决Excel中此任务的一些方法。

有关突出显示单元格的更多教程...

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (22)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I got a solution to make the rest of the cells blank if they do not have a date or value in them.
Make a new rule. Select rule type: Format only cells that contain"
Choose "Format only cells with: Blanks:"
Then format it with a white background, or color of your excel spreadsheet. That should make all blanks turn white. Leaving the other dates that are over 30 days stay red. 
This comment was minimized by the moderator on the site
in support of my solution
This comment was minimized by the moderator on the site
I want solution. i want a formula through which if the date changed in 1 column then text and colour on the other column should be change by itself.can any body help me on this issue
This comment was minimized by the moderator on the site
I tried this, and it somewhat worked for me. The problem I have is the empty cells are still highlighted. I don't want the empty cells highlighted. What do I need to do to exclude the blank cells?
This comment was minimized by the moderator on the site
This happened to me as well, a couple of things to double check.1) the "STOP IF TRUE" box next to your rule in the rule manager is checked. 2) Make sure your 'applies to' for this rule is the same as the one for the other rule(s) 3) Check your formula and subculture the "A2" with what matches the column that you are creating the rule for. For example, for my table all of my dates are in the column J and the dates start in row 7 so my formula for this would be =ISBLANK(J7)=TRUE
I hope that this helps!
This comment was minimized by the moderator on the site
It doesn't work well, only the cell L1 is formated and no other one. Only the cell L1 is marked with an other backround color. Pleas add also when and which cells should be marked before clicking on "new rule."
This comment was minimized by the moderator on the site
The issue with less than 30 days is, it is even high

lighting blank cells.
This comment was minimized by the moderator on the site
Hi there, I've searched far and low and have not yet found the specific formatting that I'm looking for. I would like to be able to have a list of all the 5th Sundays in the month, per specific year(There are always 4 months that have 5 Sundays every year).

So since I don't know how to do that, I have a function that looks at dates (Jan - Dec of a year) and finds the first Sunday of the month, then adds 4 weeks to that, which would give me the 5th Sunday of the month.

=DATE(YEAR(A2),MONTH(A2),1+((5-(1>=WEEKDAY(DATE(YEAR(A2),MONTH(A2),1))))*7)+(1-WEEKDAY(DATE(YEAR(A2),MONTH(A2),1))))

So some months the resulting dates actually show up in the next month - well all of the ones that don't have 5 Sundays.
So now I was thinking if I could at least have conditional formatting where the "DAY" value in the date is above a certain number, then I could at least easily highlight the ones that have 5 Sundays. But I have not been able to figure it out. Can someone help me with that? It seems to me it should be simple to have a conditional formatting that highlights all the days that are after the middle of the month, regardless of which month or year it is.
This comment was minimized by the moderator on the site
I am using the Highlighting function with dates greater than 90 days, but then I have a completed date that I would like to use that will remove the highlight when a date is added to this cell. Example Due Date - Highlighted Cell - Completed Date. Is there a formula that will do this?
This comment was minimized by the moderator on the site
Is it possible to compare 2 dates like; (first date > (second date+5)), and condition a cell colour based on the result?
This comment was minimized by the moderator on the site
Yes, you just need to compare the cells $n$m>,<,=$o$p


Let me know if it works or else, I will provide you another video


Reach me out
This comment was minimized by the moderator on the site
I got the above down but what if I only wanted to count weekdays? No weekends or holidays.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations