跳到主要内容

如何在Excel中突出显示两个日期之间的单元格?

如果您的工作表中有日期列表,现在,您想突出显示两个定义的日期之间的单元格或行,则Excel的条件格式可以帮您一个忙。 本文将讨论如何应用条件格式来突出显示两个日期之间的单元格或行。

使用条件格式突出显示两个日期之间的单元格
使用条件格式突出显示两个日期之间的行
使用 Kutools for Excel 突出显示两个日期之间的单元格


使用条件格式突出显示两个日期之间的单元格

要突出显示两个给定日期之间的日期单元格,请执行以下步骤:

1.选择要突出显示特定日期单元格的数据范围。

2。 点击 主页 > 条件格式 > 加亮单元格规则 > 之间.

3.在 之间 对话框中,输入开始日期和结束日期,选择一种颜色以突出显示单元格,然后单击 OK.
然后立即突出显示两个给定日期之间的日期单元格。


使用条件格式突出显示两个日期之间的行

如果要突出显示整个行或所选内容的行以使行更加醒目,则需要使用 条件格式.

1.您需要输入开始和结束日期,您要在工作表中突出显示它们之间的行。 在这种情况下,我分别在D2和E2中输入开始日期和结束日期。

2.选择要使用的数据范围(如果数据包含标题,请忽略它们)。 然后点击 主页 > 条件格式 > 新规则,请参见屏幕截图:

3。 在 新格式规则 对话框,请进行以下配置。

  • 3.1)点击 使用公式来确定要格式化的单元格 选项,
  • 3.2)输入此公式 = AND($ B2> = $ D $ 2,$ B2 <= $ E $ 2)格式化此公式为真的值 文本框(在公式中, B2 代表数据范围内的第一个日期单元格, D2 包含开始日期和 E2 包含您在步骤1中输入的结束日期)
  • 3.3)点击 格式 按钮选择一种颜色以突出显示行;
  • 3.4)点击 OK 按钮。 看截图:

然后,突出显示了两个特定日期之间的行,如下图所示。

请注意: 本篇 条件格式 是动态工具,其结果将随着日期的改变而改变。


使用 Kutools for Excel 突出显示两个日期之间的单元格

随着 选择特定的单元格 实用程序 Kutools for Excel,您可以快速选择两个日期之间的所有单元格,然后指定背景色以突出显示它们。 请执行以下操作。

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

1.选择要突出显示日期的范围,然后单击 库工具 > 选择 > 选择特定的单元格。 看截图:

2.在 选择特定的单元格 对话框,请进行如下配置:

  • (1)。 选择 手机 ,在 选择类型 部分(如果要突出显示整行,请选择 整行 选项);
  • (2)。 在里面 特定类型 部分,选择 比...更棒 从第一个下拉列表中,在以下文本框中输入开始日期。 选择 小于 在第二个下拉框中,在文本框中输入结束日期;
  • (3)。 点击 OK 按钮。
  • (4)。 然后弹出一个对话框,告诉您找到并选择了多少个单元格,单击 OK。 看截图:

3.已在您选择的范围内选择了两个给定日期之间的日期。 请在下面指定背景色 主页 标签以突出显示它们。

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


使用 Kutools for 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 (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
hola a todos, quisiera saber como puedo resaltar un rango de celdas en blanco con formula teniendo de base fecha de inicio (B1), fecha fin (C2) de alguna actividad y el objetivo de resaltar es visualizar cuantos días tomo la actividad, estos días se encuentran en una fila... el problema es que soy principiante en Excel y no he logrado encontrar la formula para resaltar un rango de celdas según la fecha inicial y final.
This comment was minimized by the moderator on the site
Hello, Angie,
Sorry, I can't understand your problem clearly. It is best to explain your problem in English. Or you can upload screenshot to express what you want.
Thank you!
This comment was minimized by the moderator on the site
Hi I was hoping you could help me. I am trying to create an excel spreadsheet which will allow me to track how many sinks I have available for hire. For example I have 30 sinks in total and they are hired our to many various companies at different delivery dates and return dates. I wanted to be able to enter a formula that would used the two dates to then show if a sink is available for hire
This comment was minimized by the moderator on the site
Sorry I am not sure I got your question. Would be nice if you could provide screenshot of what you are trying to do.
This comment was minimized by the moderator on the site
Hi there, thanks for your efforts. I have a simple sheet to track employees' leaves. I would like make sure that new leaves does not fall between other 2 dates for the same employee. For example, employee code # 2230 has a leave from 16 July 2017 to 20 July 2017, so if he applies for another 1 day leave on 18 July 2017 I want that date to get highlighted. Can you please help me with that?
This comment was minimized by the moderator on the site
Dear Ahmed,
Would you please provide an example screenshot of your worksheet? We need more information for dealing with the problem.
Thank you!

Best Regards, Crystal
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations