提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何突出显示/条件格式的日期比Excel中的30日期更早?

如果您有一系列日期数据,如下面的屏幕截图所示,并且您想要突出显示自30天以来的日期单元格,那么您是否会手动突出显示它们? 现在我将告诉您一种快速的方法,使用Excel中的“条件格式”功能突出显示比30日期更早的日期。

DOC高亮天,较旧1

突出显示比30天早的日期

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 与Office 2007-2019和365一起使用; 支持所有语言; 在您的企业或组织中轻松部署。

箭头蓝色右泡 突出显示比30天早的日期


使用Excel的条件格式功能,您可以快速高亮显示比30天更早的日期。

1。 选择日期数据并点击 主页 > 条件格式 > 新规则。 看截图:

DOC高亮天,较旧2

2。 在里面 新的格式规则 对话框中,选择使用公式来确定要格式化的单元格 选择一个规则类型 列表,然后输入这个公式 = L1 <TODAY() - 30在此公式为真的情况下格式化值 文本框。 看截图:

DOC高亮天,较旧3

小技巧:在上面的公式中,L1表示数据范围的第一个单元格,而30表示比30天早,您可以根据需要更改它们。

3。 然后点击 格式 单元格格式 对话框,然后单击 选项卡,然后选择突出显示单元格所需的颜色。 看截图:

DOC高亮天,较旧4

4。 点击 OK > OK 关闭对话框。 现在突出显示了自今天起比30更早的日期。

DOC高亮天,较旧5

小技巧:如果范围内的数据发生更改,突出显示也会更改。


相关文章:


Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能30天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Tagoria · 3 months ago
    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."
  • To post as a guest, your comment is unpublished.
    Abhishek · 7 months ago
    The issue with less than 30 days is, it is even high

    lighting blank cells.
  • To post as a guest, your comment is unpublished.
    Delmar Penner · 8 months ago
    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.
  • To post as a guest, your comment is unpublished.
    Pam · 1 years ago
    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?
  • To post as a guest, your comment is unpublished.
    Allan · 1 years ago
    Is it possible to compare 2 dates like; (first date > (second date+5)), and condition a cell colour based on the result?
    • To post as a guest, your comment is unpublished.
      Pratap · 1 years ago
      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 kunwar.spratap@gmail.com
  • To post as a guest, your comment is unpublished.
    Erica · 1 years ago
    I got the above down but what if I only wanted to count weekdays? No weekends or holidays.
  • To post as a guest, your comment is unpublished.
    Diana · 1 years ago
    What about highlighting cells if there is an "open" item vs. "closed" and it is greater than a "x" days?
  • To post as a guest, your comment is unpublished.
    kreemz · 1 years ago
    It works - thanks a lot
  • To post as a guest, your comment is unpublished.
    CS · 2 years ago
    using TODAY is not going to work. I need to highlight annual dates from specific dates. For example, my employees take training at various dates. I need to highlight red cells that are 365 days from their specific date. I have tried DAY, but that doesn't work and EDATE is not effective as far as I can tell for my needs. It is probably a super simple formula but I can't find it.
  • To post as a guest, your comment is unpublished.
    Sarah J · 2 years ago
    I need a formula that does red if greater than 30 days but yellow if less than 30 but greater than 20 days.....help!
  • To post as a guest, your comment is unpublished.
    RandyM · 2 years ago
    THANK YOU SO MUCH!!! I have been searching for a formula to make searching our training database easier to determine who is in need of training. Some of our classes are to be taken every-other-year and some are required annually. I just simply changed the formula to
  • To post as a guest, your comment is unpublished.
    Avri · 2 years ago
    =(IF(ISBLANK(C2),99999,C2))
  • To post as a guest, your comment is unpublished.
    Anna · 2 years ago
    Doesn't work for me. It highlights some cells but not others -- even cells with the same date in them had some highlighted and others not. I have not found one simple way to highlight all dates OLDER than 6 months. So many sites offer a way to do it, but not one of them have worked for me. I'm relatively advanced in Excel so this is frustrating. This should be easy!!
  • To post as a guest, your comment is unpublished.
    Brandon · 3 years ago
    I have done this rule as instructed and it worked almost perfect. The last cell in my column, though, also highlights as red as if it older than the age specified even though it is not. When I enter a new value underneath that most recent cell, it turns back to white as it should but then the cell I just entered turns red (new most recent value). How do I prevent this?
  • To post as a guest, your comment is unpublished.
    prashant johari · 3 years ago
    how to put the condition to colour the cell if amount is greater than 30 and less than 61