突出显示相邻单元格的十个工作日(不包括假日)之后的单元格 [英] Highlighting adjacent cell ten business days (exclude holidays) after the date found in the cell beside it

查看:156
本文介绍了突出显示相邻单元格的十个工作日(不包括假日)之后的单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用条件格式化几天,现在无效

I have been trying to work on this with conditional formatting for a couple of days now to no avail

我已经做到了,每次文件号输入右侧的单元格,以灰色显示日期,以dd-Mmm-yy输入(例如,文件号是C8日期在D8中输入)。

I have made it so that every time a "FILE NUMBER" is entered the cell to the right in grey shows the date it was entered in dd-Mmm-yy (ex. file number is C8 date is entered in D8).

现在我需要的是一个宏或条件格式,将突出显示运动(B,E ...)和FILE NUMBER(C,F ...)单元格为红色的10 ***业务/工作几天已经从相应的灰色单元格(D,G,J ...)中输入的初始日期过去。

Now what I need is a macro or conditional formatting that will highlight the "Motion" (B, E...) and "FILE NUMBER" (C, F...) cells in red when 10 ***business/work days have passed from the initial date entered in the corresponding grey cell (D, G, J...).

我想使用WORKDAY,但是单元格已填充在随机的日期,所以我不知道开始的日期是什么。这不是一个持续时间的项目。我今天想使用,但并不包含工作日。

I wanted to use WORKDAY, but the cells are filled at random dates so I don't know what the start date would be. It's not a project with a duration. I want to use today, but it doesn't incorporate workdays.

请帮忙!谢谢!

推荐答案

如果您有D8中的time = 0的日期,则
和要格式化的单元格是C8,
然后选择C8,并添加条件格式化 - > 使用公式确定要格式化的单元格
并输入公式 = TODAY()>工作日(D8,10)

If you have the date you want to use as time=0 in D8, and the cell you want to format is C8, then select C8, and add a Conditional Formatting -> Use a formula to determine which cells to format and enter the formula =TODAY() > WORKDAY(D8,10).

注意:


  1. 在条件格式中使用相对引用(例如,D8而不是$ D $ 8)允许对扩展范围使用相同的条件,在条件格式 - > 管理规则 - > 适用于。您可能需要根据您的需要为列($ D8),行(D $ 8)或两者($ D $ 8;不太可能)选择绝对引用。您可能还需要定义几个条件格式。
    检查这个这个

  1. Using relative references in the conditional formatting (e.g., D8 instead of $D$8) allows for using the same condition for an extended range, specified under Conditional Formatting -> Manage Rules -> Applies To. You might need to select absolute referencing for columns ($D8), rows (D$8) or both ($D$8; unlikely), depending on your needs. You may also need to define several Conditional Formats. Check this and this.

您可能需要更改号码 -10

这篇关于突出显示相邻单元格的十个工作日(不包括假日)之后的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆