基于日期的条件格式 [英] Conditional formatting based on date

查看:114
本文介绍了基于日期的条件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Excel工作时设置时间卡,日期在工作表的左侧下拉:

星期五1/1/11

星期六1/2/11

Sun 1/3/11

Sun 1/3/11

等等。我想用周末日期灰色排列,如下所示:

Fri 1/1/11

Fri 1/1/11

Sat 1/2/11
Sun 1/3/11

使用条件格式化是否有明显的方法?

推荐答案

当然可以使用 WEEKDAY 函数来确定一周的日期,如下所示:

Sure, you can use the WEEKDAY function to determine the day of the week, like this:

=WEEKDAY($A1,2)>5

根据星期几被认为是周末,您可能需要修改第二个参数。您可以找到有关 WEEKDAY 函数(和第二个参数) here

Depending on what days of the week are considered the weekend, you may need to modify the second parameter. You can find more information about the WEEKDAY function (and the second parameter) here.

这篇关于基于日期的条件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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